warning alert for manually entering task order info on financial form
This commit is contained in:
@@ -72,6 +72,10 @@ class BaseFinancialForm(ValidatedForm):
|
||||
valid = validate_pe_id(self.pe_id, existing_request)
|
||||
return valid
|
||||
|
||||
@property
|
||||
def is_missing_task_order_id(self):
|
||||
return False
|
||||
|
||||
task_order_id = StringField(
|
||||
"Task Order Number associated with this request",
|
||||
description="Include the original Task Order number (including the 000X at the end). Do not include any modification numbers. Note that there may be a lag between approving a task order and when it becomes available in our system.",
|
||||
@@ -127,6 +131,10 @@ class FinancialForm(BaseFinancialForm):
|
||||
except NotFoundError:
|
||||
raise ValidationError("Task Order number not found")
|
||||
|
||||
@property
|
||||
def is_missing_task_order_id(self):
|
||||
return "task_order_id" in self.errors
|
||||
|
||||
|
||||
class ExtendedFinancialForm(BaseFinancialForm):
|
||||
def validate(self, *args, **kwargs):
|
||||
|
Reference in New Issue
Block a user