[Bug 40629] New: Issue with Price Formatting in ACQORDER Email Notice
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40629 Bug ID: 40629 Summary: Issue with Price Formatting in ACQORDER Email Notice Change sponsored?: --- Product: Koha Version: 24.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: amar@ourlib.in QA Contact: testopia@bugs.koha-community.org Created attachment 185300 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185300&action=edit 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? -- 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=40629 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- You probably have the wrong name for the variable. Try aqorder.listprice (singular instead of plural). As this is not a bug (error or enhancement request), but sounds more like a support question I am closing this as invalid. Please feel free to bring your question up again on the mailing list or on the chat server (https://chat.koha-community.org). -- 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=40629 --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I was able to look it up today, it should work like this: [% FOREACH order IN orders %] ... add information about each order line here [% order.listprice %] [% END %] -- 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