financial verification should create or find a Task Order for the request

This commit is contained in:
dandds
2018-08-22 13:00:23 -04:00
parent e3631da8ea
commit d66a496fbc
4 changed files with 61 additions and 30 deletions

View File

@@ -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]
)