From 6ead0408a9aa3aecbfa9ab80c6c0f370f98f01fb Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 19 四月 2024 19:07:18 +0800
Subject: [PATCH] 123

---
 force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
index 6f246c3..528cc0b 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNewQuoteEntry.js
@@ -1674,6 +1674,7 @@
         this.updateNoDiscountPricetotal();
         // chenjingwu 
         this.updateExPricetotal()
+        this.calGuranteeAllFields();
         // chenjingwu 
         this.EstimationListPrice();
         this.calUnitPriceTotal();
@@ -1965,8 +1966,14 @@
                         item.exPrice = 0;
                     }
                 }else{
-                    item.Learning_Community = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].AgeLimit__c;
-                    item.exPrice = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].MultiOneYearWarrantyPrice__c;
+                    if(item.multiYearWarrantyList.length > 0){
+                        item.Learning_Community = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].AgeLimit__c;
+                        item.exPrice = item.multiYearWarrantyList[item.multiYearWarrantyList.length -1].MultiOneYearWarrantyPrice__c;
+                    }else{
+                        item.Learning_Community = '0';
+                        item.exPrice = 0;
+                    }
+                    
                 }
             }
         });

--
Gitblit v1.9.1