...
You can specify multiple parameters in Payment document switching to Table Mode:
3) The Date and Time of Advance document should precede the invoice. Even a second difference in advance document will stop its availability in invoice document:
Functionality described above is applied to Accounts Payable and Accounts receivable.
...