From: <dai...@us...> - 2013-05-18 02:19:57
|
Revision: 5975 http://sourceforge.net/p/web-erp/reponame/5975 Author: daintree Date: 2013-05-18 02:19:54 +0000 (Sat, 18 May 2013) Log Message: ----------- ensure queries inside transaction have rollback capability Modified Paths: -------------- trunk/CounterSales.php Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2013-05-17 23:39:08 UTC (rev 5974) +++ trunk/CounterSales.php 2013-05-18 02:19:54 UTC (rev 5975) @@ -1092,8 +1092,9 @@ 0, '" . $_SESSION['Items'.$identifier]->SalesPerson . "')"; + $DbgMsg = _('Trouble inserting the sales order header. The SQL that failed was'); $ErrMsg = _('The order cannot be added because'); - $InsertQryResult = DB_query($HeaderSQL,$db,$ErrMsg); + $InsertQryResult = DB_query($HeaderSQL,$db,$ErrMsg,$DbgMsg,true); $StartOf_LineItemsSQL = "INSERT INTO salesorderdetails (orderlineno, orderno, |