From: <ex...@us...> - 2015-09-21 02:00:05
|
Revision: 7354 http://sourceforge.net/p/web-erp/reponame/7354 Author: exsonqu Date: 2015-09-21 02:00:03 +0000 (Mon, 21 Sep 2015) Log Message: ----------- 21/09/15 Exson: Fix the wrong material cost updated in SupplierCredit.php. Reported by Akits. Modified Paths: -------------- trunk/SupplierCredit.php Modified: trunk/SupplierCredit.php =================================================================== --- trunk/SupplierCredit.php 2015-09-19 04:55:14 UTC (rev 7353) +++ trunk/SupplierCredit.php 2015-09-21 02:00:03 UTC (rev 7354) @@ -960,7 +960,7 @@ $CostIncrement = ($PurchPriceVar - $WriteOffToVariances) / $TotalQuantityOnHand; $sql = "UPDATE stockmaster SET lastcost=materialcost+overheadcost+labourcost, - materialcost=materialcost+" . $CostIncrement . " + materialcost=materialcost-" . $CostIncrement . " WHERE stockid='" . $EnteredGRN->ItemCode . "'"; $Result = DB_query($sql, $ErrMsg, $DbgMsg, True); |