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-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=322ba5ec23d596f6023370c2dedbb722b62652a0;p=textcart.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 b2eeb44..d437c37 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'])) {