X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fsupplier_credit.php;h=cb737896a1c07ac85d7366e8e640c312ef5ed71e;hb=4e657ee817bcaecc22780c26a29b87790f0cab04;hp=96b5dcfe220e10557c0a2c72b6c14c0fe9f39a5c;hpb=e8f380e7b04eee2576bcbb4eb2f3f8e53d1c1d71;p=fa-stable.git diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index 96b5dcfe..cb737896 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -269,18 +269,18 @@ if (isset($_POST['InvGRNAll'])) //-------------------------------------------------------------------------------------------------- -$id = find_submit('Delete'); -if ($id != -1) +$id3 = find_submit('Delete'); +if ($id3 != -1) { - $_SESSION['supp_trans']->remove_grn_from_trans($id); + $_SESSION['supp_trans']->remove_grn_from_trans($id3); $Ajax->activate('grn_items'); $Ajax->activate('inv_tot'); } -$id = find_submit('Delete2'); -if ($id != -1) +$id4 = find_submit('Delete2'); +if ($id4 != -1) { - $_SESSION['supp_trans']->remove_gl_codes_from_trans($id); + $_SESSION['supp_trans']->remove_gl_codes_from_trans($id4); clear_fields(); $Ajax->activate('gl_items'); $Ajax->activate('inv_tot'); @@ -315,7 +315,6 @@ echo ""; end_table(1); // outer table -$id = find_submit('grn_item_id'); if ($id != -1) { $Ajax->activate('grn_items');