Refund from a supplier to apply to all previous invoices

On review of other topics it seems that the answer is as in “Overpayment, tagging cash return” Overpayment, tagging cash return

Is this correct?