Fixed syntax typo.
[fa-stable.git] / sales / inquiry / sales_deliveries_view.php
index 1c5f342d4cd653287e5ab7d6690ba2a7e1fdbf28..d9a7af5aaf5af456279f990d2ce3133556c5b6d4 100644 (file)
@@ -119,7 +119,7 @@ end_form();
 //---------------------------------------------------------------------------------------------
 
 if (isset($_POST['SelectStockFromList']) && ($_POST['SelectStockFromList'] != "") &&
-       ($_POST['SelectStockFromList'] != reserved_words::get_all()))
+       ($_POST['SelectStockFromList'] != ALL_TEXT))
 {
        $selected_stock_item = $_POST['SelectStockFromList'];
 }
@@ -218,7 +218,7 @@ else
        if (isset($selected_stock_item))
                $sql .= " AND line.stock_id='". $selected_stock_item ."' ";
 
-       if (isset($_POST['StockLocation']) && $_POST['StockLocation'] != reserved_words::get_all())
+       if (isset($_POST['StockLocation']) && $_POST['StockLocation'] != ALL_TEXT)
                $sql .= " AND sorder.from_stk_loc = '". $_POST['StockLocation'] . "' ";
 
        $sql .= " GROUP BY trans.trans_no ";