Im trying to come up with a solution where instead of {$date:W) and {$date:y} which refer to the current year, I want to instead use the fiscal year or the year as set in localisation settings, i.e. if the start of the year is set to April, Week 1 would be the 1st week of April. Week 52 would be the end of March, and the year would stay in the current fiscal year when rolling over from December to January.
In php I could do somethings like this:
echo date(“m”) >= 4 ? date(“y”).‘-’.(date(“W”) - 13) : date(“y”) -1 .‘-’.(date(“W”) + 39);
Is there something similar with Invoiceninja?