Bug 40629

Summary: Issue with Price Formatting in ACQORDER Email Notice
Product: Koha Reporter: Developer Inside <amar>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: 24.11   
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:
Attachments: Notice format

Description Developer Inside 2025-08-11 06:11:54 UTC
Created attachment 185300 [details]
Notice format

Hi,

I'm currently trying to use [% USE Price %] in the ACQORDER email notice, but it doesn't seem to be working as expected.

I've updated the email notice as follows:


[%- USE Price -%]

<!-- This is printing as 0.00 -->
<th>[% aqorders.listprice | $Price %]</th>
[% aqorders.replacementprice | $Price %]


However, instead of displaying the formatted price, it shows 0.00.

When I use the angle bracket syntax, the actual price values are displayed correctly, like:

<<aqorders.listprice>> → 123.00000  
<<aqorders.replacementprice>> → 123.00000

I've tested this both on my demo instance and on the community demo instance (https://demo-intra.mykoha.co.nz), and the result is the same.

Could you please help me understand what might be going wrong or how I can get the formatted price to display correctly?