Skip to content

Commit fe58da9

Browse files
authored
Merge pull request #299 from dinesh-aot/COMP-394
Comp 394
2 parents 15b8427 + e3b51c4 commit fe58da9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

compliance-api/src/compliance_api/services/inspection_record/inspection_record_builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ def build_finding_statement(self):
268268

269269
def build_enforcement_summary(self):
270270
"""Build the enforcement summary for the inspection record."""
271+
if self.existing_ir is not None and self.existing_ir.ir_status == self.ir_status:
272+
self.data["enforcement_summary"] = self.existing_ir.enforcement_summary
273+
return self
271274
if self.ir_status == IRStatusEnum.PRELIMINARY.value:
272275
self.data["enforcement_summary"] = None
273276
# Order needs to be checked and returned from here

compliance-api/src/compliance_api/services/inspection_record/ir_template_constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
may be referred to a decision maker for consideration of an Administrative Penalty.</span>""",
7979
"AGENCY": """<span>{{ number }} of {{ req_source_name }} of {{ eac }} was refered to {{ agency_name }}.
8080
See Requirement {{ req_sort_order }} for further information</span>""",
81-
"DEFAULT": """<span>The EAO CED may inspect to determine if {{ project_name }} has been brought into compliance with these
81+
"DEFAULT": """<span>The EAO CEB may inspect to determine if {{ project_name }} has been brought into compliance with these
8282
requirements. Continued non-compliance with these requirements may result in additional enforcement
8383
under the {{ act }} </span>""",
8484
}

0 commit comments

Comments
 (0)