You are here

function commerce_tax_ui_install in Commerce Core 7

Implements hook_install().

File

modules/tax/commerce_tax_ui.install, line 6

Code

function commerce_tax_ui_install() {

  // Create the basic sales tax type.
  $tax_type = commerce_tax_ui_tax_type_new();
  $tax_type['name'] = 'sales_tax';
  $tax_type['title'] = t('Sales tax');
  $tax_type['display_title'] = t('Sales tax');
  $tax_type['description'] = t('A basic type for taxes that do not display inclusive with product prices.');
  commerce_tax_ui_tax_type_save($tax_type);

  // Create the basic VAT type.
  $tax_type = commerce_tax_ui_tax_type_new();
  $tax_type['name'] = 'vat';
  $tax_type['title'] = t('VAT');
  $tax_type['display_title'] = t('VAT');
  $tax_type['description'] = t('A basic type for taxes that display inclusive with product prices.');
  $tax_type['display_inclusive'] = TRUE;
  $tax_type['round_mode'] = COMMERCE_ROUND_HALF_UP;
  commerce_tax_ui_tax_type_save($tax_type);
}