From: <tim...@us...> - 2010-04-21 19:50:22
|
Revision: 3426 http://web-erp.svn.sourceforge.net/web-erp/?rev=3426&view=rev Author: tim_schofield Date: 2010-04-21 19:50:15 +0000 (Wed, 21 Apr 2010) Log Message: ----------- Fix bug in checking of perishable field. Modified Paths: -------------- trunk/Z_ImportStocks.php trunk/doc/Change.log.html Modified: trunk/Z_ImportStocks.php =================================================================== --- trunk/Z_ImportStocks.php 2010-04-21 08:19:44 UTC (rev 3425) +++ trunk/Z_ImportStocks.php 2010-04-21 19:50:15 UTC (rev 3426) @@ -129,7 +129,7 @@ $InputError = 1; prnMsg(_('The barcode must be 20 characters or less long'),'error'); } - if (!is_numeric($myrow[10]) OR $myrow[10]!=0 OR $myrow[10]!=1) { + if ($myrow[10]!='0' AND $myrow[10]!='1') { $InputError = 1; prnMsg (_('Values in the Perishable field must be either 0 (No) or 1 (Yes)') ,'error'); } Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-04-21 08:19:44 UTC (rev 3425) +++ trunk/doc/Change.log.html 2010-04-21 19:50:15 UTC (rev 3426) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>21/04/10 Matt Taylor: Z_ImportStocks.php : Fix bug in checking of perishable field.</p> <p>18/04/10 Ricard: InventoryPlanning.php - Remove discontinued items from inventory planning reports.</p> <p>15/04/10 Kalmer Piiskop: MiscFunctions.js - Update IsDAte() function for all date formats.</p> <p>15/04/10 Ricard: WWW_Users.php - Correctly show the last visited date.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |