Merge pull request #338 from dod-ccpo/make-ba-code-optional

Make BA code optional
This commit is contained in:
andrewdds 2018-09-27 13:34:56 -04:00 committed by GitHub
commit 0c828fde1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ class BaseFinancialForm(ValidatedForm):
ba_code = StringField( ba_code = StringField(
"Program Budget Activity (BA) Code", "Program Budget Activity (BA) Code",
description="BA Code is used to identify the purposes, projects, or types of activities financed by the appropriation fund. <br/><em>It should be two digits, followed by a letter.</em>", description="BA Code is used to identify the purposes, projects, or types of activities financed by the appropriation fund. <br/><em>It should be two digits, followed by an optional letter.</em>",
validators=[Required(), Regexp(BA_CODE_REGEX)], validators=[Required(), Regexp(BA_CODE_REGEX)],
) )

View File

@ -77,7 +77,7 @@ export default {
}, },
match: /[0-9]{2}\w?$/, match: /[0-9]{2}\w?$/,
unmask: [], unmask: [],
validationError: 'Please enter a valid BA Code. Note that it should be two digits, followed by a letter.' validationError: 'Please enter a valid BA Code. Note that it should be two digits, followed by an optional letter.'
}, },
workspaceName: { workspaceName: {
mask: false, mask: false,