You are here

commerce_eu_vat_gb.module in Commerce European Union VAT 7

Same filename and directory in other branches
  1. 7.2 countries/commerce_eu_vat_gb/commerce_eu_vat_gb.module

Code for the Commerce EU VAT GB feature.

File

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

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

/**
 * Implements hook_commerce_tax_rate_info().
 */
function commerce_eu_vat_gb_commerce_tax_rate_info() {
  $items = array(
    'eu_vat_gb_reduced_05' => array(
      'title' => t('GB Reduced (5%)'),
      'display_title' => t('5% VAT', array(), array(
        'context' => 'commerce_eu_vat_gb',
      )),
      'description' => t('UK Reduced Rate VAT at 5%'),
      'rate' => '.05',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => TRUE,
    ),
    'eu_vat_gb_standard_20' => array(
      'title' => t('GB Standard (20%)'),
      'display_title' => t('20% VAT', array(), array(
        'context' => 'commerce_eu_vat_gb',
      )),
      'description' => t('UK Standard Rate VAT at 20%'),
      'rate' => '.2',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => TRUE,
    ),
    /*
     * The standard rate of VAT was temporarily reduced
     * to 15 per cent on 1 December 2008 and returned to
     * 17.5 per cent on 1 January 2010. On 4 January 2011
     * the standard rate increased to 20 per cent.
     */
    'eu_vat_gb_standard_175' => array(
      'title' => t('GB Old Standard (17.5%)'),
      'display_title' => t('17.5% VAT', array(), array(
        'context' => 'commerce_eu_vat_gb',
      )),
      'description' => t('UK Standard Rate VAT at 17.5%'),
      'rate' => '.175',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => FALSE,
    ),
    'eu_vat_gb_standard_15' => array(
      'title' => t('GB Old Standard (15%)'),
      'display_title' => t('15% VAT', array(), array(
        'context' => 'commerce_eu_vat_gb',
      )),
      'description' => t('UK Standard Rate VAT at 15%'),
      'rate' => '.15',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => FALSE,
    ),
    'eu_vat_gb_zero_00' => array(
      'title' => t('GB Zero'),
      'display_title' => t('0% VAT', array(), array(
        'context' => 'commerce_eu_vat_gb',
      )),
      'description' => t('UK Zero Rate VAT at 0%'),
      'rate' => '0',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => TRUE,
    ),
  );
  return $items;
}