[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:34:11 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13498

--- Comment #19 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
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.

-- 
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