You are here

commerce_eu_vat_dk.module in Commerce European Union VAT 7

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

Code for the Commerce EU VAT dk feature.

File

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

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

/**
 * Implements hook_commerce_tax_rate_info().
 */
function commerce_eu_vat_dk_commerce_tax_rate_info() {
  $items = array(
    'eu_vat_dk_standard_25' => array(
      'title' => t('DK Standard (25%)'),
      'display_title' => t('25% VAT', array(), array(
        'context' => 'commerce_eu_vat_dk',
      )),
      'description' => t('Denmark Standard Rate VAT at 25%'),
      'rate' => '.25',
      'type' => 'eu_vat',
    ),
    'eu_vat_dk_zero_00' => array(
      'title' => t('DK Zero'),
      'display_title' => t('0% VAT', array(), array(
        'context' => 'commerce_eu_vat_dk',
      )),
      'description' => t('Denmark Zero Rate VAT at 0%'),
      'rate' => '0',
      'type' => 'eu_vat',
    ),
  );
  return $items;
}