diff --git a/tdrs-backend/tdpservice/parsers/schema_defs/tanf/t7.py b/tdrs-backend/tdpservice/parsers/schema_defs/tanf/t7.py index ab1129a83..4bfc45343 100644 --- a/tdrs-backend/tdpservice/parsers/schema_defs/tanf/t7.py +++ b/tdrs-backend/tdpservice/parsers/schema_defs/tanf/t7.py @@ -29,7 +29,7 @@ Field(item="3", name='CALENDAR_QUARTER', type='number', startIndex=2, endIndex=7, required=True, validators=[validators.dateYearIsLargerThan(1998), validators.quarterIsValid()]), - TransformField(calendar_quarter_to_rpt_month_year(i % 3), item="3A", name='RPT_MONTH_YEAR', type='number', + TransformField(calendar_quarter_to_rpt_month_year((i - 1) % 3), item="3A", name='RPT_MONTH_YEAR', type='number', startIndex=2, endIndex=7, required=True, validators=[validators.dateYearIsLargerThan(1998), validators.dateMonthIsValid()]), Field(item="4", name='TDRS_SECTION_IND', type='string', startIndex=section_ind_index, diff --git a/tdrs-backend/tdpservice/parsers/test/test_parse.py b/tdrs-backend/tdpservice/parsers/test/test_parse.py index f52ffc64d..9c785f79f 100644 --- a/tdrs-backend/tdpservice/parsers/test/test_parse.py +++ b/tdrs-backend/tdpservice/parsers/test/test_parse.py @@ -854,8 +854,8 @@ def test_parse_tanf_section4_file(tanf_section4_file): first = t7_objs.first() sixth = t7_objs[5] - assert first.RPT_MONTH_YEAR == 202012 - assert sixth.RPT_MONTH_YEAR == 202010 + assert first.RPT_MONTH_YEAR == 202011 + assert sixth.RPT_MONTH_YEAR == 202012 assert first.TDRS_SECTION_IND == '2' assert sixth.TDRS_SECTION_IND == '2'