Normally you find out a sales invoice has been paid when the payment hits your bank account. You may get a Remittance Advice, but the easiest way to handle this is through Bank Matching.
Choose a TYPE of ‘Customer Receipt’ and match to the required Sales Invoice Number. This will do all the required postings: