The demonstration is as follows:
Customer 1 has an initial outstanding balance of $100
Customer 2 has an initial outstanding balance of $20.
we made new session in pos module in order to settle the listed invoices, we made a payment of 20 $ for Customer 1
and other payment for customer 2 where we paid the whole amount which is 20 $ after makeing all payment and closing the session with right counted money, we went to check the accounting report related to following transactions, the Balance for customer 1 and 2 in partner ledger is correct but when we shift to Aged receivable report we find that customer 2 balance Still 20 which is wrong and the payment that should settle this invoice is directed to customer 1, customer 1 balance in aged recevable is equal to 60. that invoice had 1 wrong extra payment which is belong to customer 2.
I checked this issue across multiple databases , the problem is the same.
There's a reply on LinkedIn(from Christophe Klopfert) saying that Odoo are aware of this bug and are addressing it.