From bb4c562b98b8ea3c72437fce06d35b47b4d4d6b9 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Sat, 22 Mar 2025 09:59:59 +0530 Subject: [PATCH] FEAT_RFQ_NONEB_PRE_FINAL --- app/Views/policyRegisterModel.php | 19 ++++++++++--------- app/Views/view_rfq_non_eb.php | 15 ++++++++++++--- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/app/Views/policyRegisterModel.php b/app/Views/policyRegisterModel.php index 83bbc23f..9900b905 100644 --- a/app/Views/policyRegisterModel.php +++ b/app/Views/policyRegisterModel.php @@ -667,6 +667,16 @@ + + +
+ + +
+
+ + +
- -
- - -
-
- - -
diff --git a/app/Views/view_rfq_non_eb.php b/app/Views/view_rfq_non_eb.php index a86f850d..7d50957e 100644 --- a/app/Views/view_rfq_non_eb.php +++ b/app/Views/view_rfq_non_eb.php @@ -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); } }); }