avadev/AvaTax-REST-V2-JS-SDK

refundTransaction issue with dates

wingback opened this issue · 2 comments

Hi,

I have a question related to refundTransaction.
We are using this function with refundDate and useTaxDateOverride = true.

So result is that ReturnInvoice is created with both date and taxDate matching refundDate.
Our accounting expects that date is same as refundDate (when it is created and to be reported in that month) and taxDate to match a taxDate from the original SelesInvoice so rates are the same as on original document.

Is it possible to reach this dates to be different with refundTransaction or it should be done with createTransaction?

Using v 20.9.0

Please raise a request with our customer support team if this is still an issue, it is not related to the SDK

@wingback Here is some further info:
It is currently not possible to have taxDate differ from date/refundDate using the Refund Transaction API, so this is not an SDK issue. This would require a tax date tax override which is not possible using Refund Transaction because the create transaction request is built internally from the original transaction and there is no option to specify a second date (or to use the original transaction's taxDate). The workaround would be to use the createTransaction SDK and API manually with type ReturnInvoice and negative values for the line amounts and include a tax date tax override for the original date.