To make your life easier, we've put together few reserved keywords in the line items description to make your work with recurring invoices, much easier.
Reserved keywords are:
As you may guess, each time invoice (PDF) is generated, keywords will be replaced with actual value, so:
These keywords also support basic mathematical operations: addition, subtraction, multiplication & ** division**.
So this is the pattern for mathematical operations:
%KEYWORD% %OPERATION% %VALUE%
Let's see it in practice. Imagine you're sending an invoice for a gym membership every three months. Write this in item description & let's see what we get:
Gym membership: :MONTH to :MONTH+3
... and let's save & preview the invoice:
Nice! Now, each time you send this invoice, you don't have to put the exact month, nor the upcoming month.
Month: :MONTH Year: :YEAR Quarter: :QUARTER :MONTH (+, -, *, /) e.g. :MONTH+1 :MONTH-1 :MONTH*2 :MONTH/2 :YEAR (+, -) :YEAR+1 :YEAR-1 :QUARTER (+, -) :QUARTER+1 :QUARTER-1
Previously listed keywords are super cool, but what if we have to generate for example:
Gym membership: February 2021 to February 2023
It's easy as typing following:
Gym membership: [MONTHYEAR|MONTHYEAR+24]
Gym membership: February 2021 to February 2023 🎉
Another way to do it this:
Gym membership: :MONTH :YEAR to :MONTH :YEAR+2
Keep in mind that [MONTHYEAR|MONTHYEAR] syntax will take care of overlapping dates.
[MONTHYEAR|MONTHYEAR +, -], [MONTHYEAR|MONTHYEAR+16], [MONTHYEAR|MONTHYEAR-2]
As you can see [MONTHYEAR|MONTHYEAR] uses "to" between date ranges. This is not hard coded, but it builds itself based on your localization settings.
Want to contribute? Edit this page on GitHub!