financial verification should create or find a Task Order for the request
This commit is contained in:
@@ -68,6 +68,13 @@ def validate_task_order_number(field):
|
||||
return True
|
||||
|
||||
|
||||
def formatted_number_to_int(num):
|
||||
if not num:
|
||||
return
|
||||
else:
|
||||
return int(num.replace(",",""))
|
||||
|
||||
|
||||
class BaseFinancialForm(ValidatedForm):
|
||||
def reset(self):
|
||||
"""
|
||||
@@ -163,35 +170,41 @@ class ExtendedFinancialForm(BaseFinancialForm):
|
||||
clin_0001 = StringField(
|
||||
"<dl><dt>CLIN 0001</dt> - <dd>Unclassified IaaS and PaaS Amount</dd></dl>",
|
||||
validators=[Required()],
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here"
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here",
|
||||
filters=[formatted_number_to_int]
|
||||
)
|
||||
|
||||
clin_0003 = StringField(
|
||||
"<dl><dt>CLIN 0003</dt> - <dd>Unclassified Cloud Support Package</dd></dl>",
|
||||
validators=[Required()],
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here"
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here",
|
||||
filters=[formatted_number_to_int]
|
||||
)
|
||||
|
||||
clin_1001 = StringField(
|
||||
"<dl><dt>CLIN 1001</dt> - <dd>Unclassified IaaS and PaaS Amount <br> OPTION PERIOD 1</dd></dl>",
|
||||
validators=[Required()],
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here"
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here",
|
||||
filters=[formatted_number_to_int]
|
||||
)
|
||||
|
||||
clin_1003 = StringField(
|
||||
"<dl><dt>CLIN 1003</dt> - <dd>Unclassified Cloud Support Package <br> OPTION PERIOD 1</dd></dl>",
|
||||
validators=[Required()],
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here"
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here",
|
||||
filters=[formatted_number_to_int]
|
||||
)
|
||||
|
||||
clin_2001 = StringField(
|
||||
"<dl><dt>CLIN 2001</dt> - <dd>Unclassified IaaS and PaaS Amount <br> OPTION PERIOD 2</dd></dl>",
|
||||
validators=[Required()],
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here"
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here",
|
||||
filters=[formatted_number_to_int]
|
||||
)
|
||||
|
||||
clin_2003 = StringField(
|
||||
"<dl><dt>CLIN 2003</dt> - <dd>Unclassified Cloud Support Package <br> OPTION PERIOD 2</dd></dl>",
|
||||
validators=[Required()],
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here"
|
||||
description="Review your task order document, the amounts for each CLIN must match exactly here",
|
||||
filters=[formatted_number_to_int]
|
||||
)
|
||||
|
Reference in New Issue
Block a user