GnuCash 2.2.x and advanced-report-sorted
Stephen J. Gowdy
Stephen.Gowdy at cern.ch
Fri Sep 14 12:20:08 EDT 2007
I was hoping this would fix the splits problem with advanced-portfolio.
I tried it with 2.2.0 and got the following error;
In unknown file:
?: 6 (letrec ((dumper #)) (catch (quote ignore) (lambda () #) (lambda
# #f)))
In /usr/share/gnucash/guile-modules/gnucash/main.scm:
151: 7 [catch ignore #<procedure #f ()> #<procedure #f (key . args)>]
In unknown file:
?: 8* [#<procedure #f ()>]
In /usr/share/gnucash/guile-modules/gnucash/main.scm:
154: 9* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key .
args)>]
In unknown file:
?: 10* [#<procedure #f ()>]
In /usr/share/gnucash/guile-modules/gnucash/main.scm:
155: 11* [apply #<procedure #f ()> ()]
In unknown file:
?: 12 [#<procedure #f ()>]
In /usr/share/gnucash/scm/report.scm:
...
460: 13 (set! html (gnc:report-render-html report #t))
460: 14* [gnc:report-render-html # #t]
426: 15 (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext
report) ...)
434: 16 (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
437: 17* (set! doc (if template (let* # # # ...) #f))
437: 18* (if template (let* # # # ...) #f)
438: 19 (let* (# # # ...) (gnc:html-document-set-style-sheet! doc
stylesheet) ...)
440: 20* [advanced-portfolio-sorted-renderer #]
In
/usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio-sorted.scm:
139: 21 (let (# #) (letrec # # #))
...
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))) ((quote
pricedb-nearest) gnc:exchange-by-pricedb-nearest)).
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 be
> sorted.
> I decided to name it advanced-portfolio-sorted to enable users to give it a
> try
> without removing the original report. Slight drawback of this approach is
> that
> 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 differing
> from
> 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