Exact dates for period of performance on recurring invoices

Hi!

We need to specify the period of performance on our invoices and I’ve found that there exist keywords like :MONTH or :YEARMONTH or :YEARMONTH-1 and so on.
This works nicely but now I have been told that we have to specify the exact dates on our invoices.

So for a monthly recurring invoice it should be e.g. “01.01.2023 - 31.01.2023”
And when the next invoice is created next month it should read “01.02.2023 - 28.02.2023”
And so on …

Is something like that possible within Invoice Ninja?
(Or do we have to define our own cronjob which updates the recurring invoices once a month?)

Hi

This isn’t supported as a variable but one option may be to add custom invoice fields and set the values.

And then have it updated monthly through a job that updates this field in the recurring_invoices table?
Or is there a simpler way? :thinking:

Maybe we’ll just implement it that way.
Thanks for your help!

Correct, @david do you have any thoughts?

This is a pretty specific scenario if you wish it to be 1st day of month → last day of month.

One obscure way of achieving this could be to do the following:

image

For your start date, ensure the start date is on the 1st, and have it due on the last day of the month.

You could then use

$date - $due_date

As your variables.

The only catch with this scenario is if your billing cycle does not match your service cycle.

1 Like

$date - $due_date is an interesting idea. That could work for us. I’ll keep that in mind, thank you! :slight_smile:

Hi there!

On a reccuring invoice with 3 months frequency, and in our Item / Description field we have writen (:MONTH :YEAR - :MONTH+2 :YEAR) and that works great!
The result with that is: (Oktober 2024 - Dezember 2024) as of the day of reccuring invoice is 01.10.2024.

But as the user above said, we also need to use the day like that : (01. :MONTH :YEAR - 31. :MONTH+2 :YEAR). The problem here is that we don’t know if the month is ending on 28, 30 or 31.
As above the result we want to be as: (01. Oktober 2024 - 31. Dezember 2024) as of the day of reccuring invoice is 01.10.2024.

As a standard payment due on each of our invoices, we give 14 days.

Can anyone help me with this scenario?