You are here

function commerce_avatax_company_code in Drupal Commerce Connector for AvaTax 7.5

Returns the site-wide AvaTax company code for a given API mode.

4 calls to commerce_avatax_company_code()
commerce_avatax_calculate_tax in ./commerce_avatax.module
Performs Tax calculation for a given order.
commerce_avatax_commerce_payment_order_paid_in_full in ./commerce_avatax.module
Implements hook_commerce_payment_order_paid_in_full().
commerce_avatax_create_transaction in includes/commerce_avatax.calc.inc
Prepares the transaction request array to be sent to AvaTax.
commerce_avatax_order_admin_form_access in ./commerce_avatax.module
Access callback: determines access to the "Calculate Tax" local action.

File

./commerce_avatax.module, line 169
AvaTax service integration from Avalara, Inc.

Code

function commerce_avatax_company_code() {
  return variable_get(COMMERCE_AVATAX_VAR_PREFIX . commerce_avatax_api_mode() . '_' . COMMERCE_AVATAX_COMPANY_CODE, '');
}