Bug 797572 - part 1 - don't accumulate Dr/Cr totals unless printed

This commit is contained in:
Christopher Lam
2020-01-15 12:43:22 +08:00
parent c4ab772d4b
commit 1dac9e1fc2

View File

@@ -717,9 +717,7 @@
;; txn-date < start-date. skip display, accumulate amounts
((< date start-date)
(lp printed? odd-row? (cdr splits) (+ total value)
(if (negative? value) (+ debit value) debit)
(if (negative? value) credit (+ credit value))
tax sale))
debit credit tax sale))
;; if balance row hasn't been rendered, consider
;; adding here. skip if value=0.