From 01ce9b5788c4369c150e57577cc4ea03b4fc5ee1 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 19 四月 2024 17:28:49 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index ba849d6..2e0924e 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1300,6 +1300,14 @@
jzdtbt.pageObject.ServicePrice__c = 0;
jzdtbt.warrantyType__c = '';
var NoDiscountTotal = 0;
+ if(jzdtbt.exPrice != 0 && jzdtbt.exPrice != null && jzdtbt.exPrice != undefined ){
+ jzdtbt.exPriceCopy = jzdtbt.exPrice;
+ }
+ if(jzdtbt.Learning_Community != null && jzdtbt.Learning_Community != undefined && jzdtbt.Learning_Community != '0' && jzdtbt.Learning_Community != ''){
+ jzdtbt.Learning_CommunityCopy = jzdtbt.Learning_Community;
+ }
+ jzdtbt.exPrice = 0;
+ jzdtbt.Learning_Community = '0';
if (GuranteeType == '鏈嶅姟') {
multiYearWarranty = true;
jzdtbt.warrantyType__c = '鏈嶅姟澶氬勾淇濅慨';
@@ -1307,16 +1315,20 @@
} else if (GuranteeType == '甯傚満' && contractmultiYearWarranty == false) {
multiYearWarranty = true;
jzdtbt.pageObject.ServicePrice__c = ServicePrice;
+ jzdtbt.exPrice = jzdtbt.exPriceCopy;
+ jzdtbt.Learning_Community = jzdtbt.Learning_CommunityCopy;
jzdtbt.warrantyType__c = '甯傚満澶氬勾淇濅慨';
warrantyType = '甯傚満澶氬勾淇濅慨';
var Quantity =jzdtbt.Quantity__c;
MultiYearWarrantyTotalPrice__c = MultiYearWarrantyTotalPrice__c + localParseFloat(ServicePrice) * localParseFloat(Quantity);
- // ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity);
+ ExtendedWarrantyAmountTotalPrice__c = ExtendedWarrantyAmountTotalPrice__c + localParseFloat(jzdtbt.exPrice) * localParseFloat(Quantity);
NoDiscountTotal = localParseFloat(ServicePrice) * localParseFloat(Quantity);
}
else if (GuranteeType == '甯傚満' && contractmultiYearWarranty && CanNotCancelledGurantee) {
multiYearWarranty = true;
jzdtbt.pageObject.ServicePrice__c = ServicePrice;
+ jzdtbt.exPrice = jzdtbt.exPriceCopy;
+ jzdtbt.Learning_Community = jzdtbt.Learning_CommunityCopy;
jzdtbt.warrantyType__c = '甯傚満澶氬勾淇濅慨';
warrantyType = '甯傚満澶氬勾淇濅慨';
// 鏁伴噺
--
Gitblit v1.9.1