mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
937a738e31
commit
1591411ad3
@ -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))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user