GnuCash 2.2.x and advanced-report-sorted

Johan van Oostrum jo.vanoost at wanadoo.nl
Fri Sep 14 15:05:46 EDT 2007


Op 14-sep-2007, om 18:20 heeft Stephen J. Gowdy het volgende geschreven:
> I was hoping this would fix the splits problem with advanced- 
> portfolio.
Which splits problem you refer to?  Searching Bugzilla I found some  
four split related bugs (Bugzilla id 346062, 358236, 115267, 344566)  
for the advance portfolio.

> I tried it with 2.2.0 and got the following error;
> ..........>8...........
> ...
>   368: 22  (let (# # # ...) (gnc:html-document-set-title! document  
> #) ...)
>   395: 23* (if (not #) (let* # # # ...) (gnc:html-document-add- 
> object!document #))
>   397: 24  (let* (# # #) (gnc:html-table-set-col-headers! table  
> #) ...)
>   398: 25* (case price-source ((quote pricedb-latest) (lambda #  
> #)) ...)
> /usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio- 
> sorted.scm:398:19:In procedure memoization in expression (case  
> price-source (# #) ...):
> /usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio- 
> sorted.scm:398:19:In file"/usr/share/gnucash/guile-modules/gnucash/ 
> report/advanced-portfolio-sorted.scm",line 397: Duplicate case  
> label quote in expression (case price-source((quote pricedb-latest)  
> (lambda (foreign domestic date)(gnc:exchange-by-pricedb-latest  
> foreign domestic))) ((quotepricedb-nearest) gnc:exchange-by-pricedb- 
> nearest)).
It sure looks like some debugging is needed here. Though, the report  
was a quick update to get my GC 1.8.x report running again in my new  
GC 2.2.0 installation.

Right now I am working on a more up-to-date version, as Derek Atkins  
suggested, adding the sort option to the GC 2.2.0 report. In due time  
I will post the patchfile for this version.

Regards,
Johan

> On Mon, 10 Sep 2007, Johan van Oostrum wrote:
>> In januari I posted a portfolio report for use with GnuCash 1.8.x.
>> Attached you find an updated version for use with GnuCash 2.2.x.
>> An option is added with which you can set the column the report is  
>> to besorted.
>> I decided to name it advanced-portfolio-sorted to enable users to  
>> give it atry
>> without removing the original report. Slight drawback of this  
>> approach isthat
>> one has to edit standard-reports.scm.
>> Note that the calculation of splits, used in the GC 2 Advanced  
>> Report, is not
>> (yet) incorporated in this version. This may result in total gain  
>> differingfrom
>> that reported in the Advanced Report.
>> To install the report (I use Fink and have the files located here:
>> /sw/share/gnucash/guile-modules/gnucash/report/)
>> * 1 * Copy the report code to advance-portfolio-sorted.scm
>> * 2 * Add the marked line in standard-reports.scm:
>> ...
>> (use-modules (gnucash report advanced-portfolio))
>> (use-modules (gnucash report advanced-portfolio-sorted)) ;; this  
>> is the
>> new report
>> (use-modules (gnucash report average-balance))
>> ...
>> Regards, Johan
> --
>   /------------------------------------+-------------------------\
> |Stephen J. Gowdy, SLAC               | CERN     Office: 32-2-A22|
> |http://www.slac.stanford.edu/~gowdy/ | CH-1211 Geneva 23        |
> |                                     | Switzerland              |
> |EMail: gowdy at slac.stanford.edu       | Tel: +41 22 767 5840     |
>   \------------------------------------+-------------------------/
>




More information about the gnucash-user mailing list