if (isset($_POST['UpdateItem'])) { handle_update_item(); } if (isset($_POST['CancelItemChanges'])) { line_start_focus(); } //----------------------------------------------------------------------------------------------- if (isset($_GET['NewTransfer']) || !isset($_SESSION['transfer_items'])) { handle_new_order(); } //----------------------------------------------------------------------------------------------- $textcart_mgr = new ItemsTransTextCartManager(); $textcart_mgr->handle_post_request(); function display_order_in_tab($title, $cart) { display_transfer_items($title, $cart); } start_form(); display_order_header($_SESSION['transfer_items']); start_table(TABLESTYLE, "width=70%", 10); start_row(); echo "<td>"; $textcart_mgr->tab_display(_("Items"), $_SESSION['transfer_items'], "display_order_in_tab"); transfer_options_controls(); echo "</td>"; end_row(); end_table(1); submit_center_first('Update', _("Update"), '', null); submit_center_last('Process', _("Process Transfer"), '', 'default'); end_form(); end_page();
$orderitems = _("Sales Quotation Items"); $deliverydetails = _("Enter Delivery Details and Confirm Quotation"); $cancelorder = _("Cancel Quotation"); $porder = _("Place Quotation"); $corder = _("Commit Quotations Changes"); } else { $idate = _("Order Date:"); $orderitems = _("Sales Order Items"); $deliverydetails = _("Enter Delivery Details and Confirm Order"); $cancelorder = _("Cancel Order"); $porder = _("Place Order"); $corder = _("Commit Order Changes"); } start_form(); hidden('cart_id'); $customer_error = display_order_header($_SESSION['Items'], $_SESSION['Items']->any_already_delivered() == 0, $idate); if ($customer_error == "") { start_table(TABLESTYLE, "width='80%'", 10); echo "<tr><td>"; display_order_summary($orderitems, $_SESSION['Items'], true); echo "</td></tr>"; echo "<tr><td>"; display_delivery_details($_SESSION['Items']); echo "</td></tr>"; end_table(1); if ($_SESSION['Items']->trans_no == 0) { submit_center_first('ProcessOrder', $porder, _('Check entered data and save document'), 'default'); submit_center_last('CancelOrder', $cancelorder, _('Cancels document entry or removes sales order when editing an old document')); submit_js_confirm('CancelOrder', _('You are about to void this Document.\\nDo you want to continue?')); } else { submit_center_first('ProcessOrder', $corder, _('Validate changes and update document'), 'default');
//----------------------------------------------------------------------------------------------- if ($_GET['Delete'] != "") { handle_delete_item(); } 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();
} 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(); } //----------------------------------------------------------------------------------------------- $textcart_mgr = new ItemsAdjTextCartManager(); $textcart_mgr->handle_post_request(); function display_order_in_tab($title, $cart) { display_adjustment_items($title, $cart); } start_form(); display_order_header($_SESSION['adj_items']); start_outer_table(TABLESTYLE, "width=70%", 10); $textcart_mgr->tab_display(_("Adjustment Items"), $_SESSION['adj_items'], "display_order_in_tab"); 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();
} if (isset($_POST['AddItem'])) { handle_new_item(); } if (isset($_POST['UpdateItem'])) { handle_update_item(); } if (isset($_POST['CancelItemChanges'])) { line_start_focus(); } if (isset($_POST['go'])) { display_quick_entries($_SESSION['journal_items'], $_POST['person_id'], input_num('totamount'), QE_JOURNAL); $_POST['totamount'] = price_format(0); $Ajax->activate('totamount'); line_start_focus(); } //----------------------------------------------------------------------------------------------- start_form(); display_order_header($_SESSION['journal_items']); start_table(TABLESTYLE2, "width='90%'", 10); start_row(); echo "<td>"; display_gl_items(_("Rows"), $_SESSION['journal_items']); gl_options_controls(); echo "</td>"; end_row(); end_table(1); submit_center('Process', _("Process Journal Entry"), true, _('Process journal entry only if debits equal to credits'), 'default'); end_form(); //------------------------------------------------------------------------------------------------ end_page();
if (isset($_POST['AddItem']) || isset($_POST['UpdateItem'])) { copy_to_py(); } if (isset($_POST['AddItem'])) { handle_new_item(); } if (isset($_POST['UpdateItem'])) { handle_update_item(); } //----------------------------------------------------------------------------------------------- if (isset($_GET['NewDeposit']) || !isset($_SESSION['deposit_items'])) { handle_new_order(); } //----------------------------------------------------------------------------------------------- start_form(false, true); display_order_header($_SESSION['deposit_items']); start_table("{$table_style} width=90%", 10); start_row(); echo "<td>"; display_gl_items(tr("Deposit Items"), $_SESSION['deposit_items']); gl_options_controls(); echo "</td>"; end_row(); end_table(1); if (!isset($_POST['Process'])) { submit_center_first('Update', tr("Update")); if ($_SESSION['deposit_items']->count_gl_items() >= 1) { submit_center_last('Process', tr("Process Deposit")); } } end_form();