LocalVatService can be used as a fallback if
PriceRequest does not provide the VAT value.
Typically the ERP can provide the VAT percent during a price request.
If not provided, the VAT code stored in the product node can be used to determine the current VAT percent using a configuration.
The configuration considers:
- country code (country code for the buyer or in some cases the country code of the delivery destination)
If the country is not found in the SiteAccess configuration,
defaultis used as a fallback. In this case an entry is added to log file
- VAT code
Because of legal reasons, if no VAT value is found, an exception is thrown. The default VAT percent cannot be displayed in this case.
In the standard implementation the VAT code for calculation is provided by the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
VatServiceInterface does VAT calculations and returns the VAT percent as float value.
||Returns the VAT percent value for
||Returns the VAT percent value for a given