Hi, I use the the invoice PDF plugin. My client wants to have the calculations more specific and I must say there is some improvement possible (it took me a while to understand the invoice myself).
See the attachment. Let me first translate the 5 rows with Dutch words. It says:
- Subtotal before VAT and discount
- Discount
- Shipping
- Subtotal
- VAT
As you see the Subtotal is empty. That's because I just created it and I don't know how to do the calculation.
It should be calculated the following way: Subtotal = Subtotal before VAT and discount + Discount + Shipping.
In this specific example it should be € 20,00 + (- € 5,00) + € 5,00 = € 20,00.
Can you help me with the code?