Revision: 6677
http://sourceforge.net/p/web-erp/reponame/6677
Author: exsonqu
Date: 2014-04-07 10:38:49 +0000 (Mon, 07 Apr 2014)
Log Message:
-----------
07/04/14 Exson: Add InOutModifier to input Quantity when there whole batches are removed. Otherwise, it will create a wrong quantity left in Add_SerialItems.php.
Modified Paths:
--------------
trunk/includes/Add_SerialItems.php
Modified: trunk/includes/Add_SerialItems.php
===================================================================
--- trunk/includes/Add_SerialItems.php 2014-04-07 08:58:11 UTC (rev 6676)
+++ trunk/includes/Add_SerialItems.php 2014-04-07 10:38:49 UTC (rev 6677)
@@ -52,7 +52,7 @@
' '._('of') . ' ' . $_POST['SerialNo' . $i] . ' '. _('remaining') . '. ' .
_('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'),
'warn');
- $_POST['Qty' . $i] = $ExistingBundleQty;
+ $_POST['Qty' . $i] = $InOutModifier*$ExistingBundleQty;
if(!isset($AddThisBundle)){
$AddThisBundle = true;
}
|