product discount
I have learnt that the discount on the total amount can either be an absolute value or a percentage. On the product (line item) level I can only enter an absolute value. Is it also possible to have a discount on the product level as percentage?
visibility
Ist it possible to completely hide the discount column when there is no discount for any item?
If you change the invoice level discount to a percentage it will make the line item discounts also be a percentage
understood
There is an option to hide empty columns on Settings > Invoice Design
I already checked this option. But I run my own design as below and I fail at that point where I cannot use an $variable inside a ninja section (in the table header):
This is strange: $variables inside <ninja> do not work. That is what I experienced and what I also read somewhere in the forum.
BUT: The use of $variables inside twig code is explicitly proposed in the official docu:
Standard $ notation variables are also available within templates, this allows you to use familiar variables such as $invoice.amount - you can also combine twig and ninja variables like this to integrate conditionals into your template. ie
{% if invoice.balance > 0 %}
$invoice.balance is payable!
{% else %}
Invoice has been paid! Thanks!
{% endif %}
I am sorry to say that but the support there is very “poor” - to put it in nice words. I paid for a design that never worked. The technical competence is way off from that I get here in the forum from members like e.g. you and smitti