X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fsupplier_invoice.php;h=0dc1a77ad90444f74649e2ceefbec5e118c8dd13;hb=c34e563fae8003a637a485b4eaf634678b90c60f;hp=080e8fc36f3d52fadf8e22becda73dc00b3db55c;hpb=b78392ab57cfb7bd683f69b3cb5bdc16f1655203;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index 080e8fc3..0dc1a77a 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -295,20 +295,10 @@ function commit_item_data($n) { if (check_item_data($n)) { - if (input_num('this_quantity_inv'.$n) >= ($_POST['qty_recd'.$n] - $_POST['prev_quantity_inv'.$n])) - { - $complete = true; - } - else - { - $complete = false; - } - $_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), $complete, - $_POST['std_cost_unit'.$n], ""); + $_POST['order_price'.$n], input_num('ChgPrice'.$n)); reset_tax_input(); } } @@ -352,6 +342,20 @@ if ($id4 != -1) $Ajax->activate('gl_items'); } +$id5 = find_submit('Edit'); +if ($id5 != -1) +{ + $_POST['gl_code'] = $_SESSION['supp_trans']->gl_codes[$id5]->gl_code; + $_POST['dimension_id'] = $_SESSION['supp_trans']->gl_codes[$id5]->gl_dim; + $_POST['dimension2_id'] = $_SESSION['supp_trans']->gl_codes[$id5]->gl_dim2; + $_POST['amount'] = $_SESSION['supp_trans']->gl_codes[$id5]->amount; + $_POST['memo_'] = $_SESSION['supp_trans']->gl_codes[$id5]->memo_; + + $_SESSION['supp_trans']->remove_gl_codes_from_trans($id5); + reset_tax_input(); + $Ajax->activate('gl_items'); +} + $id2 = -1; if ($_SESSION["wa_current_user"]->can_access('SA_GRNDELETE')) {