[GNC] Wildcard in standard report definiton
Christopher Lam
christopher.lck at gmail.com
Wed Dec 19 18:01:55 EST 2018
Use Account Substring Matcher as the account selector
(*cough*)
This changes the execution of saved-reports, so, will never be acceptable
for merging in.
modified gnucash/report/standard-reports/transaction.scm
@@ -618,7 +618,7 @@ be excluded from periodic reporting.")
;; Accounts options
;; account to do report on
- (gnc:register-trep-option
+ #;(gnc:register-trep-option
(gnc:make-account-list-option
gnc:pagename-accounts optname-accounts
"a" (_ "Report on these accounts.")
@@ -1847,7 +1847,9 @@ be excluded from periodic reporting.")
(catch 'regular-expression-syntax
(lambda () (make-regexp
account-matcher))
(const 'invalid-regex))))
- (c_account_0 (opt-val gnc:pagename-accounts optname-accounts))
+ (c_account_0 (gnc-account-get-descendants
+ (gnc-book-get-root-account
+ (gnc-get-current-book))))
(c_account_1 (filter
(lambda (acc)
(if (regexp? account-matcher-regexp)
On Wed, 19 Dec 2018 at 23:10, Derek Atkins <warlord at mit.edu> wrote:
> Christopher Lam <christopher.lck at gmail.com> writes:
>
> > With regard to selecting a 'wildcard' type of accounts selection, it's
> > a good entry-level idea for a budding scheme hacker :)
>
> I think it would require significantly more work than that, but I'd love
> to be proven wrong!
>
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
>
> -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
>
More information about the gnucash-user
mailing list