baselbers / woocommerce-pdf-invoices

Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
http://wcpdfinvoices.com
GNU General Public License v3.0
74 stars 41 forks source link

Incorrect eu vat reporting #188

Closed shawaj closed 6 years ago

shawaj commented 7 years ago

When a customer has ordered from USA, which would be zero rated because it is outside of the EU, a line gets put on the invoice saying:

"Zero rated for VAT as customer has supplied EU VAT number"

Obviously this is wrong - the reason it is zero rated in this instance would be because we are shipping to outside of the EU?

Thanks

baselbers commented 7 years ago

This should have been fixed in latest version. Are you using 2.9.1? https://github.com/baselbers/woocommerce-pdf-invoices/commit/9dfcee7ea2c8b692eb16edafcdf78a6d6300949c

shawaj commented 7 years ago

Yes this is on version 2.9.1 so obviously it's not fixed yet...

baselbers commented 7 years ago

That is really strange because for orders outside EU '_vat_number_is_valid' can't be true. Can you debug this?

'true' === $templater->get_meta( '_vat_number_is_valid' )

shawaj commented 7 years ago

@baselbers

What would you like me to test?

baselbers commented 7 years ago

Try below and let me know what value you get.

<?php var_dump( $templater->get_meta( '_vat_number_is_valid' ) ); ?>

shawaj commented 7 years ago

Where should I try that?

baselbers commented 7 years ago

You could add it to one of the template files..

shawaj commented 7 years ago

@baselbers thanks very much, but could you tell me where in the template I should put it and what output I should expect and where?

baselbers commented 7 years ago

Just add it to header.php on last line, generate invoice and send me a screenshot of it.

baselbers commented 7 years ago

@shawaj did you got any chance resolving this issue?

shawaj commented 7 years ago

@baselbers header.php of the theme or of your plugin?

shawaj commented 7 years ago

Anyway, after the latest update the plugin just does not work at all!

baselbers commented 6 years ago

@shawaj Would like to know if you have been able to resolve the problem. The FAQ will explain how to add the VAT notice to the invoice.