commerce_eu_vat_lv.module in Commerce European Union VAT 7.2
Same filename and directory in other branches
Code for the Commerce EU VAT LV Rates.
File
countries/commerce_eu_vat_lv/commerce_eu_vat_lv.moduleView source
<?php
/**
* @file
* Code for the Commerce EU VAT LV Rates.
*/
/**
* Impliments hook_commerce_vat_country_info_alter().
*/
function commerce_eu_vat_lv_commerce_vat_country_info_alter(&$vat_countries) {
$vat_countries['LV']['default_field'] = TRUE;
}
/**
* Implements hook_commerce_vat_rate_info().
*/
function commerce_eu_vat_lv_commerce_vat_rate_info() {
$items = array(
'lv_reduced' => array(
'country' => 'LV',
'eu' => TRUE,
'title' => t('LV Reduced'),
'rates' => array(
'12_2011' => array(
'name' => '12_2011',
'rate' => 0.12,
'start' => '20110101',
),
),
),
'lv_standard' => array(
'country' => 'LV',
'eu' => TRUE,
'title' => t('LV Standard'),
'rates' => array(
'21_2012' => array(
'name' => '21_2012',
'rate' => 0.21,
'start' => '20120701',
),
),
),
);
return $items;
}
Functions
Name![]() |
Description |
---|---|
commerce_eu_vat_lv_commerce_vat_country_info_alter | Impliments hook_commerce_vat_country_info_alter(). |
commerce_eu_vat_lv_commerce_vat_rate_info | Implements hook_commerce_vat_rate_info(). |