Bug #483393: Report system: Allow mixed denominators in numeric collectors.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17433 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Charles Day 2008-07-28 20:08:09 +00:00
parent 937a738e31
commit 1591411ad3

View File

@ -270,9 +270,11 @@
(lambda (action amount) ;;; Dispatch function
(case action
((add) (if (gnc:gnc-numeric? amount)
(set! value (gnc-numeric-add-fixed amount value))
(gnc:warn
"gnc:numeric-collector called with wrong argument: " amount)))
(set! value (gnc-numeric-add amount value
GNC-DENOM-AUTO GNC-DENOM-LCD))
(gnc:warn
"gnc:numeric-collector called with wrong argument: "
amount)))
((total) value)
(else (gnc:warn "bad gnc:numeric-collector action: " action))))))