Update cost fields in template.