From 02ae7f6d3d930c83e9e745a7e3bb3218d6a3da92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Fri, 27 Jan 2023 12:17:36 +0100 Subject: [PATCH] bugfix: invoices created on base of pro forma invoices are always have 0 paytime (as they are already paid) - fixes presentation of customer due balance (LMS+ #2211) --- lib/LMSManagers/LMSFinanceManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LMSManagers/LMSFinanceManager.php b/lib/LMSManagers/LMSFinanceManager.php index a860f32a48..5cdae7622c 100644 --- a/lib/LMSManagers/LMSFinanceManager.php +++ b/lib/LMSManagers/LMSFinanceManager.php @@ -5063,7 +5063,7 @@ public function transformProformaInvoice($docid) $args = array( 'cdate' => $currtime, 'sdate' => $currtime, - 'paytime' => $proforma['paytime'], + 'paytime' => 0, 'paytype' => $proforma['paytype'], 'flags' => (empty($proforma['splitpayment']) ? 0 : DOC_FLAG_SPLIT_PAYMENT) + (empty($proforma['netflag']) ? 0 : DOC_FLAG_NET_ACCOUNT),