[GNC] Check for negative amount in scheduled transaction formula
Derek Atkins
derek at ihtfp.com
Mon Jan 21 15:16:52 EST 2019
gnucash.dgr9z at ncf.ca writes:
> Hi,
>
> Is it possible to convert negative numbers to 0 in a formula? something like:
> a-b < 0 ? 0 : a-b
>
> If this needs to be defined as a function someplace, what would it
> look like, where would it go, and how would it be called from the
> template?
Look at fin.scm and copy the functions in there.
> Many thanks,
> Ron
> 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 617-623-3745
derek at ihtfp.com www.ihtfp.com
Computer and Internet Security Consultant
More information about the gnucash-user
mailing list