Skip to content

Commit

Permalink
Merge pull request #1341 from Puli-shilpa/Dev-2.0
Browse files Browse the repository at this point in the history
added owner details in additionaldetails
  • Loading branch information
sriranjan-s authored Sep 10, 2024
2 parents 93f64fd + aa9e13c commit 62a904f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/micro-ui/web/micro-ui-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"packages/modules/commonPt",
"packages/modules/dss",
"packages/modules/pt",
"packages/modules/tl"
"packages/modules/tl",
"packages/modules/obps"
],
"author": "Abhinav Kushwaha <[email protected]>",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@ const OwnerDetails = ({ t, config, onSelect, userType, formData }) => {
let parsedArchitectName = nameOfAchitect ? JSON.parse(nameOfAchitect) : "ARCHITECT";
payload.additionalDetails.typeOfArchitect = parsedArchitectName;
payload.additionalDetails.stakeholderName=JSON.parse(sessionStorage.getItem("BPA_STAKEHOLDER_NAME"))
payload.additionalDetails.ownersWithAddress= conversionOwners.map(owner=> {
let landmark=formData?.address?.landmark.length!==0 ? formData?.address?.doorNo : "NA";
let street=formData?.address?.street.length!==0 ? formData?.address?.street : "NA";
let pincode=formData?.address?.pincode!==undefined && formData?.address?.pincode.length!==0? formData?.address?.pincode :"NA";
return `${owner.name} (${street}, ${landmark}, ${formData?.address?.city?.city?.name}, ${formData?.address?.locality.name}, ${pincode})`
}).join("; ");
payload.additionalDetails.stakeholderRegistrationNumber=JSON.parse(sessionStorage.getItem("BPA_STAKEHOLDER_REGISTRATION_NUMBER"));
payload.additionalDetails.stakeholderAddress=JSON.parse(sessionStorage.getItem("BPA_STAKEHOLDER_ADDRESS"))
let isSelfCertificationRequired=sessionStorage.getItem("isSelfCertificationRequired");
Expand Down
3 changes: 2 additions & 1 deletion frontend/micro-ui/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"micro-ui-internals/packages/modules/commonPt",
"micro-ui-internals/packages/modules/dss",
"micro-ui-internals/packages/modules/pt",
"micro-ui-internals/packages/modules/tl"
"micro-ui-internals/packages/modules/tl",
"micro-ui-internals/packages/modules/obps"

],
"engines": {
Expand Down

0 comments on commit 62a904f

Please sign in to comment.