Bug 28725 - ACQORDER email no longer prints more than one order line
Summary: ACQORDER email no longer prints more than one order line
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: 20.05
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-20 16:04 UTC by Katrin Fischer
Modified: 2022-06-06 20:24 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2021-07-20 16:04:20 UTC
In the ACQORDER in the past <order></order> was used to mark the section that shoudl be repeated for each order in the basket.

In 20.11 testing with existing templates from our libraries and also the standard template from the wiki, there is always only one order line added to the email.

https://wiki.koha-community.org/wiki/Notices_and_Slips_Library#Acquisition_order

It doesn't matter if it's all one line or if email/text mails are used.

I imagine there might be a workaround using TT syntax, but I couldn't figure it out.
Comment 1 Katrin Fischer 2021-07-21 15:37:51 UTC
I am still investigating. The below templates works for acq claims, but not for orders:

<<aqbooksellers.name>>
<<aqbooksellers.address1>>
<<aqbooksellers.address2>>
<<aqbooksellers.address3>>
<<aqbooksellers.address4>>
<<aqbooksellers.phone>>

Ordernumber <<aqorders.ordernumber>> (<<aqorders.title>>) (<<aqorders.quantity>> ordered) (each $<<aqorders.listprice>> €).

As the code for the orders is based on the code for the claims... where is the difference?
Comment 2 Katrin Fischer 2021-07-21 15:58:40 UTC
I can happily close this as the problem was in front of the computer:

Order lines that are cancelled or already received won#t be printed. Testing this on a basket with several unreceived orders works well.