From cbe0d7bebdd0de8e15d1f5fe3cb12da3160baa64 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 Signed-off-by: Galen Charlton --- .../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 2bf26fbd9c..3d4cf43f83 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -450,15 +450,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 ) %] -- 2.39.5