mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[report-utilities] tiny reordering to remove unnecessary reference
instead of split->txn->invoice->lot->invoice grab split->txn->invoice->lot directly
This commit is contained in:
parent
5688204118
commit
5f6413c6c5
@ -1124,10 +1124,9 @@ flawed. see report-utilities.scm. please update reports.")
|
||||
;; reduce the lot balance automatically.
|
||||
((eqv? (xaccTransGetTxnType (xaccSplitGetParent (car splits)))
|
||||
TXN-TYPE-INVOICE)
|
||||
(let* ((lot (gncInvoiceGetPostedLot
|
||||
(gncInvoiceGetInvoiceFromTxn
|
||||
(xaccSplitGetParent (car splits)))))
|
||||
(invoice (gncInvoiceGetInvoiceFromLot lot))
|
||||
(let* ((invoice (gncInvoiceGetInvoiceFromTxn
|
||||
(xaccSplitGetParent (car splits))))
|
||||
(lot (gncInvoiceGetPostedLot invoice))
|
||||
(bal (gnc-lot-get-balance lot))
|
||||
(bal (if receivable? bal (- bal)))
|
||||
(date (if (eq? date-type 'postdate)
|
||||
|
Loading…
Reference in New Issue
Block a user