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(); } }
if ($id4 != -1) { $_SESSION['supp_trans']->remove_gl_codes_from_trans($id4); clear_fields(); reset_tax_input(); $Ajax->activate('gl_items'); } if (isset($_POST['RefreshInquiry'])) { $Ajax->activate('grn_items'); reset_tax_input(); } if (isset($_POST['go'])) { $Ajax->activate('gl_items'); display_quick_entries($_SESSION['supp_trans'], $_POST['qid'], input_num('totamount'), QE_SUPPINV); $_POST['totamount'] = price_format(0); $Ajax->activate('totamount'); reset_tax_input(); } //-------------------------------------------------------------------------------------------------- start_form(); invoice_header($_SESSION['supp_trans']); if ($_POST['supplier_id'] == '') { display_error('No supplier found for entered search text'); } else { $total_grn_value = display_grn_items($_SESSION['supp_trans'], 1); $total_gl_value = display_gl_items($_SESSION['supp_trans'], 1); div_start('inv_tot'); invoice_totals($_SESSION['supp_trans']); div_end(); } if ($id != -1) { $Ajax->activate('grn_items');