Why does the unpaid amount appear in the bill after the bill is cleared?

You can check whether or not the negative daily transaction of post reversed is included in the total transaction. If you need to clear the unpaid amount, you can generate a separate bill for the negative transaction, and then click reverse to refund to the customer.