• How to prevent the increment of NextInvoiceNumber when the document number is manually set?

    Hi all, I have a situation where I need to set the document number of Sales Order Invoice programmatically and its a success. But the problem is, the NextInvoiceNumber keep incrementing even though it is not used for document number. This is my setting…