From 2cc792b5e113befc3c569ebb7eae9c8d03b9d0b6 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 12 四月 2024 14:41:57 +0800
Subject: [PATCH] 123

---
 force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index cd5b48e..ba822c9 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1631,11 +1631,11 @@
         }
     });
     thirdPartyEstimation_List_Price = localParseFloat(thirdPartyEstimation_List_Price);
-    quo.Quote_Adjust_Amount_Page__c = toNumComma(x - noDiscountPriceTotal - y);
+    quo.Quote_Adjust_Amount_Page__c = toNumComma(x - noDiscountPriceTotal - y - z);
     if (y - thirdPartyEstimation_List_Price == 0) {
         quo.Quote_Adjust_Calculate__c = toNumComma(0);
     } else {
-        quo.Quote_Adjust_Calculate__c = toNumComma((x - noDiscountPriceTotal - y) / (y - thirdPartyEstimation_List_Price) * 100);
+        quo.Quote_Adjust_Calculate__c = toNumComma((x - noDiscountPriceTotal - y - z) / (y - thirdPartyEstimation_List_Price) * 100);
     }
     quoExp = quo;
     return jzDataToBeproduct;
@@ -2338,15 +2338,14 @@
     debugger
     var x = 0;
     var y = 0;
-    var z = 0;
     jzDataToBeproduct.forEach(jzdtbt=>{
         x = jzdtbt.pageObject.Subtotal__c;
-        z = jzdtbt.exPrice;
         x = localParseFloat(x);
-        z = localParseFloat(z);
-        y = y + localParseFloat(x) + z;
+        y = y + localParseFloat(x);
     });
-    quo.QuoteTotal_Page__c = toNumComma(y);
+    var e = quo.ExtendedWarrantyAmountTotalPrice__c;
+    e = localParseFloat(e);
+    quo.QuoteTotal_Page__c = toNumComma(y + e);
     var z = quo.Estimation_List_Price__c;
     var id = quoId;
     // if(!id){

--
Gitblit v1.9.1