[Koha-bugs] [Bug 13498] 'email' templates used for printing slips
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 30 09:41:05 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13498
--- Comment #20 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
(In reply to Emmi Takkinen from comment #19)
> Tested this a little (sorry if I'm repeating what has already been said). We
> call printslip.pl when printing ISSUESLIP or ISSUEQSLIP and from there we
> call IssueSlip(). This then calls GetPreparedLetter().
> If we add message_transport_type => 'print' parameter to that
> GetPreparedLetter() call in IssueSlip(), print notice is printed correctly.
> However if 'print' notice isn't found, GetPreparedLetter() fails to, because
>
> my $mtt = $params{message_transport_type} || 'email';
>
> obviously has value 'print', not undef and doesn't fall back to email.
>
> So we need to 1) add message_transport_type => 'print' param when calling
> notices that are primaly printed (not just to printslip.pl but also
> hold-transfer-slip.pl etc.) 2) determine in GetPreparedLetter() if print
> notice actually exists and then fall back to email notice.
Correcting the first point, we need to add message_transport_type to methods
which are called when printing mainly 'print' notices. E.g. printslip.pl ->
IssueSlip(), hold-transfer-slip.pl -> ReserveSlip().
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list