|
From: <ex...@us...> - 2013-12-11 08:45:20
|
Revision: 6492
http://sourceforge.net/p/web-erp/reponame/6492
Author: exsonqu
Date: 2013-12-11 08:45:14 +0000 (Wed, 11 Dec 2013)
Log Message:
-----------
11/12/13: Thumb fixed bug that calculated the wrong StandardCost of assembly parts in Credit_Invoice.php and SelectCreditItems.php. Bug confirmed by Phil.
Modified Paths:
--------------
trunk/Credit_Invoice.php
trunk/SelectCreditItems.php
Modified: trunk/Credit_Invoice.php
===================================================================
--- trunk/Credit_Invoice.php 2013-12-11 07:28:08 UTC (rev 6491)
+++ trunk/Credit_Invoice.php 2013-12-11 08:45:14 UTC (rev 6492)
@@ -725,7 +725,7 @@
while ($AssParts = DB_fetch_array($AssResult,$db)){
- $StandardCost += $AssParts['standard'];
+ $StandardCost += $AssParts['standard'] * $AssParts['quantity'];
/*Determine the type of stock item being credited */
$SQL = "SELECT mbflag
FROM stockmaster
Modified: trunk/SelectCreditItems.php
===================================================================
--- trunk/SelectCreditItems.php 2013-12-11 07:28:08 UTC (rev 6491)
+++ trunk/SelectCreditItems.php 2013-12-11 08:45:14 UTC (rev 6492)
@@ -1444,7 +1444,7 @@
while ($AssParts = DB_fetch_array($AssResult,$db)){
- $StandardCost += $AssParts['standard'];
+ $StandardCost += $AssParts['standard'] * $AssParts['quantity'];
/*Need to get the current location quantity will need it later for the stock movement */
$SQL="SELECT locstock.quantity
|