shop.modules.vat_rate

Attributes

Classes

Module Contents

shop.modules.vat_rate.logger
class shop.modules.vat_rate.VatRate

Bases: shop.modules.abstract.ShopModuleAbstract, viur.core.prototypes.List

moduleName = 'vat_rate'
kindName = '{{viur_shop_modulename}}_vat_rate'
adminInfo()
Return type:

dict

vat_rates()

Cache the vat rates

Since this configuration will not change much, we cache the whole thing persistently within the instance. So after changing the VAT rates, the instance would have to be restarted – or someone would have to create a pull request with an alternative solution.

_vat_skel()
get_vat_rate_for_country(*, country=None, category)

Get the configured vat rate percentage for a country.

Parameters:
Return type:

float