From: <vv...@us...> - 2012-04-21 20:23:03
|
Revision: 5269 http://web-erp.svn.sourceforge.net/web-erp/?rev=5269&view=rev Author: vvs2012 Date: 2012-04-21 20:22:57 +0000 (Sat, 21 Apr 2012) Log Message: ----------- Display POs for user default location if location is not selected Modified Paths: -------------- trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2012-04-21 20:21:33 UTC (rev 5268) +++ trunk/PO_SelectOSPurchOrder.php 2012-04-21 20:22:57 UTC (rev 5269) @@ -327,7 +327,7 @@ if (isset($SelectedSupplier)) { if (!isset($_POST['StockLocation'])) { - $_POST['StockLocation']=''; + $_POST['StockLocation']=$_SESSION['UserStockLocation']; } if (isset($SelectedStockItem)) { @@ -400,7 +400,7 @@ } } else { //no supplier selected if (!isset($_POST['StockLocation'])) { - $_POST['StockLocation']=''; + $_POST['StockLocation']=$_SESSION['UserStockLocation']; } if (isset($SelectedStockItem) AND isset($_POST['StockLocation'])) { $SQL = "SELECT purchorders.realorderno, Modified: trunk/PO_SelectPurchOrder.php =================================================================== --- trunk/PO_SelectPurchOrder.php 2012-04-21 20:21:33 UTC (rev 5268) +++ trunk/PO_SelectPurchOrder.php 2012-04-21 20:22:57 UTC (rev 5269) @@ -292,7 +292,7 @@ } else { /* $DateAfterCriteria = FormatDateforSQL($OrdersAfterDate); */ if (empty($_POST['StockLocation'])) { - $_POST['StockLocation'] = ''; + $_POST['StockLocation'] = $_SESSION['UserStockLocation']; } if (isset($SelectedSupplier)) { if (isset($SelectedStockItem)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |