! -> Note
$ -> Affected files
+07-Sep-2010 Janusz Dobrowolski
+# Ugly bug in formating numbers
+$ /js/utils.js
+
07-Sep-2010 Joe Hunt/Chaitanya
! Removed all decimal roundings in cost price calculations
$ /purchasing/includes/db/grn_db.inc
/manufacturing/includes/db/work_orders_db.inc
-
+
06-Sep-2010 Janusz Dobrowolski
# Fixed error on new contact add.
$ /includes/ui/contacts_view.inc
num = Math.floor(num*decsize+0.50000000001);
cents = num%decsize;
num = Math.floor(num/decsize).toString();
+ for( i=cents.toString().length; i<dec; i++){
+ cents = "0"+cents;
+ }
if (max) // strip trailing 0
cents = cents.toString().replace(/0+$/,'');
- else
- for( i=cents.toString().length; i<dec; i++){
- cents = cents + "0";
- }
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+user.ts+
num.substring(num.length-(4*i+3));