Hello @zyla67,
If the Error Trace indicates the following “DocStatus is invalid for this operation. Expected Saved|PostedExpected Saved|Posted”
Cause / Solution: The reason taxes are not calculating on these documents are because the document reference ID derived through the numbering sequence have been used previously and marked in Avalara portal as "committed".
It is possible that these documents may have been created for testing and then deleted in Acumatica or this document may have been created in a different Tenant for the same Avalara credentials.
This can be resolved by manually increasing the "last number" from the "ARINVOICE" numbering sequence so that a different reference ID will be used for the Invoice
Example from my local Instance:
)/Frames/GetFile.ashx?fileID=1a707128-456d-4362-9ac1-e50e71e16fd4)
Kind Regards,
Amaan