The issue is that outstanding amount is being calculated with Grand Total as reference. Shouldn’t the Rounded Total be used as reference ? This is creating an issue where even after payment entry being submitted, the invoice is overdue because there has been no payment allocation for that fraction amount.
In this example, outstanding amount before the payment was Rs. 11,649.20. Now we get a cheque of Rs. 11649 and we create a payment entry and submit it with the sales invoice as reference.
After updation, the amount of Rs 0.20 is still unpaid and the invoice is unpaid whereas in the company is the customer has paid all dues but in system it is still overdue.