• Resolved WesleyVroom

    (@wesleyvroom)


    i really like your EA VAT assistent plugin, but I ran into a slight problem with the display of the tax in the checkout and on invoices.

    The EU regulations state that a B2B customer from another country doesn’t pay tax to the webshop, so this will be deducted. This works fine in the plugin, but following the regulations there has to be a line with 0% tax on the invoice. Because the plugin doesn’t show the tax at all for b2b customers in checkout, this line is not on the invoice.

    What can I do to make the 0% tax line apear in checkout and on the invoice?

Viewing 1 replies (of 1 total)
  • Plugin Author Diego

    (@daigo75)

    The EU VAT Assistant doesn’t control or alter what is printed on the invoice. When an exemption is applicable, the plugin simple enables the “tax exempt” flag in WooCommerce, then WooCommerce deals with the implications of such exemption.

    If you need to show a “0% VAT” on your invoices, you will have to customise the template you are using. Here’s an example of how you can check if the order’s VAT was reverse charged and display a “0% VAT” message accordingly:

    
    // Here the $order_id is the ID of order that was loaded 
    // to prepare the invoice
    $order = new \Aelia\WC\EU_VAT_Assistant\WCPDF\EU_Invoice_Order\EU_Invoice_Order($order_id);
    // Load the invoice helper from the EU VAT Assistant
    $eu_invoice_helper = \Aelia\WC\EU_VAT_Assistant\WCPDF\EU_Invoice_Helper::factory($order);
    // Check if the order VAT was reverse charged (i.e. it was a B2B transaction, with a customer
    // having a valid VAT number
    if($eu_invoice_helper->reverse_charge()) {
      // Print the "0% VAT" message
      echo "0% VAT";
    }
    

    You can adapt the above code for the invoicing plugin you use, so that the “0% VAT” message is printed in the right place. If you need assistance with this customisation, please feel free to contact us to request a quote. Please make sure that you specify which invoicing plugin you are using, and where you would like the note to appear (a simple screenshot will suffice).

    • This reply was modified 7 years, 9 months ago by Diego.
    • This reply was modified 7 years, 9 months ago by Diego.
Viewing 1 replies (of 1 total)
  • The topic ‘VAT display in checkout and on invoices’ is closed to new replies.