lino_xl.lib.vat

See vat : Adding VAT (Value-added tax) functionality.

utils

Utility functions for VAT.

Classes

Plugin(site, app_label, app_name, ...)

The Plugin object for this plugin.

class lino_xl.lib.vat.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

The Plugin object for this plugin.

eu_country_codes = {'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PO', 'PT', 'RO', 'SE', 'SI', 'SK'}

A set of ISO codes that are to be considered part of the EU. See Who is member of the European Union?.

default_vat_regime = 'normal'

The default VAT regime. If this is specified as a string, Lino will resolve it at startup into an item of VatRegimes.

default_vat_class = 'services'

The default VAT class. If this is specified as a string, Lino will resolve it at startup into an item of VatClasses.

declaration_plugin = None

The plugin to use as your national VAT module.

Available modules are: lino_xl.lib.bevat, lino_xl.lib.bevats and lino_xl.lib.eevat.

This may remain None, e.g. in applicatons that use the ledger plugin for orders or invoicing without caring about general accounting functionality.

item_vat = False

Whether item prices in trade documents are meant VAT included.

use_online_check = False

Whether to verify VAT numbers online via VIES.

get_vat_class(tt, item)

Return the VAT class to be used for given trade type and given invoice item. Return value must be an item of lino_xl.lib.vat.VatClasses.