Sales minus returns
By sales value in this period
Latest invoices with a remaining amount
Whatever is not refunded now is deducted from the remaining balance of the invoice.
Quantities are added through purchases and stocktakes only, so every change has a history.