Bug 21167: Fix price formatting on printed fee invoice and receipt
authorKatrin Fischer <katrin.fischer.83@web.de>
Wed, 8 Aug 2018 19:26:47 +0000 (19:26 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 5 Oct 2018 11:41:01 +0000 (12:41 +0100)
commit794e3af801bd38d134bca26395b3ad0b2ac7f1a7
treec07dbef18c0e1351afc14dff3c65013eea09f523
parent6427906fcccea22327db3c1d78847fed5ba9e7fb
Bug 21167: Fix price formatting on printed fee invoice and receipt

The prices were not formatted correctly on the printed receipts
for fines and payments in the patron account.

This patch introduces the use of the Price TT plugin to those
templates.

Also:
- Fixes a few capitalization errors
- Removes spaces in front of :
- Updates accounttype-to-description list to the one used
  in other templats as a lot of values were missing (Credit etc.)

To test:
- Create several fines, use some .00 and some with other values
- Pay some fines
- Create a manual credit
- Use print button for all of those (credit, fee, payment)
- Verify that:
  - prices ending in .00 are displayed without the decimal part
  - instead of Credit only C is shown in the description
- Apply patch
- Print invoices and receipts again
- Verify that:
  - prices are now formatted according to CurrencyFormat system
    preference, decimal part always included
  - verify that correct description for Credit is shown

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 184c44ee31bf54ad179f9fb9fd501114902a0176)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt
members/printfeercpt.pl