FEAT_RFQ_NONEB_PRE_FINAL

This commit is contained in:
Srinivas-Saravanan 2025-03-22 09:59:59 +05:30
parent 89db5cf085
commit bb4c562b98
2 changed files with 22 additions and 12 deletions

View File

@ -667,6 +667,16 @@
</div>
</div>
<div class = "form-group col-md-3 burglary">
<input name = "loss_in_3_years[]" type="checkbox" class="form-check-input burglary" id="lossIN3Years_${increment2}">
<label class="form-check-label burglary" for="lossIN3Years_${increment2}">Any Loss in last 3 Years</label>
</div>
<div class = "form-group col-md-3 burglary">
<input name = "buisnness_interuption[]" type="checkbox" class="form-check-input burglary" id="buisnnessInteruption_${increment2}">
<label class="form-check-label burglary" for="buisnnessInteruption_${increment2}">Buisness Interuption</label>
</div>
<div class = "form-group col-md-3 burglary">
<label for="firstLossPercent_${increment2}">First Loss %<span class="text-danger">*</span></label>
<select required id="firstLossPercent_${increment2}" name="first_loss_percent[]" class="form-control burglary">
@ -677,15 +687,6 @@
<option value="50">50 %</option>
</select>
</div>
<div class = "form-group col-md-3 burglary">
<input name = "loss_in_3_years[]" type="checkbox" class="form-check-input burglary" id="lossIN3Years_${increment2}">
<label class="form-check-label burglary" for="lossIN3Years_${increment2}">Any Loss in last 3 Years</label>
</div>
<div class = "form-group col-md-3 burglary">
<input name = "buisnness_interuption[]" type="checkbox" class="form-check-input burglary" id="buisnnessInteruption_${increment2}">
<label class="form-check-label burglary" for="buisnnessInteruption_${increment2}">Buisness Interuption</label>
</div>
<div class="form-group col-md-3 burglary">
<label for="annualGrossProfit_${increment2}">Annual Gross Profit<span class="text-danger">*</span></label>
<input type="text" id="annualGrossProfit_${increment2}" name="annual_gross_profit[]" class="form-control burglary" required/>

View File

@ -1501,7 +1501,7 @@
policySummary[key] = addPolicySummaryTable(data[key], key);
prependTable(policySummary[key],key);
// prependTable(policySummary[key],key);
});
@ -1866,7 +1866,6 @@
storedData.locations[i].policyRisk['occupancy'] + "- " +
storedData.locations[i].policyRisk['address1'] + " " +
storedData.locations[i].policyRisk['address2'],
"answer_type": "free-text",
table_row_contents: [{
[`fire_plantMachineries_${locationIndex}`]: {
"display_value": "Plant & Machineries and Accessories",
@ -2422,10 +2421,15 @@
// Handle regular cells
else {
td.innerHTML = processCellContent(cellData.input_value, rowData, cellData.display_content);
if (cellData.parentth.startsWith("Proposal")) {
td.onclick = () => getAnswer(table.id, tr.id);
if (cellData.subth != "Quote asked") {
console.log("debug 1: ","table id : ",table.id,"Cell data parent header :",cellData.parentth,"others: ",cellData);
console.log("debug 1 : ",td.innerHTML)
// console.log("debug 1: ",cellData," ");
td.classList.add("insurer_proposal");
console.log("debug 1: ",td.className);
}
}
td.contentEditable = true;
@ -2538,6 +2542,7 @@
console.log("trying to find something : ", matchedInsurer.stc);
console.log("this is the subheader : ", subHeader);
console.log("debug 2: ",subHeader,"parent header : ",header.parentHeader);
th2.classList.add("insurer_proposal");
th2.innerHTML = `
${subHeader}
@ -3025,7 +3030,7 @@
tables.forEach(table => {
if (table.id.includes("summary")) {
table.remove(); // Move summary table to the top
table.remove(); // reMove summary table from the top
}
});
@ -3035,6 +3040,9 @@
moveSummaryTableToTop(policyName);
hideProposalOptionsForChild();
showOrHideFieldsBasedOnRFQorQCR();
}
@ -3050,6 +3058,7 @@
tables.forEach(table => {
if (table.id.includes("summary")) {
parentDiv.prepend(table); // Move summary table to the top
updateSNO(table.id);
}
});
}