[Koha] How do I reduce decimal digits of prices in order notice?

Boettcher, Uwe Uwe.Boettcher at whu.edu
Thu Jul 4 02:14:26 NZST 2019


Many thanks to Katrin Fischer for her reference to a thread in [Koha-devel] that has dealt with this issue before:

http://lists.koha-community.org/pipermail/koha-devel/2018-October/044890.html

[%- USE Price -%]
...
[% <<aqorders.listprice>> | $Price %]

does the trick.

Best

Uwe

-----Ursprüngliche Nachricht-----
Von: Koha <koha-bounces at lists.katipo.co.nz> Im Auftrag von Boettcher, Uwe
Gesendet: Dienstag, 2. Juli 2019 16:23
An: koha at lists.katipo.co.nz
Betreff: [Koha] How do I reduce decimal digits of prices in order notice?

Dear all,

configuring the ACQORDER notice, I keep getting too many decimal digits at the price output.

Example:

<order>
Title: <<biblio.title>><br>
... bla
Price: <<aqorders.listprice>> <<aqorders.currency>><br>
</order>

keeps producing an output like this:

Title: Test title
... bla
Price: 18.000000 EURO

Is there any way of reducing the 6 decimal digits to two?

Many thanks in advance, and kind regards

Uwe
__________________________________________________________________

(Mr.) Uwe Boettcher
Director Library

WHU – Otto Beisheim School of Management
Campus Vallendar, Burgplatz 2, 56179 Vallendar, Germany 
Tel.: +49 261 6509-550 ; Fax: +49 261 6509-559
uwe.boettcher at whu.edu ; https://eur01.safelinks.protection.outlook.com/?url=www.whu.edu&data=02%7C01%7Cuwe.boettcher%40whu.edu%7C1db2efb731fe48995aa608d6fef8d1b9%7Cfd0fb88881d0438694628a094cc4592e%7C1%7C0%7C636976741961733098&sdata=vDJvaAJ%2BHruo7n7ba%2BZFZNwYZEYgCpBx7XpHJjx6exI%3D&reserved=0
___________________________________________________________________




_______________________________________________
Koha mailing list  https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkoha-community.org&data=02%7C01%7Cuwe.boettcher%40whu.edu%7C1db2efb731fe48995aa608d6fef8d1b9%7Cfd0fb88881d0438694628a094cc4592e%7C1%7C0%7C636976741961733098&sdata=%2FnoXeTRnW9KnvaP432SaTZc1L2BmBmkhSvBufVR03Gs%3D&reserved=0
Koha at lists.katipo.co.nz
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.katipo.co.nz%2Fmailman%2Flistinfo%2Fkoha&data=02%7C01%7Cuwe.boettcher%40whu.edu%7C1db2efb731fe48995aa608d6fef8d1b9%7Cfd0fb88881d0438694628a094cc4592e%7C1%7C0%7C636976741961733098&sdata=U0uERnKBS4%2FJs4qW0jt9gnAIhMksNHyXuyStVRA8AHs%3D&reserved=0


More information about the Koha mailing list