Allocating a credit note against an invoice