I'm using custom statuses for my orders.
These orders already created with status 'pending', so on hook_entity_update tax doesn't add to commerce_reports_tax table, because status and commerce_order_total values not changed, check commerce_reports_tax_entity_update function.

Comments

skdrupal88’s picture

Status: Active » Needs review
StatusFileSize
new609 bytes

I added hook_entity_insert(), where tax will be calculated for orders with given statuses.

skdrupal88’s picture

Attached patch will work with my patch in https://www.drupal.org/node/2380219

mglaman’s picture

Marking this under the beta2 release plan #2425267: [META] 4.0 Beta2 Release Plan

  • mglaman committed 0b32775 on 7.x-4.x authored by korgik
    Issue #2380227 by korgik: Tax reports - Insert tax for custom statuses
    
mglaman’s picture

Status: Needs review » Fixed

Thanks for catching this, can't believe I left that empty in the submodule overhaul :(

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

The last submitted patch, 1: commerce_reports-tax_insert_for_statuses-2380227-1.patch, failed testing.

Status: Closed (fixed) » Needs work

The last submitted patch, 2: commerce_reports-tax_insert_for_statuses-2380227-2.patch, failed testing.

mglaman’s picture

Status: Needs work » Closed (fixed)

Moving on.