fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6652] rental:More on wrong format


From: Sigurd Nes
Subject: [Fmsystem-commits] [6652] rental:More on wrong format
Date: Wed, 08 Dec 2010 09:05:29 +0000

Revision: 6652
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6652
Author:   sigurdne
Date:     2010-12-08 09:05:29 +0000 (Wed, 08 Dec 2010)
Log Message:
-----------
rental:More on wrong format

Modified Paths:
--------------
    trunk/rental/inc/model/class.agresso_gl07.inc.php

Modified: trunk/rental/inc/model/class.agresso_gl07.inc.php
===================================================================
--- trunk/rental/inc/model/class.agresso_gl07.inc.php   2010-12-08 08:56:57 UTC 
(rev 6651)
+++ trunk/rental/inc/model/class.agresso_gl07.inc.php   2010-12-08 09:05:29 UTC 
(rev 6652)
@@ -266,7 +266,7 @@
        protected function get_formatted_amount($amount)
        {
                $amount = round($amount, 2) * 100;
-               if($amount < 0) // Negative number
+               if($amount =< 0)// && !abs($amount)===0) // Negative number , 
extra check for '-0' which proved to be a problem
                {
                        $ret = '-' . sprintf("%019.19s", abs($amount)); // We 
have to have the sign at the start of the string
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]