You are here

commerce_eu_vat_lu.module in Commerce European Union VAT 7.2

Same filename and directory in other branches
  1. 7 countries/commerce_eu_vat_lu/commerce_eu_vat_lu.module

Code for the Commerce EU VAT LU feature.

File

countries/commerce_eu_vat_lu/commerce_eu_vat_lu.module
View source
<?php

/**
 * @file
 * Code for the Commerce EU VAT LU feature.
 */

/**
 * Impliments hook_commerce_vat_country_info_alter().
 */
function commerce_eu_vat_lu_commerce_vat_country_info_alter(&$vat_countries) {
  $vat_countries['LU']['default_field'] = TRUE;
}

/**
 * Implements hook_commerce_vat_rate_info().
 */
function commerce_eu_vat_lu_commerce_vat_rate_info() {
  $items = array(
    'lu_super_reduced' => array(
      'country' => 'LU',
      'eu' => TRUE,
      'title' => t('LU Super Reduced'),
      'rates' => array(
        '03_1983' => array(
          'name' => '03_1983',
          'rate' => 0.03,
          'start' => '19830701',
        ),
      ),
    ),
    'lu_reduced' => array(
      'country' => 'LU',
      'eu' => TRUE,
      'title' => t('LU Reduced'),
      'rates' => array(
        '08_2015' => array(
          'name' => '08_2015',
          'rate' => 0.08,
          'start' => '20150101',
        ),
        '06_1983' => array(
          'name' => '06_1983',
          'rate' => 0.06,
          'start' => '19830701',
        ),
      ),
    ),
    'lu_intermediate' => array(
      'country' => 'LU',
      'eu' => TRUE,
      'title' => t('LU Intermediate'),
      'rates' => array(
        '14_2015' => array(
          'name' => '14_2015',
          'rate' => 0.14,
          'start' => '20150101',
        ),
        '12_1979' => array(
          'name' => '12_1979',
          'rate' => 0.12,
          'start' => '19790212',
        ),
      ),
    ),
    'lu_standard' => array(
      'country' => 'LU',
      'eu' => TRUE,
      'title' => t('LU Standard'),
      'rates' => array(
        '17_2015' => array(
          'name' => '17_2015',
          'rate' => 0.17,
          'start' => '20150101',
        ),
        '15_1992' => array(
          'name' => '15_1992',
          'rate' => 0.15,
          'start' => '19920101',
        ),
      ),
    ),
  );
  return $items;
}