VAT charging system
The webshop of Exponential charges value added tax (VAT) through VAT types: a name and a fixed percentage, such as "Standard, 19%". Every product (an object with a Price or Multi-price attribute) has a VAT type. There must always be at least one VAT type; a shop that charges no VAT keeps one at 0%.
VAT types are managed under Store > VAT types (/shop/vattype); see Managing VAT types.
Price including or excluding VAT
Each product, and each product class as its default, says how its price was entered:
- Price inc. VAT: the price entered already includes VAT. The customer pays the price as entered; the VAT is the part of it the percentage gives.
- Price ex. VAT: the price entered is without VAT. The customer pays the price plus the VAT: 500 at 25% becomes 625.
The dynamic VAT type
Besides the fixed VAT types there can be one dynamic VAT type, shown in the VAT type list of products as Determined by VAT charging rules (shop.ini [VATSettings] DynamicVatTypeName). A product with the dynamic VAT type has no fixed percentage: a VAT handler decides it when the product is shown or bought, for example by the customer's country and the product's category.
The dynamic VAT type exists only while a VAT handler is configured. Without one it is not offered and cannot be used. It works only with Price ex. VAT.
# settings/override/shop.ini.append.php [VATSettings] # the built-in handler: country and product category dependent VAT Handler=ezdefault
Only one VAT handler can be used at a time. The built-in handler, ezdefault (ezdefaultvathandler.php in kernel/classes/vathandlers/), applies the VAT rules of Store > VAT rules; a handler of your own can apply any logic (see Creating new VAT handlers).
Three approaches
- VAT per product: a fixed VAT type per product. No handler needed.
- Country dependent VAT: the built-in handler with VAT rules by customer country and product category.
- Extended VAT: a VAT handler of your own.
Three approaches to VAT charging describes each with examples.
The pages of this section
- VAT settings: shop.ini [VATSettings].
- Managing VAT types, Managing VAT rules, Managing product categories.
- Assigning VAT types to products, Product category, User country.
- Displaying VATs on the actual site.
Every change to VAT types and rules is recorded in the audit trail as commerce.vat.change (see Audit trailing).
In this section
- Assigning VAT types to products Assigning VAT types to products and setting the default VAT type of a product class.
- Three approaches to VAT charging VAT per product, country dependent VAT and extended VAT, with worked examples.
- Product category Adding a product category attribute to product classes for country dependent VAT.
- User country The user's country for VAT: the Country attribute, UserCountryAttribute, checkout and the preferred country.
- Displaying VATs on the actual site How VAT is shown to customers with VAT per product and with country dependent VAT.
- Managing VAT types Store > VAT types: creating, changing and removing VAT types.
- Managing product categories Store > Product categories: creating, renaming and removing product categories, and what removing does to VAT rules.
- Managing VAT rules Store > VAT rules: creating rules, the default rule, which rule applies, editing and removing.
- VAT settings The settings of shop.ini [VATSettings]: handler, directories, attributes and the dynamic VAT type name.
- Creating new VAT handlers Writing a VAT handler of your own: getVatPercent(), shop.ini settings and an example by section.
- Canadian Provincial (PST) and Federal (GST) Sales Taxes /... Exponential Documentation
Contributors
- Svitlana Shatokhina
- Geir Arne Waaler
- Mathew Newton Commenter
- Claudia Kosny Commenter
- Graham Brookins Updated Maintainer
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
Canadian Provincial (PST) and Federal (GST) Sales Taxes
Mathew Newton ·
Hi,
Unfortunately here in BC we have two levels of taxes - Provincial (PST) and Federal (GST). As a result retail customers in BC are charged both PST and GST and then the remainder of Canada is charged only the GST and then non-Canadians are not charged either.
Unfortunately there are also product exclusions where one of the taxes is not applicable to a particular product and needs to be excluded from calculations.
Has anyone successfully implemented this Tax regime in EZ and is this available.
Txs
Mathew Newton
Re: Canadian Provincial (PST) and Federal (GST) Sales Taxes
Claudia Kosny ·
Hello Mathew
Maybe this article helps you:
http://ez.no/community/articles/n...ublish_3_8/new_webshop_functionality
I would image setting up BC and the remainder of Canada as different countries. The main problem I see is to combine the two taxes, the only way I see at the moment is to have three VAT types, one which is PST and GST added up, one for only GST and one with zero. Unfortunately this means that you cannot show PST and GST separately.
If you have more questions please ask them at the forum
http://ez.no/community/forum
Claudia