...
The AP/AR account from the vendor's Address Book entry is used allocating Advance Payments and Receipts. If it is not specified, the AP/AR account from the Accounts Periods form is used.
To allocate Advance Payments or Receipts to outstanding invoices, use the Advance Payment/Receipt Allocations form. Allocating an Advance Payment (but not an Advance Receipt) to an invoice selects the Final check box on this form.
...