Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

30knees

Bug in EU Advanced Compliance with shipping taxes?

Recommended Posts

21 hours ago, Occam said:

Of course!

German invoice with  mixed taxes:  RE000019.pdf

And please, don't try to "approve" the Cart.php. Leave the code (where it deals with AEUC) like this:


 if (Configuration::get('PS_ATCP_SHIPWRAP')) {
            if ($useTax) {
                // With PS_ATCP_SHIPWRAP, we apply the proportionate tax rate to the shipping
                // costs. This is on purpose and required in many countries in the European Union.
                $shippingCost *= 1 + $this->getAverageProductsTaxRate();
            }
        } else {
            // Apply tax
            if ($useTax && isset($carrierTax)) {
                $shippingCost *= 1 + ($carrierTax / 100);
            }
        }
        $shippingCost = round($shippingCost, _TB_PRICE_DATABASE_PRECISION_);

        Cache::store($cacheId, $shippingCost);

        return $shippingCost;

 

That's exactly the code that's already there. I don't understand what you suggest doing, unfortunately.

Share this post


Link to post
Share on other sites

The fix is to replace the whole tb cart.php with the last PS cart.php. But I don't know whether this has any other effects elsewhere.

EDIT: Gross tax shipping (i.e. incl. tax) should be 4.80.

tb cart.php

Capture.thumb.JPG.93e2230c32ec5e6a563d45cf5f787d8b.JPG

PS cart.php

image.thumb.png.70155b237981378ac68c530115e373b5.png

Edited by 30knees

Share this post


Link to post
Share on other sites

1) It makes no sense to open several topics for the same problem.

2) From your example it is not clear how much the gross amount of the shipping costs actually is.

Or did you mean shipping costs tax incl. when you wrote "Gross tax is set at 4.80"? If so, the problem can be identified as a bug in tb's AEUC, because though the taxes are correctly calculated, they are computed not from the net shipping amount (4.25), but from the shipping price incl. taxes (4.80)!
This bug is not new, but still unsolved. I totally forgot that this was the reason why I use my own modified AEUC in tb. Works properly without any changes in classes like Cart.php.

 

 

Share this post


Link to post
Share on other sites

1. Agree with you - but I think they're separate issues (apart from the German language post), ie can I simply swap the cart.php files?

2. True, I meant gross shipping costs. I updated to clarify that. Thank you for the pointer. 

I'm not sure it's a bug in tb's AEUC, though. With PS cart.php everything works. 

Quote

because though the taxes are correctly calculated, they are computed not from the net shipping amount (4.25), but from the shipping price incl. taxes (4.80)!

In my opinion, this is OK. The customer should know the gross shipping cost in advance, i.e. 4.80. The taxes for the shipping cost will depend on what's in the shopping cart.

The display of the net or gross shipping price in the invoice is a different matter.

Quote

This bug is not new, but still unsolved. I totally forgot that this was the reason why I use my own modified AEUC in tb.

Mind sharing? 

Share this post


Link to post
Share on other sites
3 hours ago, Occam said:

I totally forgot that this was the reason why I use my own modified AEUC in tb.

Code discussed here isn't part of the AEUC module. The module just provides a switch to enable some code in core.

Share this post


Link to post
Share on other sites

I thought I'd share a summary I wrote for datakick of this problem, as I believe it affects all EU countries and the UK and means thirtybees isn't 'fully compliant' in a sense:

In sum there are two elements that work together to create non-compliance: 1) the tax element, 2) the consumer information element.

Regarding 1) the tax element

If you sell two products, one at a VAT rate of 10% and one at a VAT rate of 5%, and you charge for shipping, the VAT rate for the shipping (which is a separate service to the sale of goods) is dependent on the basket of products sold.

There are two ways the shipping VAT may be calculated:

a) Proportionally according to the VAT proportion in the basket.

Product A costs 32.66 net / 34.95 brutto with 7% VAT.
Product B costs 2.50 net / 2.98 brutto with 19% VAT.
--> Shipping costs 4.95 brutto with proportional VAT.

Product A represents 92.98% and Product B 7.11% of the net total.

So the VAT of the shipping costs should be proportionately split:

92.14% of 4.95 = 4.56. This means 4.56 brutto are taxed with 7%, which gives us 4.26 net + 0.30 VAT (7%) = 4.56 brutto shipping

7.86% of 4.95 = 0.39. This means 0.39 brutto are taxed with 19%, which gives us 0.33 net + 0.06 VAT (19%) = 0.39 brutto shipping

Net shipping costs: 4.95 brutto - 0.30 VAT - 0.06 - VAT = 4.59 net

b) According to the higher value VAT rate in the basket.

Product A costs 32.66 net / 34.95 brutto with 7% VAT.
Product B costs 2.50 net / 2.98 brutto with 19% VAT.
--> Shipping costs 4.95 brutto with 7% VAT. This is because Product A is more than 50% of the total.

Regarding 2) the consumer information element

The consumer needs to know the brutto shipping costs upfront. Currently, with tb, the customer can only know the net shipping costs upfront because the variable brutto is calculated from the fixed net unlike in the example above where the variable net is calculated from the fixed brutto.

Sources for tax element

Looking for material in English I found out that this requirement actually is European-wide one. It follows from a Court of Justice of the European Union case and a VAT directive. It's just that some countries (tax authorities) implement it stricter than others. Here is something in English: https://en.blog.taxdoo.com/umsatzsteuer-versandkosten-nebenleistungen/

Sources for information element

https://europa.eu/youreurope/citizens/consumers/shopping/shipping-delivery/index_en.htm#shortcut-1

  Quote

You must always be clearly informed of the total price for your purchase, including delivery** and other related costs

Total price is understood to be incl. taxes. But even if you argue and say that the customer sees the total shipping costs in the checkout before clicking buy, it's just not user friendly to have in the shipping costs FAQ part of your shop: Your shipping costs are 4.50 excluding tax - the exact amount including tax depends on your purchase, as the taxes depend on what you buy. 🙂

  • Like 1

Share this post


Link to post
Share on other sites

I have noticed this bug myself long time ago and have always payed to much taxes on shipping to the government. Will try to push this bug to be fixed a.s.a.p.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...