Total amount in the payment field is displaying wrong values