commerce_eu_vat_fi.module in Commerce European Union VAT 7.2
Same filename and directory in other branches
Code for the Commerce EU VAT FI feature.
File
countries/commerce_eu_vat_fi/commerce_eu_vat_fi.moduleView source
<?php
/**
* @file
* Code for the Commerce EU VAT FI feature.
*/
/**
* Impliments hook_commerce_vat_country_info_alter().
*/
function commerce_eu_vat_fi_commerce_vat_country_info_alter(&$vat_countries) {
$vat_countries['FI']['default_field'] = TRUE;
}
/**
* Implements hook_commerce_vat_rate_info().
*/
function commerce_eu_vat_fi_commerce_vat_rate_info() {
$items = array(
'fi_reduced' => array(
'country' => 'FI',
'eu' => TRUE,
'title' => t('FI Reduced'),
'rates' => array(
'10_2013' => array(
'name' => '10_2013',
'rate' => 0.1,
'start' => '20130101',
),
'09_2010' => array(
'name' => '09_2010',
'rate' => 0.09,
'start' => '20100701',
),
),
),
'fi_intermediate' => array(
'country' => 'FI',
'eu' => TRUE,
'title' => t('FI Intermediate'),
'rates' => array(
'14_2013' => array(
'name' => '14_2013',
'rate' => 0.14,
'start' => '20130101',
),
'13_2010' => array(
'name' => '13_2010',
'rate' => 0.13,
'start' => '20100701',
),
),
),
'fi_standard' => array(
'country' => 'FI',
'eu' => TRUE,
'title' => t('FI Standard'),
'rates' => array(
'24_2013' => array(
'name' => '24_2013',
'rate' => 0.24,
'start' => '20130101',
),
'23_2010' => array(
'name' => '23_2010',
'rate' => 0.23,
'start' => '20100701',
),
),
),
);
return $items;
}
Functions
Name![]() |
Description |
---|---|
commerce_eu_vat_fi_commerce_vat_country_info_alter | Impliments hook_commerce_vat_country_info_alter(). |
commerce_eu_vat_fi_commerce_vat_rate_info | Implements hook_commerce_vat_rate_info(). |