Swap visibility of subtotal and tax base.
Now subtotal will be visible if discount > 0 or tax > 0, and tax base will be visible only if type of tax is included.
Hide discount column if no discount at all.
Checks all items in the invoice, show discount column if at least 1 service or item that have discount.
Invoice
Swap visibility of subtotal and tax base. Now subtotal will be visible if discount > 0 or tax > 0, and tax base will be visible only if type of tax is included. Hide discount column if no discount at all. Checks all items in the invoice, show discount column if at least 1 service or item that have discount.
RESULT
Payment Order
Fix table layout to be more readable. Now the email also showing invoice detail with its discount and tax. Added payment order notes in the header.
RESULT