If customer made partial payment on Rental#3 = 800 (Balance=700).
System will compare the received amount (i.e. 1500 1000) with the gross rental amount of Rental#3 4 (minimum fully unpaid Rental). If amount match, system will settle Rental#3 = 700 and settle Rental#4 = 800 300 (Balance=200 700).