You are here

commerce_eu_vat_mt.module in Commerce European Union VAT 7.2

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

Code for the Commerce EU VAT MT Rates. @see

File

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

/**
 * @file
 * Code for the Commerce EU VAT MT Rates.
 * @see
 */

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

/**
 * Implements hook_commerce_vat_rate_info().
 */
function commerce_eu_vat_mt_commerce_vat_rate_info() {
  $items = array(
    'mt_reduced' => array(
      'country' => 'MT',
      'eu' => TRUE,
      'title' => t('MT Reduced'),
      'rates' => array(
        '05_1995' => array(
          'name' => '05_1995',
          'rate' => 0.05,
          'start' => '19950101',
        ),
      ),
    ),
    'mt_intermediate' => array(
      'country' => 'MT',
      'eu' => TRUE,
      'title' => t('MT Intermediate'),
      'rates' => array(
        '07_2011' => array(
          'name' => '07_2011',
          'rate' => 0.07000000000000001,
          'start' => '20110101',
        ),
      ),
    ),
    'mt_standard' => array(
      'country' => 'MT',
      'eu' => TRUE,
      'title' => t('MT Standard'),
      'rates' => array(
        '18_2004' => array(
          'name' => '18_2004',
          'rate' => 0.18,
          'start' => '20040101',
        ),
      ),
    ),
  );
  return $items;
}