You can generate payment journal lines automatically based on an advance invoice.
Click Accounts receivable> Journals> Payments> Payment journalto open the Journalform.
Create a new payment journal and click Lines.
In the Journal voucherform, click Payment proposal> Payment proposal from advance invoiceto open the Create payment proposal from advance invoicesform.
Click Selectto select advance invoices and click OK.
New prepayments will be linked automatically to advance invoices if the Link prepaymentsand the Change statuscheck boxes are selected in the Create payment proposal from advance invoicesform.