-
+ {/*
*/}
@@ -659,6 +667,9 @@ function selectfile(e) {
//disable={editScreen}
{...{ required: true, pattern: /^[0-9]*$/ }}
/>
+ {parseInt(otherCharges)>0?
+ (
+
{t("BPA_COMMON_OTHER_AMT_DISCRIPTION")}
):null
+ }
{t("BPA_COMMON_LESS_AMT")}
- {t("BPA_COMMON_LESS_AMT_FILE")}
- 0 ?(
+
+ {t("BPA_COMMON_LESS_AMT_FILE")}
+
- {docLessAdjustment?.fileStoreIds?.length &&
+
+ ):null
+ }
+ {(docLessAdjustment?.fileStoreIds?.length && parseInt(value?.additionalDetails?.selfCertificationCharges?.BPA_LESS_ADJUSMENT_PLOT)>0) &&
{t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")}
}
- {docLessAdjustment?.fileStoreIds?.length &&
+ {(docLessAdjustment?.fileStoreIds?.length && parseInt(value?.additionalDetails?.selfCertificationCharges?.BPA_LESS_ADJUSMENT_PLOT)>0) &&
@@ -774,7 +791,7 @@ function selectfile(e) {
{/* {t("BPA_COMMON_TOTAL_AMT")}
₹ {paymentDetails?.Bill?.[0]?.billDetails[0]?.amount || "0"} */}
-
+
);
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/Modal/BPAActionModal.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/Modal/BPAActionModal.js
index 1cde02386d1..1ea8387576a 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/Modal/BPAActionModal.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/Modal/BPAActionModal.js
@@ -24,6 +24,8 @@ const CloseBtn = (props) => {
};
const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction, actionData, applicationDetails, applicationData, businessService, moduleCode,workflowDetails,blockReason }) => {
+ console.log("applicationData",applicationData)
+ console.log("workflowDetails",workflowDetails)
const mutation1 = Digit.Hooks.obps.useObpsAPI(
applicationData?.landInfo?.address?.city ? applicationData?.landInfo?.address?.city : tenantId,
false
@@ -181,8 +183,8 @@ const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction,
action: action?.action,
comment: data?.comments?.length > 0 ? data?.comments : null,
comments: data?.comments?.length > 0 ? data?.comments : null,
- assignee: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
- assignes: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
+ assignee: (workflowDetails?.data?.processInstances?.[0]?.state?.applicationStatus==="FIELDINSPECTION_INPROGRESS")? [workflowDetails?.data?.processInstances?.[0]?.assigner?.uuid]: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
+ assignes: (workflowDetails?.data?.processInstances?.[0]?.state?.applicationStatus==="FIELDINSPECTION_INPROGRESS")? [workflowDetails?.data?.processInstances?.[0]?.assigner?.uuid]: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
varificationDocuments: uploadedFile
? [
{
@@ -195,7 +197,7 @@ const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction,
},
action: action?.action,
comment: data?.comments,
- assignee: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
+ assignee: (workflowDetails?.data?.processInstances?.[0]?.state?.applicationStatus==="FIELDINSPECTION_INPROGRESS")? [workflowDetails?.data?.processInstances?.[0]?.assigner?.uuid]: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
wfDocuments: uploadedFile
? [
{
@@ -205,19 +207,16 @@ const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction,
},
]
: null,
- };
- if (!sessionStorage.getItem("development") || !sessionStorage.getItem("otherCharges") || !sessionStorage.getItem("lessAdjusment") ){
- closeModal()
- alert(t("Please fill P2 Manual Fees"));}
- else if(parseInt(sessionStorage.getItem("lessAdjusment"))>(parseInt(sessionStorage.getItem("development"))+parseInt(sessionStorage.getItem("otherCharges"))+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_MALBA_CHARGES)+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_LABOUR_CESS)+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_WATER_CHARGES)+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_GAUSHALA_CHARGES_CESS))){
+ };
+ if(parseInt(sessionStorage.getItem("lessAdjusment"))>(parseInt(sessionStorage.getItem("development"))+parseInt(sessionStorage.getItem("otherCharges"))+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_MALBA_CHARGES)+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_LABOUR_CESS)+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_WATER_CHARGES)+parseInt(applicationData?.additionalDetails?.selfCertificationCharges?.BPA_GAUSHALA_CHARGES_CESS))){
closeModal()
alert(t("Enterd Less Adjustment amount is invalid"));
}
else{
- applicationData.additionalDetails.selfCertificationCharges.BPA_DEVELOPMENT_CHARGES=sessionStorage.getItem("development");
- applicationData.additionalDetails.selfCertificationCharges.BPA_OTHER_CHARGES=sessionStorage.getItem("otherCharges");
- applicationData.additionalDetails.selfCertificationCharges.BPA_LESS_ADJUSMENT_PLOT=sessionStorage.getItem("lessAdjusment");
- applicationData.additionalDetails.otherFeesDiscription=sessionStorage.getItem("otherChargesDisc");
+ applicationData.additionalDetails.selfCertificationCharges.BPA_DEVELOPMENT_CHARGES=sessionStorage.getItem("development") || "0";
+ applicationData.additionalDetails.selfCertificationCharges.BPA_OTHER_CHARGES=sessionStorage.getItem("otherCharges")|| "0";
+ applicationData.additionalDetails.selfCertificationCharges.BPA_LESS_ADJUSMENT_PLOT=sessionStorage.getItem("lessAdjusment" )|| "0";
+ applicationData.additionalDetails.otherFeesDiscription=sessionStorage.getItem("otherChargesDisc" || "NA");
applicationData.additionalDetails.lessAdjustmentFeeFiles=JSON.parse(sessionStorage.getItem("uploadedFileLess"));
const nocDetails = applicationDetails?.nocData?.map(noc => {
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ScruntinyDetails.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ScruntinyDetails.js
index c0a33e10e63..c0ce2a559ba 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ScruntinyDetails.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ScruntinyDetails.js
@@ -216,7 +216,7 @@ function selectfile(e) {
isMandatory={false}
optionKey="i18nKey"
name="development"
- defaultValue={additionalDetails?.selfCertificationCharges?.BPA_DEVELOPMENT_CHARGES || ""}
+ defaultValue={additionalDetails?.selfCertificationCharges?.BPA_DEVELOPMENT_CHARGES || 0}
value={development}
disabled={!isEditApplication}
onChange={(e) => {setDevelopmentVal(e.target.value)}}
@@ -229,13 +229,15 @@ function selectfile(e) {
isMandatory={false}
optionKey="i18nKey"
name="otherCharges"
- defaultValue={additionalDetails?.selfCertificationCharges?.BPA_OTHER_CHARGES || ""}
+ defaultValue={additionalDetails?.selfCertificationCharges?.BPA_OTHER_CHARGES || 0}
value={otherCharges}
disabled={!isEditApplication}
onChange={(e) => {setOtherChargesVal(e.target.value)}}
{...{ required: true, pattern: "^[0-9]*$", type: "text" }}
/>
- {t("BPA_COMMON_OTHER_AMT_DISCRIPTION")}
+ {parseInt(otherCharges)>0?(
+
+ {t("BPA_COMMON_OTHER_AMT_DISCRIPTION")}
+ ):null}
{t("BPA_COMMON_LESS_AMT")}
{setLessAdjusmentVal(e.target.value)}}
{...{ required: true, pattern: "^[0-9]*$", type: "text" }}
/>
+ {(parseInt(lessAdjusment)>0 && isEditApplication) ?(
+
{t("BPA_COMMON_LESS_AMT_FILE")}
- {docLessAdjustment?.fileStoreIds?.length &&
+
):null}
+ {(docLessAdjustment?.fileStoreIds?.length && parseInt(additionalDetails?.selfCertificationCharges?.BPA_LESS_ADJUSMENT_PLOT)>0) &&
{t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")}
}
- {docLessAdjustment?.fileStoreIds?.length &&
+ {(docLessAdjustment?.fileStoreIds?.length && parseInt(additionalDetails?.selfCertificationCharges?.BPA_LESS_ADJUSMENT_PLOT)>0)&&
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/index.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/index.js
index 9805e03388a..8cad4158d84 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/index.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/index.js
@@ -214,14 +214,13 @@ const ApplicationDetails = (props) => {
"comments": null,
"varificationDocuments": null
}
- bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_DEVELOPMENT_CHARGES=sessionStorage.getItem("development");
- bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_OTHER_CHARGES=sessionStorage.getItem("otherCharges");
- bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_LESS_ADJUSMENT_PLOT=sessionStorage.getItem("lessAdjusment");
- bpaDetails.BPA.additionalDetails.otherFeesDiscription=sessionStorage.getItem("otherChargesDisc");
+ bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_DEVELOPMENT_CHARGES=sessionStorage.getItem("development") || "0";
+ bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_OTHER_CHARGES=sessionStorage.getItem("otherCharges") ||"0";
+ bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_LESS_ADJUSMENT_PLOT=sessionStorage.getItem("lessAdjusment")|| "0";
+ bpaDetails.BPA.additionalDetails.otherFeesDiscription=sessionStorage.getItem("otherChargesDisc"|| "NA");
bpaDetails.BPA.additionalDetails.lessAdjustmentFeeFiles=JSON.parse(sessionStorage.getItem("uploadedFileLess"));
- if (!bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_DEVELOPMENT_CHARGES || !bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_OTHER_CHARGES || !bpaDetails.BPA.additionalDetails.selfCertificationCharges.BPA_LESS_ADJUSMENT_PLOT ){
- alert(t("Please fill P2 Manual Fees"));}
- else if(parseInt(sessionStorage.getItem("lessAdjusment"))>(parseInt(sessionStorage.getItem("development"))+parseInt(sessionStorage.getItem("otherCharges"))+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_MALBA_CHARGES)+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_LABOUR_CESS)+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_WATER_CHARGES)+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_GAUSHALA_CHARGES_CESS))){
+
+ if(parseInt(sessionStorage.getItem("lessAdjusment"))>(parseInt(sessionStorage.getItem("development"))+parseInt(sessionStorage.getItem("otherCharges"))+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_MALBA_CHARGES)+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_LABOUR_CESS)+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_WATER_CHARGES)+parseInt(bpaDetails?.BPA?.additionalDetails?.selfCertificationCharges?.BPA_GAUSHALA_CHARGES_CESS))){
alert(t("Enterd Less Adjustment amount is invalid"));
}
else{