Modifying Purchase Invoice: removed obsolete grn removal button.
[fa-stable.git] / purchasing / supplier_invoice.php
index 0dc1a77ad90444f74649e2ceefbec5e118c8dd13..e75ec45c76ffee42926d70a64a84feea4f6e36e0 100644 (file)
@@ -356,18 +356,6 @@ if ($id5 != -1)
        $Ajax->activate('gl_items');
 }
 
-$id2 = -1;
-if ($_SESSION["wa_current_user"]->can_access('SA_GRNDELETE'))
-{
-       $id2 = find_submit('void_item_id');
-       if ($id2 != -1) 
-       {
-               remove_not_invoice_item($id2);
-               display_notification(sprintf(_('All yet non-invoiced items on delivery line # %d has been removed.'), $id2));
-
-       }
-}
-
 if (isset($_POST['go']))
 {
        $Ajax->activate('gl_items');
@@ -395,7 +383,7 @@ else {
 
 //-----------------------------------------------------------------------------------------
 
-if ($id != -1 || $id2 != -1)
+if ($id != -1)
 {
        $Ajax->activate('grn_items');
        $Ajax->activate('inv_tot');