Remaining
The Remaining field is calculated as Balance - (Payment + Discount + Write Off), and will be updated whenever the values in the Payment, Discount or Write Off fields are changed.