[Koha-bugs] [Bug 9374] In baskets, prices between 0 and 1 are displayed in red

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 15 13:16:09 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9374

--- Comment #1 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
Created attachment 21107
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21107&action=edit
[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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list