taxjar/taxjar-magento2-extension

Refunds not synced in TaxJar

Closed this issue · 3 comments

Refunds are not synced into TaxJar when creditmemo is created.
When sales_order_save_after event is triggered on creditmemo creation in the observer SyncTransaction the order creditmemo collection is empty and refund is not synced to TaxJar.

@ilievski Are you on v0.7.4 or 0.7.5 of our extension?

The module is updated to 0.7.5 but still cannot commit refund sync due to empty creditmemos collection.
I think the problem comes from CreditmemoService class where event dispatch happens before transaction commit.

@ilievski Thank you for reporting this issue and I appreciate your patience. I'll release a fix shortly.