Fixed 0000097,0000098 and view of credit notes with empty lines.
[fa-stable.git] / purchasing / supplier_credit.php
index 96b5dcfe220e10557c0a2c72b6c14c0fe9f39a5c..cb737896a1c07ac85d7366e8e640c312ef5ed71e 100644 (file)
@@ -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 "</td></tr>";
 
 end_table(1); // outer table
 
-$id = find_submit('grn_item_id');
 if ($id != -1)
 {
        $Ajax->activate('grn_items');