Add Total Discount value in invoice

Hi,

I customized invoice to my needs using files:
- pdf.myinvoicename.modules.php
- pdf.lib.php

Some of the declarations I understand but some just cant figure out.

How can I add discount value (not just percent, but value of discout of total price without VAT ).

Regards,

1 Like

I am using dolibar 3.3.0 beta.

I put tag {object_total_discount} in ODT invoice template in order to show total amount of discount. It shows OK, when I have products with quantity: 1. When there is not just 1 quantity it doesn’t show OK and there also becomes minus (-) before total discount. Is there someone with same problem?

Eldy fixed this for next release.
Tag to be used will be “object_total_discount_ht”

Any idea on how to do this in version 3.7, with pdf invoices, and for php profanes ?