commerce_eu_vat_ie.module in Commerce European Union VAT 7.2
Same filename and directory in other branches
Code for the Commerce EU VAT IE feature.
File
countries/commerce_eu_vat_ie/commerce_eu_vat_ie.moduleView source
<?php
/**
* @file
* Code for the Commerce EU VAT IE feature.
*/
/**
* Impliments hook_commerce_vat_country_info_alter().
*/
function commerce_eu_vat_ie_commerce_vat_country_info_alter(&$vat_countries) {
$vat_countries['IE']['default_field'] = TRUE;
}
/**
* Implements hook_commerce_vat_rate_info().
*/
function commerce_eu_vat_ie_commerce_vat_rate_info() {
$items = array(
'ie_livestock' => array(
'country' => 'IE',
'eu' => TRUE,
'title' => t('IE Livestock'),
'rates' => array(
'048_2005' => array(
'name' => '048_2005',
'rate' => 0.048,
'start' => '20050101',
),
),
),
'ie_farm' => array(
'country' => 'IE',
'eu' => TRUE,
'title' => t('IE Farmers`'),
'rates' => array(
'048_2013' => array(
'name' => '048_2005',
'rate' => 0.048,
'start' => '2013_01_01',
),
),
),
'ie_reduced' => array(
'country' => 'IE',
'eu' => TRUE,
'title' => t('IE Reduced'),
'rates' => array(
'09_2011' => array(
'name' => '09_2011',
'rate' => 0.09,
'start' => '20110701',
),
),
),
'ie_intermediate' => array(
'country' => 'IE',
'eu' => TRUE,
'title' => t('IE Intermediate'),
'rates' => array(
'135_2003' => array(
'name' => '135_2003',
'rate' => 0.135,
'start' => '20030101',
),
),
),
'ie_standard' => array(
'country' => 'IE',
'eu' => TRUE,
'title' => t('IE Standard'),
'rates' => array(
'23_2021' => array(
'name' => '23_2021',
'rate' => 0.23,
'start' => '20210301',
),
'21_2020' => array(
'name' => '21_2020',
'rate' => 0.21,
'start' => '20200901',
),
'23_2012' => array(
'name' => '23_2012',
'rate' => 0.23,
'start' => '20120101',
),
),
),
'ie_zero' => array(
'country' => 'IE',
'eu' => TRUE,
'title' => t('IE Zero'),
'rates' => array(
'00_1972' => array(
'name' => '00_1972',
'rate' => 0.0,
'start' => '19721101',
),
),
),
);
return $items;
}
Functions
Name![]() |
Description |
---|---|
commerce_eu_vat_ie_commerce_vat_country_info_alter | Impliments hook_commerce_vat_country_info_alter(). |
commerce_eu_vat_ie_commerce_vat_rate_info | Implements hook_commerce_vat_rate_info(). |