mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Reports: Make "Average Cost" the default price source for several additional standard reports.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17341 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -100,7 +100,7 @@ balance at a given time"))
|
||||
|
||||
(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 @@ balance at a given time"))
|
||||
;; 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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -181,7 +181,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
|
||||
|
||||
Reference in New Issue
Block a user