Re: [Koha] Notice ACQORDERS shows aqorders.listprice with six decimal places

2024-09-26 Thread Michael Kuhn
Hi Jonathan Many thanks for the hint! I found more about this syntax and table references in https://wiki.koha-community.org/wiki/Notices_with_Template_Toolkit Now our ACQORDER notice lokks something like this: [%- USE Price -%] [% FOREACH order IN orders %] Author: [% order.biblio.abstract

Re: [Koha] Notice ACQORDERS shows aqorders.listprice with six decimal places

2024-09-23 Thread Jonathan Druart
Use the "Price" template plugin At the top of the template, add: [%- USE Price -%] Then: [% order.listprice | $Price %] Le ven. 20 sept. 2024 à 11:07, Michael Kuhn a écrit : > > Hi > > In database field "aqorders.listprice" is given with six decimal places, > thus a price would look like: 40.10

[Koha] Notice ACQORDERS shows aqorders.listprice with six decimal places

2024-09-20 Thread Michael Kuhn
Hi In database field "aqorders.listprice" is given with six decimal places, thus a price would look like: 40.10 To beautify this we have added the following in notice ACQORDERS which removed the last four decimal places [% "<>" FILTER remove('\d{4}$') %] so the price would look like: