pattern on invoice description

Hi,

is it possible to use a pattern inside the inovice description field?

I have recurring invoices with the same article every month. The only thing which changes, is the description according to the current month.

example:

Item Description
Hosting Hosting fee 07/2017

my wish:

Item Description
Hosting Hosting fee {Month}/{Year}

best regards
Chris

We support :MONTH and :YEAR as recurring invoice variables.

Ah, nice.

It works, but there’s a “little bug” :wink:
While using the german translation, the month will not be translated correctly.

July instead of “Juli”

Chris

This will be fixed in our next release.

https://github.com/invoiceninja/invoiceninja/issues/1565

We support :MONTH and :YEAR as recurring invoice variables.

That is a great option. I wonder if there’s any way to have more dynamic variables as well as if there’s any way to make it available for Invoices too.

You can add + or - a number at the end to change the value, ie: :MONTH-1

The variables should work for all invoices.

Hi Hillel,

just tested with 4.1.3 on a selfhosted installation. I wasn’t able to get german translated value for “:MONTH”.
I always returns original english value.

Checked browser language, system language of Invoice Ninja, as well as client language (client in Invoice Ninja) all are set to german.

Best regards
Ahmet

I’m not sure, it seems to be working in my test

Hillel, just interested: Are strings for “:MONTH” coming from backend of PHP (so relies on server settings) or browser client settings?

This would mean that server settings must be explicitly set to german, in regional settings or so.

They depend on the app’s language settings for the account and client.

just tested with 4.1.3 on a selfhosted installation. I wasn’t able to get german translated value for “:MONTH”. I always returns original english value.

same issue here.

everthing show´s up in the language, altough in “first month of the year” correct display, but in the invoice preview and aswell in the email send to the client(s), it shows the english month pattern.

Did you test in v4.1.3 or v4.3.1 (our latest release)?

sorry for missing that out

i´am on self hosted 4.3.1

I’m able to reproduce the problem, we’ll work on fixing it.

I may see part of the problem, are both the client and company set to German?

Hi,

i changed the language but it didnt take any effects.

e.g.

System Language: English
User: German, Dutch, etc.

It sticks with the Month in English.

Maybe i am doing something wrong but i don´t get it.

I think it’s a bug, we’ll try to include a fix with our next release.

thank you very much.

tried the debug mode to get more information, but the display in the /resources/lang/de/texts.php shows everthing correct.

Sorry, I was mistaken. I didn’t realize the month April in German is also April.

Please check that the language setting for the specific client is correct.

I did check for May and March which are different in writing.

same there.