> On Nov 2, 2019, at 7:08 AM, Fred Bone wrote:
>
> On 01 November 2019 at 12:34, John Ralls said:
>
> [...]
>> You could try adding this to fin.scm:
>>
>> (load-from-path "gnucash/app-utils")
>> (define (gnc:days-in-prev-month) (/ ( + 1 (- (gnc:get-end-prev-month)
>> (gnc:get-start-prev-mont
On 01 November 2019 at 12:34, John Ralls said:
[...]
> You could try adding this to fin.scm:
>
> (load-from-path "gnucash/app-utils")
> (define (gnc:days-in-prev-month) (/ ( + 1 (- (gnc:get-end-prev-month)
> (gnc:get-start-prev-month 86400))
This will produce a non-integer result if
(a) prev
Glad (and a little surprised) that it worked. The naming problem makes sense in
retrospect. It's standard for scheme but the expression parser has to deal with
normal arithmetic notation so it would see the hyphens as minus signs and each
fragment (days, in, prev, and month) as separate tokens.
Hi John,
I got it to work, but one challenge remains. The load-from-path seems to
crash Gnucash. But copying the app-utils.scm to the fin.scm folder solves
the problem, but it's sloppy.
I'll need to play around with it.
Secondly, I it didn't like the name "days-in-prev-mon" But I shortened it
Thanks John. I'll give is a shot and report back.
Michael
On Fri, Nov 1, 2019 at 2:34 PM John Ralls wrote:
>
>
> > On Nov 1, 2019, at 9:36 AM, Fross, Michael wrote:
> >
> > Hello all,
> >
> > I have a scheduled transaction that I pay monthly which is a fixed amount
> > per day. I'd love to b
> On Nov 1, 2019, at 9:36 AM, Fross, Michael wrote:
>
> Hello all,
>
> I have a scheduled transaction that I pay monthly which is a fixed amount
> per day. I'd love to be able to have is automatically entrer based on the
> number of days per month. I pay on the 1st (or the first business da
Hello all,
I have a scheduled transaction that I pay monthly which is a fixed amount
per day. I'd love to be able to have is automatically entrer based on the
number of days per month. I pay on the 1st (or the first business day
after that) so basically I'd like to use the following formula:
Am