X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fsales_deliveries_view.php;h=5a29b43401ad61c6d46cb32ac79cff88e464fa5d;hb=c8eeb951abdae4922e8472449b6956974d92049a;hp=2069703bdccad07e76d9f11bd4dda3f58966f26d;hpb=963bc21ea092322d5750d4c0914b5e532e7d2467;p=fa-stable.git diff --git a/sales/inquiry/sales_deliveries_view.php b/sales/inquiry/sales_deliveries_view.php index 2069703b..5a29b434 100644 --- a/sales/inquiry/sales_deliveries_view.php +++ b/sales/inquiry/sales_deliveries_view.php @@ -98,13 +98,18 @@ if (get_post('_DeliveryNumber_changed')) start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=".$_POST['OutstandingOnly']); -start_table("class='tablestyle_noborder'"); +start_table(TABLESTYLE_NOBORDER); start_row(); ref_cells(_("#:"), 'DeliveryNumber', '',null, '', true); date_cells(_("from:"), 'DeliveryAfterDate', '', null, -30); date_cells(_("to:"), 'DeliveryToDate', '', null, 1); locations_list_cells(_("Location:"), 'StockLocation', null, true); +end_row(); + +end_table(); +start_table(TABLESTYLE_NOBORDER); +start_row(); stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true); @@ -114,7 +119,7 @@ hidden('OutstandingOnly', $_POST['OutstandingOnly']); end_row(); -end_table(); +end_table(1); //--------------------------------------------------------------------------------------------- if (isset($_POST['SelectStockFromList']) && ($_POST['SelectStockFromList'] != "") && @@ -124,7 +129,7 @@ if (isset($_POST['SelectStockFromList']) && ($_POST['SelectStockFromList'] != "" } else { - unset($selected_stock_item); + $selected_stock_item = null; } //--------------------------------------------------------------------------------------------- @@ -168,7 +173,7 @@ function check_overdue($row) $row["Outstanding"]!=0; } //------------------------------------------------------------------------------------------------ -$sql = get_sql_for_sales_deliveries_view($selected_customer, $selected_stock_id); +$sql = get_sql_for_sales_deliveries_view($selected_customer, $selected_stock_item); $cols = array( _("Delivery #") => array('fun'=>'trans_view'),