What happens when a remittance advice arrives before its receipt?

The remittance record is retained and evaluated for matching when the corresponding receipt becomes available.

See Configure Automatic Remittance-to-Receipt Matching for more details.