-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
reference_documents/checks/preferential_quota_order_numbers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
from reference_documents.checks.base import BasePreferentialQuotaOrderNumberCheck | ||
from reference_documents.models import AlignmentReportCheckStatus | ||
|
||
|
||
class OrderNumberExists(BasePreferentialQuotaOrderNumberCheck): | ||
def run_check(self): | ||
if not self.order_number(): | ||
message = f"order number not found" | ||
print("FAIL", message) | ||
return AlignmentReportCheckStatus.FAIL, message | ||
else: | ||
print(f"PASS - order number {self.order_number()} found") | ||
return AlignmentReportCheckStatus.PASS, "" |