From: <ex...@us...> - 2015-03-13 02:30:15
|
Revision: 7221 http://sourceforge.net/p/web-erp/reponame/7221 Author: exsonqu Date: 2015-03-13 02:30:07 +0000 (Fri, 13 Mar 2015) Log Message: ----------- 13/03/15 Exson: Make Labor type allowed by category select in WorkOrderIssue.php. Modified Paths: -------------- trunk/WorkOrderIssue.php Modified: trunk/WorkOrderIssue.php =================================================================== --- trunk/WorkOrderIssue.php 2015-03-12 01:04:06 UTC (rev 7220) +++ trunk/WorkOrderIssue.php 2015-03-13 02:30:07 UTC (rev 7221) @@ -77,7 +77,7 @@ $InputError=true; } $QuantityIssued =0; - if (is_array($_POST['SerialNos'])){ //then we are issuing a serialised item + if (isset($_POST['SerialNos']) AND is_array($_POST['SerialNos'])){ //then we are issuing a serialised item $QuantityIssued = count($_POST['SerialNos']); // the total quantity issued as 1 per serial no } elseif (isset($_POST['Qty'])){ //then its a plain non-controlled item $QuantityIssued = filter_number_format($_POST['Qty']); @@ -705,7 +705,7 @@ $SQL="SELECT categoryid, categorydescription FROM stockcategory - WHERE stocktype='F' OR stocktype='D' + WHERE stocktype='F' OR stocktype='D' OR stocktype='L' ORDER BY categorydescription"; $result1 = DB_query($SQL); @@ -902,4 +902,4 @@ </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> |