def update_reportnumbers(self):
report_037_fields = record_get_field_instances(self.record, '<STR_LIT>')<EOL>for field in report_037_fields:<EOL><INDENT>subs = field_get_subfields(field)<EOL>for val in subs.get("<STR_LIT:a>", []):<EOL><INDENT>if "<STR_LIT>" not in val:<EOL><INDENT>record_delete_field(self.record,<EOL>tag="<STR_LIT>",<EOL>field_position_global=field[<NUM_LIT:4>])<EOL>new_subs = [(code, val[<NUM_LIT:0>]) for code, val in subs.items()]<EOL>record_add_field(self.record, "<STR_LIT>", subfields=new_subs)<EOL>break<EOL><DEDENT><DEDENT><DEDENT>
Update reportnumbers.