X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fsales_kits.php;h=2aef8e8b62845c5b4a957fdcad2715355c3a171e;hb=e98dad8c105182b946fd58518710d86214f94c91;hp=2e73d219cdf9b4691f5de8093541b6f9ea1af2d3;hpb=6575a94814ea66506cc2637908c3419995302a3e;p=fa-stable.git diff --git a/inventory/manage/sales_kits.php b/inventory/manage/sales_kits.php index 2e73d219..2aef8e8b 100644 --- a/inventory/manage/sales_kits.php +++ b/inventory/manage/sales_kits.php @@ -1,10 +1,19 @@ . +***********************************************************************/ +$page_security = 'SA_SALESKIT'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("Sales Kits & Alias Codes")); +page(_($help_context = "Sales Kits & Alias Codes")); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -25,11 +34,9 @@ if (isset($_GET['item_code'])) //-------------------------------------------------------------------------------------------------- function display_kit_items($selected_kit) { - global $table_style; - $result = get_item_kit($selected_kit); -div_start('bom'); - start_table("$table_style width=60%"); + div_start('bom'); + start_table(TABLESTYLE, "width=60%"); $th = array(_("Stock Item"), _("Description"), _("Quantity"), _("Units"), '',''); table_header($th); @@ -46,7 +53,7 @@ div_start('bom'); $myrow["units"] == '' ? 0 : get_qty_dec($myrow["comp_name"])); label_cell($myrow["units"] == '' ? _('kit') : $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 @@ -75,7 +82,7 @@ function update_component($kit_code, $selected_item) elseif ($selected_item == -1) // adding new item or new alias/kit { if (get_post('item_code') == '') { // New kit/alias definition - $kit = get_item_kit($_POST['item_code']); + $kit = get_item_kit($_POST['kit_code']); if (db_num_rows($kit)) { $input_error = 1; display_error( _("This item code is already assigned to stock item or sale kit.")); @@ -169,17 +176,16 @@ if ($Mode == 'RESET') unset($_POST['quantity']); unset($_POST['component']); } - //-------------------------------------------------------------------------------------------------- -start_form(false, true); +start_form(); echo "