From: <ex...@us...> - 2014-06-23 02:12:17
|
Revision: 6773 http://sourceforge.net/p/web-erp/reponame/6773 Author: exsonqu Date: 2014-06-23 02:12:12 +0000 (Mon, 23 Jun 2014) Log Message: ----------- 23/06/14 Exson: Fixed the bug that the sales order line's quantity will be update to zero but it show no change in appearance in SelectOrderItems.php. Modified Paths: -------------- trunk/SelectOrderItems.php Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2014-06-22 21:30:22 UTC (rev 6772) +++ trunk/SelectOrderItems.php 2014-06-23 02:12:12 UTC (rev 6773) @@ -1085,8 +1085,8 @@ $AlreadyWarnedAboutCredit = true; } } - - if ($WithinCreditLimit){ + /* The database data will be updated at this step, it will make big mistake if users do not know this and change the quantity to zero, unfortuately, the appearance shows that this change not allowed but the sales order details' quantity has been changed to zero in database. Must to filter this out! A zero quantity order line means nothing */ + if ($WithinCreditLimit AND $Quantity >0){ $_SESSION['Items'.$identifier]->update_cart_item($OrderLine->LineNumber, $Quantity, $Price, |