function display_order_in_tab($title, $cart) { display_adjustment_items($title, $cart); }
if ($_POST['AddItem'] != "") { handle_new_item(); } if ($_POST['UpdateItem'] != "") { handle_update_item(); } //----------------------------------------------------------------------------------------------- if (isset($_GET['trans_no'])) { handle_new_order(); } //----------------------------------------------------------------------------------------------- display_order_header($_SESSION['issue_items']); start_form(false, true); start_table("{$table_style} width=90%", '10'); echo "<tr><td>"; display_adjustment_items(tr("Items to Issue"), $_SESSION['issue_items']); adjustment_options_controls(); echo "</td></tr>"; end_table(); if (!isset($_POST['Process'])) { start_table(); start_row(); submit_cells('Update', tr("Update")); if ($_SESSION['issue_items']->count_items() >= 1) { submit_cells('Process', tr("Process Issue")); } end_row(); end_table(); } end_form(); //------------------------------------------------------------------------------------------------
line_start_focus(); } //----------------------------------------------------------------------------------------------- $id = find_submit('Delete'); if ($id != -1) { handle_delete_item($id); } if (isset($_POST['AddItem'])) { handle_new_item(); } if (isset($_POST['UpdateItem'])) { handle_update_item(); } if (isset($_POST['CancelItemChanges'])) { line_start_focus(); } //----------------------------------------------------------------------------------------------- if (isset($_GET['NewAdjustment']) || !isset($_SESSION['adj_items'])) { handle_new_order(); } //----------------------------------------------------------------------------------------------- start_form(); display_order_header($_SESSION['adj_items']); start_outer_table(TABLESTYLE, "width=70%", 10); display_adjustment_items(_("Adjustment Items"), $_SESSION['adj_items']); adjustment_options_controls(); end_outer_table(1, false); submit_center_first('Update', _("Update"), '', null); submit_center_last('Process', _("Process Adjustment"), '', 'default'); end_form(); end_page();