You are here

commerce_eu_vat_hr.module in Commerce European Union VAT 7.2

Code for the Commerce EU VAT GB feature.

File

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

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

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

/**
 * Implements hook_commerce_vat_rate_info().
 */
function commerce_eu_vat_hr_commerce_vat_rate_info() {
  $items = array(
    'hr_reduced' => array(
      'country' => 'HR',
      'eu' => TRUE,
      'title' => t('HR Reduced'),
      'rates' => array(
        '13_2014' => array(
          'name' => '13_2013',
          'rate' => 0.13,
          'start' => '20140101',
        ),
        '10_2013' => array(
          'name' => '10_2013',
          'rate' => 0.1,
          'start' => '20130701',
        ),
      ),
    ),
    'hr_standard' => array(
      'country' => 'HR',
      'eu' => TRUE,
      'title' => t('HR Standard'),
      'rates' => array(
        '25_2013' => array(
          'name' => '25_2013',
          'rate' => 0.25,
          'start' => '20130701',
        ),
      ),
    ),
    'hr_super_reduced' => array(
      'country' => 'HR',
      'eu' => TRUE,
      'title' => t('HR Super Reduced'),
      'rates' => array(
        '05_2014' => array(
          'name' => '05_2014',
          'rate' => 0.05,
          'start' => '20140101',
        ),
      ),
    ),
    'hr_zero' => array(
      'country' => 'HR',
      'eu' => TRUE,
      'title' => t('HR Zero'),
      'rates' => array(
        '00_2013' => array(
          'name' => '00_2013',
          'rate' => 0,
          'start' => '20130701',
        ),
      ),
    ),
  );
  return $items;
}