From: <Ex...@us...> - 2012-04-26 09:16:27
|
Revision: 5283 http://web-erp.svn.sourceforge.net/web-erp/?rev=5283&view=rev Author: ExsonQu Date: 2012-04-26 09:16:16 +0000 (Thu, 26 Apr 2012) Log Message: ----------- 04/26/2012 Exson: Fixed PO header that does not display user's default warehous when iusse a new PO in PO_Header.php. Modified Paths: -------------- trunk/PO_Header.php Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2012-04-26 09:04:57 UTC (rev 5282) +++ trunk/PO_Header.php 2012-04-26 09:16:16 UTC (rev 5283) @@ -878,8 +878,8 @@ $LocnResult = DB_query($sql,$db); while ($LocnRow=DB_fetch_array($LocnResult)){ - if (isset($_POST['StkLocation']) AND ($_POST['StkLocation'] == $LocnRow['loccode'] OR - ($_POST['StkLocation']=='' AND $LocnRow['loccode']==$_SESSION['UserStockLocation']))){ + if (isset($_POST['StkLocation']) AND ($_POST['StkLocation'] == $LocnRow['loccode']) OR + (empty($_POST['StkLocation']) AND $LocnRow['loccode']==$_SESSION['UserStockLocation'])){ echo '<option selected="selected" value="' . $LocnRow['loccode'] . '">' . $LocnRow['locationname'] . '</option>'; } else { echo '<option value="' . $LocnRow['loccode'] . '">' . $LocnRow['locationname'] . '</option>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |