Feature 5623: link to new supplier invoice after supplier payment, option to have...
authorJoe <joe.hunt.consulting@gmail.com>
Sun, 26 Jun 2022 15:29:04 +0000 (17:29 +0200)
committerJoe <joe.hunt.consulting@gmail.com>
Sun, 26 Jun 2022 15:29:04 +0000 (17:29 +0200)
purchasing/supplier_payment.php

index ab98b662a5f9c5951378033d102eac1cce9ee4b0..c597c7e700a64f79240ea3a480ee04e5ec0a5053 100644 (file)
@@ -96,6 +96,11 @@ if (isset($_GET['AddedID'])) {
     display_note(get_gl_view_str(ST_SUPPAYMENT, $payment_id, _("View the GL &Journal Entries for this Payment")), 0, 1);
 
        submenu_option(_("Enter another supplier &payment"), "/purchasing/supplier_payment.php?supplier_id=".$_POST['supplier_id']);
+
+       if (isset($_POST['supplier_id']))
+               set_global_supplier($_POST['supplier_id']);
+       submenu_option(_("Enter &another direct &Invoice"), "/purchasing/po_entry_items.php?NewInvoice=Yes");
+
        submenu_option(_("Enter Other &Payment"), "/gl/gl_bank.php?NewPayment=Yes");
        submenu_option(_("Enter &Customer Payment"), "/sales/customer_payments.php");
        submenu_option(_("Enter Other &Deposit"), "/gl/gl_bank.php?NewDeposit=Yes");