You are here

commerce_eu_vat_cz.module in Commerce European Union VAT 7

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

Code for the Commerce EU VAT CZ Module.

File

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

/**
 * @file
 * Code for the Commerce EU VAT CZ Module.
 * @see http://www.mfcr.cz/cps/rde/xchg
 */

/**
 * Implements hook_commerce_tax_rate_info().
 */
function commerce_eu_vat_cz_commerce_tax_rate_info() {
  $items = array(
    'eu_vat_cz_reduced_10' => array(
      'title' => t('CZ Reduced (10%)'),
      'display_title' => t('10% VAT', array(), array(
        'context' => 'commerce_eu_vat_cz',
      )),
      'description' => t('CZ Reduced Rate VAT at 10%'),
      'rate' => '.10',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => TRUE,
    ),
    'eu_vat_cz_standard_20' => array(
      'title' => t('CZ Standard (20%)'),
      'display_title' => t('20% VAT', array(), array(
        'context' => 'commerce_eu_vat_cz',
      )),
      'description' => t('CZ Standard Rate VAT at 20%'),
      'rate' => '.2',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => TRUE,
    ),
    /*
     * From the 1st January both standard and reduced
     * rates will be replaced by a single standard rate.
     */
    'eu_vat_cz_standard_175' => array(
      'title' => t('CZ 2013 Standard (17.5%)'),
      'display_title' => t('17.5% VAT', array(), array(
        'context' => 'commerce_eu_vat_cz',
      )),
      'description' => t('CZ Standard Rate VAT at 17.5%'),
      'rate' => '.175',
      'type' => 'eu_vat',
      'default_rules_component' => TRUE,
      'admin_list' => FALSE,
    ),
  );
  return $items;
}