Fixing price formatting of left to allocate
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 12 Jan 2009 15:05:52 +0000 (15:05 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 12 Jan 2009 15:05:52 +0000 (15:05 +0000)
CHANGELOG.txt
purchasing/allocations/supplier_allocation_main.php
sales/allocations/customer_allocation_main.php
sql/en_US-demo.sql

index cd9adbe061feb2754a3fa245271df7cba3455cf3..d1c610a8971d07d3f85d8425a411546a4337460b 100644 (file)
@@ -24,6 +24,9 @@ $ -> Affected files
 $ install.html
   update.html
   /install/index.php
+# Fixing price formatting of left to allocate
+$ /purchasing/allocations/supplier_allocation_main.php
+  /sales/allocations/customer_allocation_main.php
   
 11-Jan-2009 Janusz Dobrowolski
 ! Added table pager.
index 69be12080bf6e6ce0d782f699b22879366db9c07..e10436b5e58b473df3c144023079bb1cc9b126c7 100644 (file)
@@ -88,7 +88,7 @@ function alloc_link($row)
 
 function amount_left($row)
 {
-       return -$row["Total"]-$row["alloc"];
+       return price_format(-$row["Total"]-$row["alloc"]);
 }
 
 function amount_total($row)
index c3c3c3af8af9fa3518ebc0af09979f533100d1ca..5f5482f9fe6565b749c0650a972bdd9e11253c7c 100644 (file)
@@ -88,7 +88,7 @@ function alloc_link($row)
 
 function amount_left($row)
 {
-       return $row["Total"]-$row["alloc"];
+       return price_format($row["Total"]-$row["alloc"]);
 }
 
 function check_settled($row)
index 45278a66db54f15d1d3a31ac6fe42d0c1d32a8ad..80c6cb26fd016332582003afd18b50f534ddb512 100644 (file)
@@ -792,7 +792,6 @@ CREATE TABLE `0_exchange_rates` (
 
 ### Data of table `0_exchange_rates` ###
 
-INSERT INTO `0_exchange_rates` VALUES ('1', 'LE', '0.149', '0.149', '2006-01-18');
 INSERT INTO `0_exchange_rates` VALUES ('2', 'GBP', '1.2', '1.2', '2006-01-18');
 INSERT INTO `0_exchange_rates` VALUES ('3', 'SEK', '0.1667', '0.1667', '2007-01-29');
 INSERT INTO `0_exchange_rates` VALUES ('4', 'DKK', '0.2', '0.2', '2007-03-05');