[Bug 28732] New: Order and claim emails don't work well with repeatable information
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28732 Bug ID: 28732 Summary: Order and claim emails don't work well with repeatable information Change sponsored?: --- Product: Koha Version: 20.05 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org There is an issue with how the repeatable part of the notice is figured out. This sets some strict limits to how you can write the notice template. It appears that the repeat will happen from first to the last placeholder from an acq table used in the notice. The <order> tags don't appear to be used at all. Test plan: - Create a basket with more than one order line - Set up a notice called ACQORDER for sending order emails (templats below) - Make sure the vendor has an email set and all checkboxes in the contact are checked - Make sure your system can send emails - Click button "send order e-mail" on the basket summary page ------------------------------------------------ ACQORDER TEMPLATE 1: [%- USE Price -%] Dear...<br> <br> <order><b>Title:</b> <<biblio.title>><br /><b>Author:</b> <<biblio.author>><br /><b>Edition:</b> <<biblioitems.editionstatement>><br /><b>Year:</b> <<biblio.copyrightdate>><br /><b>ISBN:</b> <<biblioitems.isbn>><br /><b>Units:</b> <<aqorders.quantity>><br /><b>Price:</b> [% <<aqorders.listprice>> | $Price %] EUR<br><br></order> <br><br> Thank you! RESULT: Dear and Thank you only appear once. OK. Dear... Title: ... Author: ... Edition: 1. Auflage, Originalausgabe Year: ISBN: 9783839225837 Units: 1 Price: 13.99 EUR Title: ... Author: Edition: Year: 2020 ISBN: Units: 1 Price: 13.00 EUR Thank you! ------------------------------------------------ ACQORDER TEMPLATE 2: Only addition/change is the second line. [%- USE Price -%] <h2>Order: <<aqbasket.basketname>></h2> Dear...<br> <br> <order><b>Title:</b> <<biblio.title>><br /><b>Author:</b> <<biblio.author>><br /><b>Edition:</b> <<biblioitems.editionstatement>><br /><b>Year:</b> <<biblio.copyrightdate>><br /><b>ISBN:</b> <<biblioitems.isbn>><br /><b>Units:</b> <<aqorders.quantity>><br /><b>Price:</b> [% <<aqorders.listprice>> | $Price %] EUR<br><br></order> </hr> <br><br> Thank you! RESULT: Order:... and Dear... lines are repeated. For information from the basket this doesn't make sense. If you add a field from the branches table, this doesn't appear to cause any additional repeats. Order: 28.4.2021 Dear... Title: ... Author: ... Edition: 1. Auflage, Originalausgabe Year: ISBN: 9783839225837 Units: 1 Price: 13.99 EUR Order: 28.4.2021 Dear... Title: ... Author: Edition: Year: 2020 ISBN: Units: 1 Price: 13.00 EUR Thank you! -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28732 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=42709 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28732 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michaela.sieber@kit.edu --- Comment #1 from Michaela Sieber <michaela.sieber@kit.edu> --- This is solved for the ACQORDER letter. Example: [%- USE Price -%] Hello,<br> <br> we order: <br> [% FOREACH order IN orders %] <b>Ordernumber :</b> [% order.ordernumber %]<br> <b>Title:</b> [% order.biblio.title %]<br> <b>Author :</b> [% order.biblio.author %]<br> <b>Edition:</b> [% order.biblio.biblioitem.editionstatement %]<br> <b>Jear:</b> [% order.biblio.copyrightdate %] <br> <b>ISBN:</b> [% order.biblio.biblioitem.isbn %]<br> <b>Quantity :</b> [% order.quantity %]<br> <b>Price:</b> [% order.listprice | $Price %] [% order.currency %] <br><br> <b>Note: [% order.order_vendornote %] </b><br><br> <b>Fund:</b> [% order.fund.budget_name %] <hr> <br> [% END %] <br><br> Best regards -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28732 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Order and claim emails |Acquisition claim emails |don't work well with |don't work well with |repeatable information |repeatable information | |ACQCLAIM -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28732 Michaela Sieber <michaela.sieber@kit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|20.05 |Main --- Comment #2 from Michaela Sieber <michaela.sieber@kit.edu> --- Still valid for ACQCLAIM letter, I changed the title of the bug and the version -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org