e107inc / vstore

Simple shopping cart system for e107 v2.x Bootstrap CMS
GNU General Public License v3.0
17 stars 12 forks source link

New feature: Tax #69

Open SimSync opened 6 years ago

SimSync commented 6 years ago

Currently there is no possibility to define the tax for each item and therefore any invoices are incomplete. In the EU the tax laws are even more complicated as tax has been payed even when the buyer is from a different country (inside the EU) as the shop is located. To make it even more complicated, the shop has to apply the tax from the customers country ... For business purchases from ouside the shop country, no tax has to be added, only for private purchases. For buyers from outside the EU, no tax has to be added independent if the buyer is private or a company.

Countries from outside the EU have a different, more simpler model: Tax on all in country purchases, no tax on foreign purchases.

If anybody has different knowledge, i'm open to any doumentation about this topic.

I'm going to implement a system consisting on tax classes. Default will be "none", "reduced" and "standard". You will be able to assign a default tax value to each class (in germany that would be 0%, 7% and 19%). In the item, the shop admin has to assign the tax class to the item. That means an item with the "standard" class will have in germany 19% VAT assigned.

For shops in the EU and with company customers from the EU, i'm going to implement the following class: "dannyvankooten/vat.php" (can be found here on GitHub) to handle the tax related topics. That class enables now the shop to find out how the tax value is in the other EU countries, to be sure to assign the correct tax value to customers from other countries inside the EU. It helps also by verifying the VAT-ID.

Shops, located outside the EU will just use the tax values defined in the tax classes.

kreossino commented 6 years ago

in Italy exists other Tax percentage (IVA) 22% - 10% - 4%

SimSync commented 6 years ago

This is something you will be able to configure. grafik

Norwayman commented 6 years ago

@SimSync @kreossino In Norway it is 25% and in Mexico it is 16% :)

SimSync commented 6 years ago

You can define the tax for your country individually. Just set the tax value as you need it. The picture above is only an example of how it would look line in germany.

kreossino commented 6 years ago

the addition of the tax field works but is not recorded in the database

Jimmi08 commented 5 years ago

I don't know if this is only in our country, but from 1.1.2019 this should be easier for small companies in my country.

Added: