From: Janusz Dobrowolski Date: Fri, 15 Mar 2013 18:50:24 +0000 (+0100) Subject: Customer Payments: fixed allocatable transactions display on start of new customer... X-Git-Tag: 2.3-final~298 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=993f1768504ee2c8320ce998dea3ed56e4227c27;p=fa-stable.git Customer Payments: fixed allocatable transactions display on start of new customer payment. --- 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'])) {