Skip to content

Commit

Permalink
bugfix: invoices created on base of pro forma invoices are always hav…
Browse files Browse the repository at this point in the history
…e 0 paytime (as they are already paid) - fixes presentation of customer due balance (LMS+ #2211)
  • Loading branch information
chilek committed Jan 27, 2023
1 parent ab80575 commit 02ae7f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LMSManagers/LMSFinanceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 02ae7f6

Please sign in to comment.