I have a SQL query that shows us the opening balances, sales, incoming payments and balance by customer, this report shows the details for the upcurrent moment, the problem