Bug 797584 - New-owner - bill amount field links to wrong account

Amounts formerly linked to the 'transfer' split which is not reliably
determined. Link to the APAR split instead.

Note whereby a payment spans multiple invoices, it'll link to the
first APAR payment split.
This commit is contained in:
Christopher Lam 2020-01-19 03:31:53 +08:00
parent 220eb95291
commit b9601e012c

View File

@ -745,7 +745,7 @@
(and (< orig-value 0) orig-value)
(and (>= orig-value 0) orig-value)
(invoice->sale invoice) (invoice->tax invoice)
(txn->transfer-split txn)
split
link-option
(cond
((and (txn-is-invoice? txn) (eq? link-option 'simple))