function handle_new_item() { if (!check_item_data()) { return; } $amount = ($_SESSION['pay_items']->trans_type == ST_BANKPAYMENT ? 1 : -1) * input_num('amount'); $_SESSION['pay_items']->add_gl_item($_POST['code_id'], $_POST['dimension_id'], $_POST['dimension2_id'], $amount, $_POST['LineMemo']); line_start_focus(); }
function handle_new_item() { if (!check_item_data()) { return; } add_to_order($_SESSION['Items'], get_post('stock_id'), input_num('qty'), input_num('price'), input_num('Disc') / 100, get_post('stock_id_text')); unset($_POST['_stock_id_edit'], $_POST['stock_id']); page_modified(); line_start_focus(); }
function handle_new_item() { if (!check_item_data()) { return; } if (!isset($_POST['std_cost'])) { $_POST['std_cost'] = 0; } add_to_order($_SESSION['transfer_items'], $_POST['stock_id'], input_num('qty'), $_POST['std_cost']); line_start_focus(); }
function handle_new_item() { if (!check_item_data()) { return; } add_to_order($_SESSION['adj_items'], $_POST['stock_id'], input_num('qty'), input_num('std_cost')); line_start_focus(); }
function handle_new_item() { if (!check_item_data()) { return; } add_to_order($_SESSION['issue_items'], $_POST['stock_id'], $_POST['qty'], $_POST['std_cost']); }
function handle_new_item() { if (!check_item_data()) { return; } add_to_order($_SESSION['Items'], $_POST['stock_id'], input_num('qty'), input_num('price'), input_num('Disc') / 100); line_start_focus(); }
function handle_new_item() { if (!check_item_data()) { return; } if (input_num('AmountDebit') > 0) { $amount = input_num('AmountDebit'); } else { $amount = -input_num('AmountCredit'); } $_SESSION['journal_items']->add_gl_item($_POST['code_id'], $_POST['dimension_id'], $_POST['dimension2_id'], $amount, $_POST['LineMemo']); line_start_focus(); }
function commit_item_data($n) { if (check_item_data($n)) { $_SESSION['supp_trans']->add_grn_to_trans($n, $_POST['po_detail_item' . $n], $_POST['item_code' . $n], $_POST['item_description' . $n], $_POST['qty_recd' . $n], $_POST['prev_quantity_inv' . $n], input_num('this_quantity_inv' . $n), $_POST['order_price' . $n], input_num('ChgPrice' . $n), $_POST['std_cost_unit' . $n], ""); reset_tax_input(); } }
function handle_new_item() { if (!check_item_data()) { return; } $_SESSION['deposit_items']->add_gl_item($_POST['code_id'], $_POST['dimension_id'], $_POST['dimension2_id'], -input_num('amount'), $_POST['LineMemo']); }
function handle_new_item() { if (!check_item_data()) { return; } add_to_order($_SESSION['Items'], $_POST['stock_id'], input_num('qty'), input_num('price'), input_num('Disc') / 100, $_POST['date_from'], $_POST['notes']); $_POST['StockID2'] = $_POST['stock_id'] = ""; $_POST['notes'] = ""; line_start_focus(); }