AUDIT: r17433 - gnucash/trunk/src/report/report-system - Bug #483393: Report system: Allow mixed denominators in numeric collectors.

Charles Day cedayiv at cvs.gnucash.org
Mon Jul 28 16:08:10 EDT 2008


Author: cedayiv
Date: 2008-07-28 16:08:09 -0400 (Mon, 28 Jul 2008)
New Revision: 17433
Trac: http://svn.gnucash.org/trac/changeset/17433

Modified:
   gnucash/trunk/src/report/report-system/report-utilities.scm
Log:
Bug #483393: Report system: Allow mixed denominators in numeric collectors.
BP


Modified: gnucash/trunk/src/report/report-system/report-utilities.scm
===================================================================
--- gnucash/trunk/src/report/report-system/report-utilities.scm	2008-07-28 00:15:41 UTC (rev 17432)
+++ gnucash/trunk/src/report/report-system/report-utilities.scm	2008-07-28 20:08:09 UTC (rev 17433)
@@ -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