How to clear Account History once payment is received?

@croxtonfishbar this will then only show todays transactions.
What you probably want is booking entity/account as mentioned to you on your other thread.
On checkin a booking entity and account is created and associated with the room entity.
Charges are made to the booking and not the entity, this means you have a clean account per booking.
This also handles multi/different stay lengths without keep changing filters.
You would need to specify the stay dates not just day/week/months etc and also what happens if they charge extra breakfast or something before checkout, since filtering with time is not posible how would that work?
See this topic;

Also on there is some sugested tweeks for reporting your debtors ledger (room accounts)