webERP Forum
[FIXED] SupplierBalsAtPeriodEnd.php this is bug or not?? - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: [FIXED] SupplierBalsAtPeriodEnd.php this is bug or not?? (/showthread.php?tid=2279)



[FIXED] SupplierBalsAtPeriodEnd.php this is bug or not?? - kelo - 08-14-2014

Hallo.. i found that the total amount at this script is not same when i recalculated manually and i found at line 81 of this line of code

Code:
$DisplayBalance = locale_number_format($SupplierBalances['balance'] - $SupplierBalances['afterdatetrans'],$_SESSION['CompanyRecord']['decimalplaces']);

i think the line should be like this:

Code:
$DisplayBalance = locale_number_format($SupplierBalances['balance'] - $SupplierBalances['afterdatetrans'] + $SupplierBalances['afterdatediffonexch'],$_SESSION['CompanyRecord']['decimalplaces']);



RE: SupplierBalsAtPeriodEnd.php this is bug or not?? - phil - 08-14-2014

Thank you - I've committed your change


RE: [FIXED] SupplierBalsAtPeriodEnd.php this is bug or not?? - pronovolin - 08-25-2014

Thank you too.