Apply the credit to the invoice that should be reduced
Credit allocations connect a credit note with an invoice and store the amount applied.
A credit does not have to be treated as an all-or-nothing rewrite of the invoice. The allocated amount can reduce the balance that remains due.
