• Resolved wpprem

    (@wpprem)


    I am using this plugin for a long time and it works pretty well.
    I had a requirement about to display VAT taxes seperately on the invoice.
    So, by using this function wc_get_price_excluding_tax($product) and running through all the products i am able to show the following. Basically, i want to show how much Net amount related to the percentage of VAT.

    12,36 € (7% VAT)
    3,32 € (19% VAT)
    15,68 € (Net)

    Standard Display (comes with plugin):
    17,17 € (incl. 0,86 € VAT 7%, 0,63 € VAT 19%)

    For info, 19% VAT only for Shipping cost (3.95€ Gross), all products come under 7% VAT.

    The question here is, how can i get the discounts (via Coupon) per product and then do the tax calculation correctly?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! This is not something we offer in the free plugin, but our premium templates extension lets you add rows to the totals with exactly that information, we call this the ‘VAT Base’ row:

    This will print a new row for each VAT subtotal, including the percentage (if required and not already included in the VAT rate’s label)

    Additionally, the Premium templates extension will print the actual VAT amounts in separate row, and you could also include the VAT Base in the label of the VAT rates:

    This will always be after discount automatically.

    Using wc_get_price_excluding_tax($product) is a bad idea because if your product prices ever change, this means your old invoices will change along with it, which is undesirable – invoices should be based exclusively (or as much as possible) on order data, not product data.

Viewing 1 replies (of 1 total)
  • The topic ‘Display VAT Tax correctly’ is closed to new replies.