MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security = 9;
-$path_to_root="../..";
+$page_security = 'SA_BOM';
+$path_to_root = "../..";
include_once($path_to_root . "/includes/session.inc");
page(_("Bill Of Materials"));
start_form();
-echo "<center>" . _("Select a manufacturable item:") . " ";
-stock_bom_items_list('stock_id', null, false, true);
-echo "</center><br>";
+start_form(false, true);
+start_table("class='tablestyle_noborder'");
+stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true);
+if (list_updated('stock_id'))
+ $Ajax->activate('_page_body');
+end_table();
+br();
end_form();
-if (isset($_POST['_stock_id_update']))
- $Ajax->activate('_page_body');
//--------------------------------------------------------------------------------------------------
if (get_post('stock_id') != '')
$myrow = db_fetch($result);
$_POST['loc_code'] = $myrow["loc_code"];
+ $_POST['component'] = $myrow["component"]; // by Tom Moulton
$_POST['workcentre_added'] = $myrow["workcentre_added"];
$_POST['quantity'] = number_format2($myrow["quantity"], get_qty_dec($myrow["component"]));
label_row(_("Component:"), $myrow["component"] . " - " . $myrow["description"]);
qty_row(_("Quantity:"), 'quantity', null, null, null, $dec);
end_table(1);
- submit_add_or_update_center($selected_id == -1, '', true);
+ submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
}
// ----------------------------------------------------------------------------------