diff --git a/atst/forms/financial.py b/atst/forms/financial.py
index 6463f735..ad063613 100644
--- a/atst/forms/financial.py
+++ b/atst/forms/financial.py
@@ -113,7 +113,7 @@ class BaseFinancialForm(ValidatedForm):
treasury_code = StringField(
"Program Treasury Code",
- description="Program Treasury Code (or Appropriations Code) identifies resource types.
It should be a four digit or six digit number, prefixed by one or more zeros.",
+ description="Program Treasury Code (or Appropriations Code) identifies resource types.
It should be a four digit or six digit number, optionally prefixed by one or more zeros.",
validators=[Required(), Regexp(TREASURY_CODE_REGEX)]
)
diff --git a/js/lib/input_validations.js b/js/lib/input_validations.js
index 04b870ad..9ef234ff 100644
--- a/js/lib/input_validations.js
+++ b/js/lib/input_validations.js
@@ -64,10 +64,10 @@ export default {
validationError: 'Please enter a valid PE number. Note that it should be 7 digits followed by 1-3 letters, and should have a zero as the first and third digits.'
},
treasuryCode: {
- mask: createNumberMask({ prefix: '0', allowDecimal: false, allowLeadingZeroes: true, includeThousandsSeparator: false }),
+ mask: createNumberMask({ prefix: '', allowDecimal: false, allowLeadingZeroes: true, includeThousandsSeparator: false }),
match: /^0*([1-9]{4}|[1-9]{6})$/,
unmask: [],
- validationError: 'Please enter a valid Program Treasury Code. Note that it should be a four digit or six digit number, prefixed by one or more zeros.'
+ validationError: 'Please enter a valid Program Treasury Code. Note that it should be a four digit or six digit number, optionally prefixed by one or more zeros.'
},
baCode: {
mask: val => {