[Koha-bugs] [Bug 26648] Prevent internal server error if item attached to old checkout has been removed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 9 17:28:58 CEST 2020


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

--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Dumping this example here so I don't loose it

[% USE Price %]
[% savings = 0 %]
[% FOREACH checkout IN borrower.checkouts %]
[% savings = checkout.item.price + savings %]
[% END %]

[% FOREACH old_checkout IN borrower.old_checkouts %]
[% IF old_checkout.item %]
[% savings = old_checkout.item.price + savings %]
[% END %]
[% END %]
You have saved [% savings | $Price %] to date by using the library.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list