From: Joe Date: Tue, 6 Jan 2015 11:02:48 +0000 (+0100) Subject: Pressing the link -Entry customer payment for this invoice- now shows correct branch... X-Git-Tag: v2.4.2~19^2~279 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6ae59a0b8741ce89f30b64c2d0f376835eb0a778;p=fa-stable.git Pressing the link -Entry customer payment for this invoice- now shows correct branch in payment form. --- 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']) {