https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31656
--- Comment #1 from Caroline Cyr La Rose <[email protected]> --- As for the use case for this, I had a library who wanted to use the CHECKOUT emails instead of printing the ISSUESLIP. They also wanted the value of items like it is possible to get in the ISSUESLIP https://wiki.koha-community.org/wiki/Notices_and_Slips_Library#Add_total_value_of_items_on_issue_slip Adding the price to totalValue doesn't work when using four dashes. In the end, it only shows one of the prices. This is what I tried (among many things) [%- USE KohaDates -%] [%- USE Price -%] [% totalValue = 0 %] <p>Hello [% borrower.firstname %] [% borrower.surname %] </p> <p>You have checked out the following items:</p> ---- [% totalValue = item.price + totalValue %] <p>[% biblio.title %]<br /> Barcode: [% item.barcode %]<br /> Due date: [% checkout.date_due | $KohaDates %]<br/> Value: [% item.price %]</p> ---- <p>You saved [% totalValue | $Price %] by using the library today!</p> <p>The [% branch.branchname %] team</p> And this is the result Hello Henry Acevedo You have checked out the following items: 1492 Barcode: 000687 Due date: 10/13/2022 Value: 12.95 A Book of Scoundrels Barcode: 000629 Due date: 10/13/2022 Value: 18.95 You saved 18.95 by using the library today! The Centerville team As you can see, it doesn't add the two values. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
