Advance payment from customer

Hi,
I am recently using ERPnext. I have configured my COA with an advance account.

Current Liability - Receiveables.

  1. Payment entry - Received stand alone payment (Dr Bank, Cr Advance account)
  2. Ledgers are posted correctly
  3. Sales Invoice - When i click on Get advance payment I cannot see the payment to allocate. (What I observed is if i used Debtors account while receiving payment it does shows)
  4. if I posted the invoice without allocation and use payment reconcillation - Allocate the payment to invoice. it shows allocated. But the GL entries still shows balance in advance account and debtors account is unchanged.

Please provide some insight for my scenario.

Thank you.
Marcel