Skip to content

Commit

Permalink
development charges field limited to enter upto 9 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
Puli-shilpa committed Sep 11, 2024
1 parent bca1999 commit 323108d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ setWaterCharges(Malbafees/2)
}
}
function setDevelopmentVal(value) {
if(/^\d{0,10}$/.test(value)){
if(/^\d{0,9}$/.test(value)){
setDevelopment(value);
sessionStorage.setItem("development",value)
}
else{
alert(t("Please enter numbers"))
alert(t("Please enter only upto 9 numbers"))
}
}
function setLessAdjusmentVal(value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const ScruntinyDetails = ({ scrutinyDetails, paymentsList=[],additionalDetails,a
}
}
function setDevelopmentVal(value) {
if(/^\d{0,10}$/.test(value)){
if(/^\d{0,9}$/.test(value)){
setDevelopment(value);
sessionStorage.setItem("development",value)
}
Expand Down

0 comments on commit 323108d

Please sign in to comment.