Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

If error occurs after invoice/credit memo is sent to AvaTax, records will be sent multiple times #24

Closed
erikhansen opened this issue Jul 9, 2016 · 1 comment

Comments

@erikhansen
Copy link
Contributor

Issue explanation

If an invoice/credit memo is sent to AvaTax via the AvaTax Queue, but in the process of the queue being processed, an error occurs, the queued item will stay in a "processing" and will be sent to AvaTax multiple times. This results in a invoices or credit memos being recorded multiple times.

For example, if a credit memo is sent to AvaTax but then the process can't save the credit memo, and exception will be thrown and the queued item will stay as "processing".

Solution

If an exception occurs and the record has already been sent to AvaTax, immediately change the status to "failed" so that it will not be attempted to send again.

@erikhansen
Copy link
Contributor Author

I've implemented a solution to fix this issue. Here is a screenshot demonstrating an example error message when a record fails after being sent to AvaTax:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant