From: <te...@us...> - 2015-08-19 07:38:00
|
Revision: 7343 http://sourceforge.net/p/web-erp/reponame/7343 Author: tehonu Date: 2015-08-19 07:37:57 +0000 (Wed, 19 Aug 2015) Log Message: ----------- Fixed bug introduced by myself at latest change (record of cancelled items in Transfer). Modified Paths: -------------- trunk/StockLocTransferReceive.php Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2015-08-16 05:25:43 UTC (rev 7342) +++ trunk/StockLocTransferReceive.php 2015-08-19 07:37:57 UTC (rev 7343) @@ -411,6 +411,11 @@ unset ($_POST['Qty' . $i]); } /*end if Quantity >= 0 */ if($TrfLine->CancelBalance==1) { + $sql = "UPDATE loctransfers SET shipqty = recqty + WHERE reference = '". $_SESSION['Transfer']->TrfID . "' + AND stockid = '". $TrfLine->StockID."'"; + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('Unable to set the quantity received to the quantity shipped to cancel the balance on this transfer line'); + $Result = DB_query($sql, $ErrMsg, $DbgMsg, true); // send an email to the inventory manager about this cancellation (as can lead to employee fraud) if($_SESSION['InventoryManagerEmail']!='') { $ConfirmationText = _('Cancelled balance of transfer'). ': ' . $_SESSION['Transfer']->TrfID . |