From 220540b2103fda7f7a4bf073be6bfcc252400592 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 26 Jun 2022 17:29:04 +0200 Subject: [PATCH] Feature 5623: link to new supplier invoice after supplier payment, option to have last supplier invoice be current supplier. Fixed by link. --- purchasing/supplier_payment.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index ab98b662..c597c7e7 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -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"); -- 2.30.2