From 04a7b655b67b6f7ae47f2677270a393beb26ed85 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Sun, 15 Sep 2013 13:09:20 +0200 Subject: [PATCH] Bug 9374: Only 0.00 prices must have class error in basket.tt A regexp '^0' in basket.tt is used to give the class "error" to null prices. It is wrong, because it matches prices like "0.15". It should only match "0.00". To test : - apply the patch - display a basket with an order with a price between 0 and 1 (like "0.50") and an order with a price stricty null ("0.00") - only the "0.00" price should be displayed in red Signed-off-by: Cedric Vita Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 67e299d..3558616 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -367,15 +367,15 @@

[% END %] - [% books_loo.rrpgste %] - [% books_loo.ecostgste %] - [% books_loo.rrpgsti %] - [% books_loo.ecostgsti %] - [% books_loo.quantity %] - [% books_loo.totalgste %] - [% books_loo.totalgsti %] - [% books_loo.gstgsti %] - [% books_loo.gstvalue %] + [% books_loo.rrpgste %] + [% books_loo.ecostgste %] + [% books_loo.rrpgsti %] + [% books_loo.ecostgsti %] + [% books_loo.quantity %] + [% books_loo.totalgste %] + [% books_loo.totalgsti %] + [% books_loo.gstgsti %] + [% books_loo.gstvalue %] [% books_loo.budget_name %] [% IF ( active ) %] [% UNLESS ( closedate ) %] -- 1.7.10.4