Fix getting payment total in index view

Use proper method instead of assigning new values to the existing object fields.