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.
Comments
Comment #1
asauterChicago commentedComment #2
asauterChicago commentedComment #3
crasx commentedhere is a patch for it
Comment #4
crasx commentedComment #5
ericjenkins commentedPatch #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.
Comment #6
rszrama commentedSorry 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