You are here

function commerce_avatax_line_item_title in Drupal Commerce Connector for AvaTax 7.4

Same name and namespace in other branches
  1. 7.5 commerce_avatax.module \commerce_avatax_line_item_title()
  2. 7.3 commerce_avatax.module \commerce_avatax_line_item_title()

Returns the title of an AvaTax line item.

File

./commerce_avatax.module, line 103
Calculate Sales Tax using AvaTax service from Avalara, Inc.

Code

function commerce_avatax_line_item_title($line_item) {
  if (!empty($line_item->data['avatax']['display_title'])) {
    return $line_item->data['avatax']['display_title'];
  }
}