[Patch] Sorting in custom reports
Derek Atkins
warlord at MIT.EDU
Sun Jan 27 15:43:54 EST 2008
hi,
after reading the full function code i rescind my original complaint.
-derek
Quoting "C. Ernst" <c.ernst72 at googlemail.com>:
> Hi Derek,
>
> if the question ist too embarassing I sometimes rather ask directly, without
> CCing, :-}, but anyway...
>
> I don't see how this will work without an assoc-list or hash-table. We need
> to store the children for each Account and want to search the children for a
> specific account, so we have a list of lists.
> I'm not familar with scheme. Do you know an example somewhere else in the
> code (or could you please fill some of the brackets in your code snippet)?
>
> Christoph
>
> 2008/1/27, Derek Atkins <warlord at mit.edu>:
>>
>> 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
>>
>>
>
--
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