multiple currencies pricedb & reports patch
Herbert Thoma
tma at iis.fhg.de
Fri Apr 18 23:31:38 CDT 2003
Hi,
here is the rest of my multiple currency work.
The balance sheet and other reports which use the functions
from /src/report/report-system/commodity-utilities.scm
and the advanced-portfolio report now can handle
stocks and funds not denominated in report currency.
I think it's good enough to be backported to the stable
branch and included in 1.8.3. I can produce a patch
for the stable branch in the next few days.
Herbert.
* src/engine/Account.c: move currency conversion to gnc-pricedb.c
* src/engine/gnc-pricedb.c
* src/engine/gnc-pricedb.h: add functions
gnc_pricedb_convert_balance_latest_price and
gnc_pricedb_convert_balance_nearest_price
* src/engine/gw-engine-spec.scm: wrap functions
gnc_price_list_destroy, gnc_pricedb_lookup_latest_any_currency,
gnc_pricedb_lookup_nearest_in_time_any_currency,
gnc_pricedb_convert_balance_latest_price and
gnc_pricedb_convert_balance_nearest_price
* src/report/report-system/commodity-utilities.scm: use
gnc:pricedb-convert-balance-latest-price and
gnc:pricedb-convert-balance-nearest-price to improve
multiple currency reports
* src/report/standard-reports/advanced-portfolio.scm:
improve report for stocks and funds not denominated in report currency
--
Herbert Thoma
FhG-IIS A, Studio Department
Am Weichselgarten 3, 91058 Erlangen, Germany
Phone: +49-9131-776-323
Fax: +49-9131-776-399
email: tma at iis.fhg.de
www: http://www.iis.fhg.de/-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnucash-20030418-221100-root.diff.gz
Type: application/octet-stream
Size: 13839 bytes
Desc: not available
Url : /pipermail/attachments/20030418/e52240a7/gnucash-20030418-221100-root.diff.obj
More information about the gnucash-patches
mailing list