From: <tim...@us...> - 2010-01-04 12:25:08
|
Revision: 3269 http://web-erp.svn.sourceforge.net/web-erp/?rev=3269&view=rev Author: tim_schofield Date: 2010-01-04 12:24:44 +0000 (Mon, 04 Jan 2010) Log Message: ----------- Correct typo in sql statement. Modified Paths: -------------- trunk/api/api_stock.php trunk/doc/Change.log.html Modified: trunk/api/api_stock.php =================================================================== --- trunk/api/api_stock.php 2010-01-03 21:00:49 UTC (rev 3268) +++ trunk/api/api_stock.php 2010-01-04 12:24:44 UTC (rev 3269) @@ -282,7 +282,7 @@ return $Errors; } $PageSecurity =11; //The authorisation required to go to the stock modification script - if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']))) { + if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']))) { $Errors[0]=NoAuthorisation; return $Errors; } @@ -784,7 +784,7 @@ $Location.'" AND stockid="'.$StockID.'"'; $glupdatesql1="INSERT INTO gltrans (type, typeno, trandate, periodno, account, amount, narrative) VALUES (17,".GetNextTransactionNo(17, $db).",'".$TranDate. - "','"GetPeriodFromTransactionDate($TranDate, sizeof($Errors), $Errors, $db). + "','".GetPeriodFromTransactionDate($TranDate, sizeof($Errors), $Errors, $db). ",".$adjglact.",".$itemdetails['materialcost']*-$Quantity. ",'".$StockID." x ".$Quantity." @ ".$itemdetails['materialcost']."')"; $glupdatesql2="INSERT INTO gltrans (type, typeno, trandate, periodno, account, amount, narrative) Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-03 21:00:49 UTC (rev 3268) +++ trunk/doc/Change.log.html 2010-01-04 12:24:44 UTC (rev 3269) @@ -1,6 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p> -<p>3/1/10 Phil: Fix SalesAnalysis_UserDefined.php - one too many brackets and indentation +<p>04/01/10 Tim: api_stock.php - Correct typo in sql statement. +<p>03/01/10 Phil: Fix SalesAnalysis_UserDefined.php - one too many brackets and indentation <p>02/01/10 Tim: Allow pdf output of the asset register. <p>24/12/09 Tim: Move the purchase ordering printing parameters to a separate file for the form designer. <p>23/12/09 Tim: Rename rtl theme to remove the space. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |