X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=purchasing%2Fsupplier_payment.php;h=32f4020b5f3765f6839343e2d68b3d781a50223b;hb=0a6988eadb9d779a9c49c79772c1c2a3e19b6b05;hp=d516070a351f8d528c4831bcaecee677056cf932;hpb=5189bc26f377d678d0a3d88a2b623d69c0e1a278;p=fa-stable.git diff --git a/purchasing/supplier_payment.php b/purchasing/supplier_payment.php index d516070a..32f4020b 100644 --- a/purchasing/supplier_payment.php +++ b/purchasing/supplier_payment.php @@ -63,8 +63,9 @@ if (!isset($_POST['bank_account'])) { // first page call $_SESSION['alloc'] = new allocation(ST_SUPPAYMENT, 0, get_post('supplier_id')); if (isset($_GET['PInvoice'])) { + $supp = isset($_POST['supplier_id']) ? $_POST['supplier_id'] : null; // get date and supplier - $inv = get_supp_trans($_GET['PInvoice'], $_GET['trans_type']); + $inv = get_supp_trans($_GET['PInvoice'], $_GET['trans_type'], $supp); if ($inv) { $_SESSION['alloc']->person_id = $_POST['supplier_id'] = $inv['supplier_id']; $_SESSION['alloc']->read(); @@ -95,6 +96,10 @@ 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']); + + submenu_option(_("Enter &Supplier Invoice"), "/purchasing/supplier_invoice.php?New=1"); + submenu_option(_("Enter 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");