Scheduled Transaction formula support string literal parameters.

Yawar Amin yawar.amin at gmail.com
Fri Feb 27 13:37:56 EST 2015


Hello, it may be helpful for you to look at http://wiki.gnucash.org/wiki/User:Yawaramin

I tried to use that page to list all GnuCash Scheme API that I knew about. Feel free to edit it if you want.

Hope this helps.

Yawar

On 2015-02-26, at 22:09, YaoCL <chunlinyao at gmail.com> wrote:

> Hi
> 
> I am creating a SX which calculate amount by a related account’s balance. I created a function like this
> ====
> (define (gnc:balance accName)
>    (let ((acc    (gnc-account-lookup-by-full-name (gnc-get-current-root-account) accName)))
>        (gnc-numeric-to-double (xaccAccountGetBalance acc))))
> ====
> 
> This function require a string parameter.  The gnc expression already support Quote symbols to refer to string literial since this commit.
> <https://github.com/Gnucash/gnucash/commit/135289725c9cf439bf2e3bac017a5b1ba9589711>
> 
> But I can not input double quote symbols into the formula editor. I am not a developer of gnucash, Maybe my idea is naive. It looks like add get current balance feature is as simple as let me input the Quote symbols into formula.
> 
> 
> References:
> Some mail thread related to this topic 
> <https://lists.gnucash.org/pipermail/gnucash-user/2008-December/027730.html>
> <http://lists.gnucash.org/pipermail/gnucash-user/2014-January/051964.html>
> 
> 
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list