I had a bug report where the tax label was missing from the confirmation email being sent out from commerce (screenshot):

http://i.imgur.com/5Eqgmwq.png

The highlighted line shows the missing "Sales Tax" label. The reason for this is when you create the entity you do not include a line_item_label for the line item entity creation in commerce_exactor_calc.module, starting on line 97:

 // Create the new line item.
 //Bad/missing label will result in missing information on the email: 
  $line_item = entity_create('commerce_line_item', array(
    'type' => 'exactor_calc',
    'order_id' => $order_id,
    'quantity' => 1,
    'data' => $data,
  ));

Where this should be:

 // Create the new line item.
//Good, will print label in emails correctly: 
  $line_item = entity_create('commerce_line_item', array(
    'type' => 'exactor_calc',
    'order_id' => $order_id,
    'line_item_label' => t('Sales Tax'),
    'quantity' => 1,
    'data' => $data,
  ));

I don't have time to patch it, but I would appreciate if someone would so it can be included in the next release.

CommentFileSizeAuthor
#5 2337663_5.patch604 bytesericjenkins
#3 2337663_3.patch681 bytescrasx

Comments

asauterChicago’s picture

Issue summary: View changes
asauterChicago’s picture

Issue summary: View changes
crasx’s picture

StatusFileSize
new681 bytes

here is a patch for it

crasx’s picture

Status: Active » Needs review
ericjenkins’s picture

StatusFileSize
new604 bytes

Patch #3 used key 'name' instead of key 'line_item_label' as described by asauterChicago. It also included a second key-value pair not mentioned by asauterChicago, which appeared to be unnecessary. Attached is an updated patch file.

rszrama’s picture

Status: Needs review » Closed (won't fix)

Sorry for lack of follow-up here, but given Exactor is closing post-acquisition, we will not be working on this module any further and recommend switching to Avatax. More information in the following thread as we get it: #2932685: Exactor is closing; info for switching to Avatax