[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6653] rental:More on wrong format
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6653] rental:More on wrong format |
Date: |
Wed, 08 Dec 2010 09:06:48 +0000 |
Revision: 6653
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6653
Author: sigurdne
Date: 2010-12-08 09:06:48 +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 09:05:29 UTC
(rev 6652)
+++ trunk/rental/inc/model/class.agresso_gl07.inc.php 2010-12-08 09:06:48 UTC
(rev 6653)
@@ -266,7 +266,7 @@
protected function get_formatted_amount($amount)
{
$amount = round($amount, 2) * 100;
- if($amount =< 0)// && !abs($amount)===0) // Negative number ,
extra check for '-0' which proved to be a problem
+ 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
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6653] rental:More on wrong format,
Sigurd Nes <=