[Koha-bugs] [Bug 9141] Untranslatable strings on "pay an amount..." page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 11 20:50:15 CET 2012


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

Paul Poulain <paul.poulain at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paul.poulain at biblibre.com
         QA Contact|                            |paul.poulain at biblibre.com

--- Comment #3 from Paul Poulain <paul.poulain at biblibre.com> ---
QA comment: tiny patch, but I think it could be even simpler. Instead of using
a error_over => 1, why not use total_due =
-[% IF ( error ) %]
+[% IF (total_due > 0 ) %]

should achieve the same result, isn't it ?
In this case the patch would just be:
-[% IF ( error ) %]
+[% IF (total_due > 0 ) %]
-    [% error %]
+    You must pay a value less than or equal to [% total_due | format('%.2f')
%].

-            error => sprintf( 'You must pay a value less than or equal to
%f.2',
-                $total_due )
+            total_due => $total_due

Your opinion ?

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


More information about the Koha-bugs mailing list