From 6ae59a0b8741ce89f30b64c2d0f376835eb0a778 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 6 Jan 2015 12:02:48 +0100 Subject: [PATCH] Pressing the link -Entry customer payment for this invoice- now shows correct branch in payment form. --- sales/customer_payments.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sales/customer_payments.php b/sales/customer_payments.php index 7b3b117f..1f49461c 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -54,6 +54,7 @@ if (!isset($_POST['bank_account'])) { // first page call if($inv) { $_SESSION['alloc']->person_id = $_POST['customer_id'] = $inv['debtor_no']; $_SESSION['alloc']->read(); + $_POST['BranchID'] = $inv['branch_code']; $_POST['DateBanked'] = sql2date($inv['tran_date']); foreach($_SESSION['alloc']->allocs as $line => $trans) { if ($trans->type == ST_SALESINVOICE && $trans->type_no == $_GET['SInvoice']) { -- 2.30.2