Advance payments in sales invoice

hello there .
after clicking in get advance received , the program does show all advances received but do not allocate the amount needed automatically (version 12). in version 13 it works just fine .
example . I got advance of 2000$ . then created sales invoice of 1000$ , after getting advance received it should allocate 1000 automatically. but it does not . how to change this behavior ?