r17514 - gnucash/branches/2.2/src/report/report-system - [r17433] Bug #483393: Report system: Allow mixed denominators in numeric collectors.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Sep 14 17:30:03 EDT 2008


Author: andi5
Date: 2008-09-14 17:30:03 -0400 (Sun, 14 Sep 2008)
New Revision: 17514
Trac: http://svn.gnucash.org/trac/changeset/17514

Modified:
   gnucash/branches/2.2/src/report/report-system/report-utilities.scm
Log:
[r17433] Bug #483393: Report system: Allow mixed denominators in numeric collectors.

Committed by cedayiv.

Modified: gnucash/branches/2.2/src/report/report-system/report-utilities.scm
===================================================================
--- gnucash/branches/2.2/src/report/report-system/report-utilities.scm	2008-09-14 21:29:55 UTC (rev 17513)
+++ gnucash/branches/2.2/src/report/report-system/report-utilities.scm	2008-09-14 21:30:03 UTC (rev 17514)
@@ -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))))))
 



More information about the gnucash-changes mailing list