[Patch] Sorting in custom reports

Derek Atkins warlord at MIT.EDU
Sun Jan 27 13:30:10 EST 2008


Hi,

Please remember to CC the list on all replies using your mailer's
Reply-To-List or Reply-All features..

Quoting "C. Ernst" <c.ernst72 at googlemail.com>:

> Hi Derek,
>
> do you mean, I should define something like an Association List of (Account
> -> List of sorted children) outside of the for-each loop?

Well, you don't need an assoc-list, but you can just use a let to
assign a temporary variable to the list so you only build it once.
E.g.

  (let ((acctlist (...)))
   (for-each (....)
    ))

-derek

> Christoph
>
> 2008/1/27, Derek Atkins <warlord at mit.edu>:
>>
>> Hi,
>>
>> Quoting "C. Ernst" <c.ernst72 at googlemail.com>:
>>
>> > Hello,
>> >
>> > this is a patch for http://bugzilla.gnome.org/show_bug.cgi?id=506798.
>> > The default sorting order is now applied to all balance reports.
>> >
>> > This is my very first patch to gnucash.
>> > Actually, it is just a suffix, but It took me more than two weeks to get
>> > into this scheme stuff...
>> >
>> > Christoph
>>
>> Thanks for the patch.  I responded in the bug report.
>>
>> -derek
>>
>> --
>>        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
>>
>>
>



-- 
       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