From 993f1768504ee2c8320ce998dea3ed56e4227c27 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 15 Mar 2013 19:50:24 +0100 Subject: [PATCH] Customer Payments: fixed allocatable transactions display on start of new customer payment. --- sales/customer_payments.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sales/customer_payments.php b/sales/customer_payments.php index b2eeb44c..d437c373 100644 --- a/sales/customer_payments.php +++ b/sales/customer_payments.php @@ -76,8 +76,10 @@ if (list_updated('BranchID')) { $Ajax->activate('customer_id'); } -if (!isset($_POST['customer_id'])) - $_POST['customer_id'] = get_global_customer(false); +if (!isset($_POST['customer_id'])) { + $_SESSION['alloc']->person_id = $_POST['customer_id'] = get_global_customer(false); + $_SESSION['alloc']->read(); +} if (!isset($_POST['DateBanked'])) { $_POST['DateBanked'] = new_doc_date(); if (!is_date_in_fiscalyear($_POST['DateBanked'])) { -- 2.30.2