Added quick entries in supplier invoice/credit note as well. Based on bank payments
[fa-stable.git] / purchasing / supplier_invoice.php
index 534e55b3534813b3461c0c4817ba2b50352b1b08..af34e04c126150e2d37463a153f7a5755e3bb796 100644 (file)
@@ -375,6 +375,13 @@ if ($_SESSION["wa_current_user"]->access == 2)
        }               
 }
 
+if (isset($_POST['go']))
+{
+       $Ajax->activate('gl_items');
+       display_quick_entries($_SESSION['supp_trans'], $_POST['qid'], input_num('totamount'), true, true);
+       $Ajax->activate('inv_tot');
+}
+
 start_form(false, true);
 
 invoice_header($_SESSION['supp_trans']);