From 7f15df3c83acd0c07cd7cef5175edb83356f91cb Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 13 Mar 2009 18:28:49 +0000 Subject: [PATCH] Page update after selection change, fixed messages. --- manufacturing/inquiry/bom_cost_inquiry.php | 27 +++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/manufacturing/inquiry/bom_cost_inquiry.php b/manufacturing/inquiry/bom_cost_inquiry.php index a1f10df..e484ea9 100644 --- a/manufacturing/inquiry/bom_cost_inquiry.php +++ b/manufacturing/inquiry/bom_cost_inquiry.php @@ -27,23 +27,22 @@ if (isset($_GET['stock_id'])) { $_POST['stock_id'] = $_GET['stock_id']; } +if (list_updated('stock_id')) + $Ajax->activate('_page_body'); start_form(false, true); -echo "
" . _("Item:") . " "; -//stock_bom_items_list('stock_id', $_POST['stock_id'], false, true); -stock_bom_items_list('stock_id', null, false, true); - -echo "
"; - -if ($_POST['stock_id'] != "") -{ - echo "
" . _("All Costs Are In:") . " " . get_company_currency() . "

"; + start_table("class='tablestyle_noborder'"); + start_row(); + echo ''; + stock_bom_items_list('stock_id', null, false, true); + echo ''; + end_table(); + + echo "
"; + + display_heading(_("All Costs Are In:") . " " . get_company_currency()); display_bom($_POST['stock_id']); -} -else -{ //no item entered - echo "

" ._("Enter an item code above, to view the costed bill of material for.") . "

"; -} + end_form(); end_page(); -- 2.30.2