Fwd: GnuCash 2.2.x and advanced-report-sorted

Johan van Oostrum jo.vanoost at wanadoo.nl
Tue Sep 11 17:34:50 EDT 2007


Begin doorgestuurd bericht:
> Van: Johan van Oostrum <jo.vanoost at wanadoo.nl>
> Datum: 11 september 2007 22:42:35 GMT+02:00
> Aan: Derek Atkins <warlord at MIT.EDU>
> Onderwerp: Antw.: GnuCash 2.2.x and advanced-report-sorted
>
> Op 11-sep-2007, om 15:37 heeft Derek Atkins het volgende geschreven:
>
>> Hi,
>> What is the difference between this report and the existing
>> "advanced portfolio" report?
> Functional change: sortcolumn option added
> Code is (more or less) restructured to allow for easy use of sort
>
>> Would it be worthwhile to combine
>> them into a single report where the "sorting" part is just
>> a report option?  Or are the reports so significantly
>> different that merging them would be nearly impossible?
> Excellent suggestion. I created a (my first :-) svn diff today.
>
>> If you can combine them into a single report with an option
>> to add sorting, sending in a patch (svn diff) would be a good
>> way to get it applied to SVN for the next release....
> Attached you find the diff.
> Notes
> - name changed to advanced-portfolio-sorted
> - it is an update of the GnuCash 1.8.x advanced report, not the new  
> report that is packed with GC 2.2.x.
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: advanced-portfolio-sorted-svndiff.txt
Url: http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20070911/db1f071f/attachment.txt 
-------------- next part --------------
>
> Regards,
> Johan
>
>> -derek
>> Johan van Oostrum <jo.vanoost at wanadoo.nl> writes:
>>> 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
>>> Please remember to CC this list on all your replies.
>>> You can do this by using Reply-To-List or Reply-All.
>> -- 
>>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>>        Member, MIT Student Information Processing Board  (SIPB)
>>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>>        warlord at MIT.EDU                        PGP key available
>



More information about the gnucash-devel mailing list