Hi everyone,
I’m sorry to ask but my laziness just won after 1 hour searching for a solution on the community forum.;-p
In my business, we often ask for a advance on payment. ( 10%to 50%)
Is it possible to display a custom total " due to date " on a quote with XX% of the total ?
If yes, is it possible to have this subtotal displayed has the requested amount on the SwissQR ( or the SEPAQR ).
Sorry i’m back with my strange idea
Could you give some hint to do it ?
what is the advance payment variable ? with it i think i can add it to my template and then mod the swiss QR to generate the correct amount
Ok thanks, i succeed in certain things. !
On more question, the conditionnal formating isn’t clear for me :
at the footer of the invoice, i need to display $swiss_qr or sepa depending of the currency, but my bloc isn’t displaying at all…
Sure! Happy to help with your Invoice Ninja template. It looks like you’re almost there — the issue is likely with the syntax for the conditional statement. Invoice Ninja uses Twig syntax for custom templates, and what you wrote is close but not quite correct.
Here’s the corrected version of your code using proper Twig syntax:
Knowing nothing about Twig, but being pretty familiar with troubleshooting, I’d attack this by first printing all variables in <p> to make sure they work.
Also, pulling objects to make sure I’m calling the variables with correct syntax.
Also, rendering both if/else separately to drill down to what exactly is going wrong.
THEN, use developer tools on the browser and read the console. It’s going to tell you where the bugs are. Maybe not how to fix them, but where they are.
TLDR: This is an assignment within the realm of a junior dev. If you dont get responses on github, pay someone on upward, give them a fake invoice ninja with just enough info to create the invoice, then have them go to town. The skills required to fix aren’t uniquely tied to invoice ninja familiarity.