You can generate payment journal lines automatically based on an advance invoice.
Click Accounts payable> Journals> Payments> Payment journalto open the Payment 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 the 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.