Release 2.1.1. Updated getetext template file.
[fa-stable.git] / manufacturing / inquiry / bom_cost_inquiry.php
index a1f10df0ac9582f56418880f0ae2600201affc84..e484ea9f3a3a9c48edd00740b35688cf79b52b25 100644 (file)
@@ -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 "<center> " . _("Item:") . " ";   
-//stock_bom_items_list('stock_id', $_POST['stock_id'], false, true);
-stock_bom_items_list('stock_id', null, false, true);
-
-echo "<hr>";
-
-if ($_POST['stock_id'] != "")
-{
-       echo "<center>" . _("All Costs Are In:") . " " . get_company_currency() . "<br><br>";
+    start_table("class='tablestyle_noborder'");
+       start_row();
+       echo '<td>';
+       stock_bom_items_list('stock_id', null, false, true);
+       echo '</td>';
+       end_table();
+       
+       echo "<hr>";
+
+       display_heading(_("All Costs Are In:") . " " . get_company_currency());
        display_bom($_POST['stock_id']);
-} 
-else 
-{ //no item entered
-       echo "<p>" ._("Enter an item code above, to view the costed bill of material for.") . "</p>";
-}      
+
 end_form();
 
 end_page();