Open devinsays opened 1 month ago
Hello,
Thank you for reaching out to us!
Have you also had a look at the 'taxjar_should_sync_order' filter?
Here are some references: https://github.com/taxjar/taxjar-woocommerce-plugin/blob/master/includes/abstract-class-taxjar-record.php#L175 https://github.com/taxjar/taxjar-woocommerce-plugin/blob/master/includes/class-wc-taxjar-transaction-sync.php#L232
We'd like to prevent TaxJar sync for any orders created more than 180 days ago. We're making this work by using the
taxjar_order_sync_data
filter, but it would be great to have a filter directly on theshould_sync
method.Here's the code workaround we implemented to better explain the use case: