Numbering
SendInvoiceNumber as "Next" to generate it automatically from the SATİADEFATNO number series (this invoice type does not use the e-Invoice numbering). "Next" cannot be sent on update, and InvoiceNumber must be unique in the company among sales return invoices.
Stock movement
Every line’s stock movement is inbound for a sales return invoice (the customer sends goods back, so stock increases), soLots/SerialNumbers follow the inbound rules (each Lot entry creates a new lot, each serial number registers a new one).
Customer ledger
A sales return invoice’s customer ledger entry is a credit (it reverses the debit a sales invoice would have created). If it has already been closed by a payment, the invoice’s customer, amount and currency can no longer be changed, and the invoice cannot be deleted (3015).