commerce_eu_vat_fr.module in Commerce European Union VAT 7.2
Same filename and directory in other branches
Code for the Commerce EU VAT FR feature.
File
countries/commerce_eu_vat_fr/commerce_eu_vat_fr.moduleView source
<?php
/**
* @file
* Code for the Commerce EU VAT FR feature.
*/
/**
* Impliments hook_commerce_vat_country_info_alter().
*/
function commerce_eu_vat_fr_commerce_vat_country_info_alter(&$vat_countries) {
$vat_countries['FR']['default_field'] = TRUE;
}
/**
* Implements hook_commerce_vat_rate_info().
*/
function commerce_eu_vat_fr_commerce_vat_rate_info() {
$items = array(
'fr_super_reduced' => array(
'country' => 'FR',
'eu' => TRUE,
'title' => t('FR Super Reduced'),
'rates' => array(
'021_1986' => array(
'name' => '021_1986',
'rate' => 0.021,
'start' => '19860701',
),
),
),
'fr_reduced' => array(
'country' => 'FR',
'eu' => TRUE,
'title' => t('FR Reduced'),
'rates' => array(
'055_1982' => array(
'name' => '055_1982',
'rate' => 0.055,
'start' => '19820701',
),
),
),
'fr_intermediate' => array(
'country' => 'FR',
'eu' => TRUE,
'title' => t('FR Intermediate'),
'rates' => array(
'10_2014' => array(
'name' => '10_2014',
'rate' => 0.1,
'start' => '20140101',
),
'07_2012' => array(
'name' => '07_2012',
'rate' => 0.07000000000000001,
'start' => '20120101',
),
),
),
'fr_standard' => array(
'country' => 'FR',
'eu' => TRUE,
'title' => t('FR Standard'),
'rates' => array(
'20_2014' => array(
'name' => '20_2014',
'rate' => 0.2,
'start' => '20140101',
),
'196_2004' => array(
'name' => '196_2004',
'rate' => 0.196,
'start' => '20000401',
),
),
),
);
return $items;
}
Functions
Name![]() |
Description |
---|---|
commerce_eu_vat_fr_commerce_vat_country_info_alter | Impliments hook_commerce_vat_country_info_alter(). |
commerce_eu_vat_fr_commerce_vat_rate_info | Implements hook_commerce_vat_rate_info(). |