If you have applied the payment against these invoices then go to customer ledger entry and unapplied the entries against payment. and after this invoice will be open again and then you can apply payment against the correct invoice.
↧