From 03b59f3dbb1bc40137c51b6af5236464f39b6131 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 11 Jan 2019 22:55:35 +0100 Subject: [PATCH] Bug 21427: Format prices on ordered/spent lists consistently Some price information on the spent and ordered list already used the $Price filter. With this patch all amounts should be formatted according to the CurrencyFormat system preference. Signed-off-by: Jack Kelliher Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens (cherry picked from commit 209570f89d050f22fa90eed6a8a70ad9eb56e8a2) Signed-off-by: Martin Renvoize (cherry picked from commit 71227300a3f367ef8b17572a419d24eeecea9ded) Signed-off-by: Lucas Gass --- .../prog/en/modules/acqui/ordered.tt | 102 ++++++++++-------- .../prog/en/modules/acqui/spent.tt | 18 +++- 2 files changed, 70 insertions(+), 50 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt index 7b9c8b6c30..05071f5539 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt @@ -18,62 +18,72 @@
-
-
+
+

Fund: [% fund_code %]

Ordered

- - - - - - - - - - - - - + + + + + + + + + + + + + [% FOREACH order IN ordered %] - - - - - - - - - + + + + + + + + [% END %] + [% IF ( adjustments && adjustments.count > 0 ) %] + [% FOREACH adjustment IN adjustments %] + + + + + + [% END %] + + [% END %] @@ -83,7 +93,7 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt index 97893b87bd..67a0ccacf2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt @@ -73,6 +73,7 @@ [% END %] @@ -81,19 +82,28 @@ [% IF shipmentcosts.size %] - + [% FOREACH shipmentcost IN shipmentcosts %] - - + + + + [% END %] + [% END %] + [% IF ( adjustments && adjustments.count > 0 ) %] + [% FOREACH adjustment IN adjustments %] + + + + [% END %] [% END %] - +
Title Order Vendor Item type Left on order Estimated cost per unit Date ordered Subtotal
Title Order Vendor Item type Left on order Estimated cost per unit Date ordered Subtotal
- - [% order.title %] - - - [% IF ( CAN_user_acquisition_order_manage ) %] - [% order.ordernumber %] - [% ELSE %] - [% order.ordernumber %] - [% END %] - - [% order.vendorname | html %] - - [% ItemTypes.GetDescription( order.itype ) %] - - [% order.left %] - - [% order.ecost_tax_included | $Price %] - - [% order.entrydate | $KohaDates %] - - [% order.subtotal %] +
+ + [% order.title %] + + + [% IF ( CAN_user_acquisition_order_manage ) %] + [% order.ordernumber %] + [% ELSE %] + [% order.ordernumber %] + [% END %] + + [% order.vendorname | html %] + + [% ItemTypes.GetDescription( order.itype ) %] + + [% order.left %] + + [% order.ecost_tax_included | $Price %] + + [% order.entrydate | $KohaDates %] + + [% order.subtotal | $Price %]
Adjustment cost for invoice [% adjustment.invoiceid | html %][% adjustment.adjustment | $Price %]
Total - [% total %] + [% total | $Price %]
[% order.rowtotal %] + [% order.rowtotal | $Price %]
Sub total [% subtotal %] [% subtotal | $Price %]
Shipping cost for invoice [% shipmentcost.invoicenumber %][% shipmentcost.shipmentcost %]Shipping cost for invoice [% shipmentcost.invoicenumber | html %][% shipmentcost.shipmentcost | $Price %]
Adjustment cost for invoice [% adjustment.invoiceid | html %][% adjustment.adjustment | $Price %]
TOTAL[% total %][% total | $Price %]
-- 2.39.5