X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fmanage%2Fbom_edit.php;h=45aaab40b2eb9d3d24867820d30535dd20593491;hb=11e485e4a7c5f12c9424713b7330815a9cc5e4ae;hp=2ffb0b5f2731092200b045a2c2df638f6c9b5f60;hpb=bf00f0e16df5974ecba17b59be8bc660bdf6b8a8;p=fa-stable.git
diff --git a/manufacturing/manage/bom_edit.php b/manufacturing/manage/bom_edit.php
index 2ffb0b5f..45aaab40 100644
--- a/manufacturing/manage/bom_edit.php
+++ b/manufacturing/manage/bom_edit.php
@@ -1,7 +1,16 @@
.
+***********************************************************************/
+$page_security = 'SA_BOM';
+$path_to_root = "../..";
include_once($path_to_root . "/includes/session.inc");
page(_("Bill Of Materials"));
@@ -108,7 +117,7 @@ div_start('bom');
qty_cell($myrow["quantity"], false, get_qty_dec($myrow["component"]));
label_cell($myrow["units"]);
edit_button_cell("Edit".$myrow['id'], _("Edit"));
- edit_button_cell("Delete".$myrow['id'], _("Delete"));
+ delete_button_cell("Delete".$myrow['id'], _("Delete"));
end_row();
} //END WHILE LIST LOOP
@@ -204,15 +213,17 @@ if ($Mode == 'RESET')
//--------------------------------------------------------------------------------------------------
-start_form(false, true);
+start_form();
-echo "
" . _("Select a manufacturable item:") . " ";
-stock_bom_items_list('stock_id', null, false, true);
-echo "
";
+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') != '')
@@ -224,10 +235,8 @@ if (get_post('stock_id') != '')
start_form();
display_bom_items($selected_parent);
-//end_form();
//--------------------------------------------------------------------------------------
echo '
';
-// start_form(false, true);
start_table($table_style2);
@@ -243,6 +252,7 @@ start_form();
$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"]);
@@ -272,7 +282,7 @@ start_form();
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();
}
// ----------------------------------------------------------------------------------