mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bug 798590 - Transaction report: wrong type argument in position 1
handle single-col subtotals
This commit is contained in:
parent
bfa0fd1819
commit
e822c12f8b
@ -1893,7 +1893,7 @@ be excluded from periodic reporting.")
|
||||
(else (gnc:error "unknown sortvalue"))))
|
||||
(define list-of-rows (sort (delete 'row-total (grid-rows grid)) <?))
|
||||
(define list-of-cols (sort (delete 'col-total (grid-cols grid)) <?))
|
||||
(define row-average-enabled? (pair? (cdr list-of-cols)))
|
||||
(define row-average-enabled? (and (pair? list-of-cols) (pair? (cdr list-of-cols))))
|
||||
(define (monetary-div monetary divisor)
|
||||
(and monetary
|
||||
(let* ((amount (gnc:gnc-monetary-amount monetary))
|
||||
|
Loading…
Reference in New Issue
Block a user