It is working fine most of the time, but sometimes it throws error This document status is incorrect for this operation. When we retry, it passed. I assumed this document means the original sales invoice, so we get some info about it when the error occurs.
The original sales invoice status: 1, type: 1, lock: false.
Can you help me address or understand the issue?
Our SDK version is 23.7.0
We are using
refundTransaction
to create a ReturnInvoice representing a refund for a previously created SalesInvoice. Code snippetIt is working fine most of the time, but sometimes it throws error
This document status is incorrect for this operation
. When we retry, it passed. I assumed this document means the original sales invoice, so we get some info about it when the error occurs. The original sales invoicestatus: 1
,type: 1
,lock: false
. Can you help me address or understand the issue? Our SDK version is23.7.0