Impacted versions: 17.0
Steps to reproduce: Create one sale order and make the partial payment from POS and after that make a payment again and on that pop-up, it shows the total balance as the due balance
Current behavior: The due balance is incorrect when we do payment a second time
Expected behavior: It needs to be shown the correct due balance so the POS person can do the transaction of only due amount, not the total amount