Fixing total_amount was not being saved.