A late document can create a reporting difference even when the amount and account are correct. Start by naming the report's date range and the posting date on the ledger entry. A document date, a payment due date, and a report ending date do different jobs.
The provided journals sit on opposite sides of a month boundary. Inspect their references before calculating the amount in each period. The simulator includes both report boundary dates and keeps historical opening balances separate from a period's movement. For a balance-sheet account you may need the accumulated balance, while an expense investigation often needs movement within a stated range. These tasks give the range explicitly. Don't move a valid transaction just to make a report resemble an expected total.