r17391 - gnucash/branches/2.2/src/report/standard-reports - [r17341] Reports: Make "Average Cost" the default price source for several additional standard reports.

Andreas Köhler andi5 at cvs.gnucash.org
Tue Jul 22 18:34:47 EDT 2008


Author: andi5
Date: 2008-07-22 18:34:47 -0400 (Tue, 22 Jul 2008)
New Revision: 17391
Trac: http://svn.gnucash.org/trac/changeset/17391

Modified:
   gnucash/branches/2.2/src/report/standard-reports/account-piecharts.scm
   gnucash/branches/2.2/src/report/standard-reports/account-summary.scm
   gnucash/branches/2.2/src/report/standard-reports/balance-sheet.scm
   gnucash/branches/2.2/src/report/standard-reports/budget.scm
   gnucash/branches/2.2/src/report/standard-reports/equity-statement.scm
   gnucash/branches/2.2/src/report/standard-reports/income-statement.scm
Log:
[r17341] Reports: Make "Average Cost" the default price source for several additional standard reports.

Committed by cedayiv.


Modified: gnucash/branches/2.2/src/report/standard-reports/account-piecharts.scm
===================================================================
--- gnucash/branches/2.2/src/report/standard-reports/account-piecharts.scm	2008-07-22 22:34:37 UTC (rev 17390)
+++ gnucash/branches/2.2/src/report/standard-reports/account-piecharts.scm	2008-07-22 22:34:47 UTC (rev 17391)
@@ -100,7 +100,7 @@
     
     (gnc:options-add-price-source! 
      options gnc:pagename-general
-     optname-price-source "c" 'weighted-average)
+     optname-price-source "c" 'average-cost)
 
     (add-option
      (gnc:make-account-list-option
@@ -238,8 +238,8 @@
         ;; Future improvement: Let the user choose which kind of
         ;; currency combining she want to be done. Right now
         ;; everything foreign gets converted
-        ;; (gnc:sum-collector-commodity) based on the weighted
-        ;; average of all past transactions.
+        ;; (gnc:sum-collector-commodity) based on the average
+        ;; cost of all holdings.
         (gnc-numeric-to-double
          (gnc:gnc-monetary-amount
           (gnc:sum-collector-commodity 

Modified: gnucash/branches/2.2/src/report/standard-reports/account-summary.scm
===================================================================
--- gnucash/branches/2.2/src/report/standard-reports/account-summary.scm	2008-07-22 22:34:37 UTC (rev 17390)
+++ gnucash/branches/2.2/src/report/standard-reports/account-summary.scm	2008-07-22 22:34:47 UTC (rev 17391)
@@ -188,7 +188,7 @@
     
     (gnc:options-add-price-source! 
      options pagename-commodities
-     optname-price-source "b" 'weighted-average)
+     optname-price-source "b" 'average-cost)
     
     (add-option 
      (gnc:make-simple-boolean-option

Modified: gnucash/branches/2.2/src/report/standard-reports/balance-sheet.scm
===================================================================
--- gnucash/branches/2.2/src/report/standard-reports/balance-sheet.scm	2008-07-22 22:34:37 UTC (rev 17390)
+++ gnucash/branches/2.2/src/report/standard-reports/balance-sheet.scm	2008-07-22 22:34:47 UTC (rev 17391)
@@ -207,7 +207,7 @@
     
     (gnc:options-add-price-source! 
      options pagename-commodities
-     optname-price-source "b" 'weighted-average)
+     optname-price-source "b" 'average-cost)
     
     (add-option 
      (gnc:make-simple-boolean-option

Modified: gnucash/branches/2.2/src/report/standard-reports/budget.scm
===================================================================
--- gnucash/branches/2.2/src/report/standard-reports/budget.scm	2008-07-22 22:34:37 UTC (rev 17390)
+++ gnucash/branches/2.2/src/report/standard-reports/budget.scm	2008-07-22 22:34:47 UTC (rev 17391)
@@ -68,7 +68,7 @@
     ;; optname-from-date optname-to-date "a")
 
     (gnc:options-add-price-source!
-     options gnc:pagename-general optname-price-source "c" 'weighted-average)
+     options gnc:pagename-general optname-price-source "c" 'average-cost)
 
     ;;(gnc:register-option
     ;; options

Modified: gnucash/branches/2.2/src/report/standard-reports/equity-statement.scm
===================================================================
--- gnucash/branches/2.2/src/report/standard-reports/equity-statement.scm	2008-07-22 22:34:37 UTC (rev 17390)
+++ gnucash/branches/2.2/src/report/standard-reports/equity-statement.scm	2008-07-22 22:34:47 UTC (rev 17391)
@@ -144,7 +144,7 @@
     
     (gnc:options-add-price-source! 
      options pagename-commodities
-     optname-price-source "b" 'weighted-average)
+     optname-price-source "b" 'average-cost)
     
     (add-option 
      (gnc:make-simple-boolean-option

Modified: gnucash/branches/2.2/src/report/standard-reports/income-statement.scm
===================================================================
--- gnucash/branches/2.2/src/report/standard-reports/income-statement.scm	2008-07-22 22:34:37 UTC (rev 17390)
+++ gnucash/branches/2.2/src/report/standard-reports/income-statement.scm	2008-07-22 22:34:47 UTC (rev 17391)
@@ -183,7 +183,7 @@
     
     (gnc:options-add-price-source! 
      options pagename-commodities
-     optname-price-source "b" 'weighted-average)
+     optname-price-source "b" 'average-cost)
     
     (add-option 
      (gnc:make-simple-boolean-option



More information about the gnucash-changes mailing list