This is a Key Topic, with high value for all users.
...
Note: You must have the the Advance Payment/Receipt Allocations Module Right selected, under Transactions in Financials. To allocate an advance payment, a clearance account must be set up in the Chart of Accounts.
Allocating Advance Payments or Receipts to Invoices
...