function commerce_avatax_commerce_price_component_type_info in Drupal Commerce Connector for AvaTax 7.5
Same name and namespace in other branches
- 7.3 commerce_avatax.module \commerce_avatax_commerce_price_component_type_info()
- 7.4 commerce_avatax.module \commerce_avatax_commerce_price_component_type_info()
Implements hook_commerce_price_component_type_info().
File
- ./
commerce_avatax.module, line 256 - AvaTax service integration from Avalara, Inc.
Code
function commerce_avatax_commerce_price_component_type_info() {
$components = array();
// Define a generic AvaTax price component type.
$components['avatax_sales_tax'] = array(
'title' => t('AvaTax sales tax'),
'display_title' => t('Sales tax'),
'weight' => 25,
);
// Define a price component for VAT.
$components['avatax_vat'] = array(
'title' => t('AvaTax VAT'),
'display_title' => t('VAT'),
'weight' => 25,
);
return $components;
}