Revision: 7511
http://sourceforge.net/p/web-erp/reponame/7511
Author: daintree
Date: 2016-05-07 22:48:34 +0000 (Sat, 07 May 2016)
Log Message:
-----------
Supplier allocation rounding
Modified Paths:
--------------
trunk/SupplierAllocations.php
Modified: trunk/SupplierAllocations.php
===================================================================
--- trunk/SupplierAllocations.php 2016-05-06 09:08:15 UTC (rev 7510)
+++ trunk/SupplierAllocations.php 2016-05-07 22:48:34 UTC (rev 7511)
@@ -82,8 +82,7 @@
$_SESSION['Alloc']->Allocs[$_POST['AllocID' . $AllocCounter]]->DiffOnExch = ($_POST['Amt' . $AllocCounter] / $_SESSION['Alloc']->TransExRate) - ($_POST['Amt' . $AllocCounter] / $_SESSION['Alloc']->Allocs[$_POST['AllocID' . $AllocCounter]]->ExRate);
$TotalDiffOnExch += $_SESSION['Alloc']->Allocs[$_POST['AllocID' . $AllocCounter]]->DiffOnExch;
- $TotalAllocated += $_POST['Amt' . $AllocCounter];
-
+ $TotalAllocated += round($_POST['Amt' . $AllocCounter],$_SESSION['Alloc']->CurrDecimalPlaces);
} /*end of the loop to set the new allocation amounts,
recalc diff on exchange and add up total allocations */
|