You need to find the "advance sales" account that you want to close in the statistics/advanced sales option, click on the three dots to the right of the selected account and select the "Finish" option. An empty window for creating a "sales" account opens, you select the items you sold with previous advance payments and the total price of that item. The device withdraws the client from the "advance sales" account that you are closing, and it is enough just to choose the appropriate payment method.