Bug 28725

Summary: ACQORDER email no longer prints more than one order line
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low    
Version: 20.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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.