From a099abe8d0ff0699296c9bcc53ca00b98d167c73 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期一, 15 四月 2024 10:42:09 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index 1f30230..9edd192 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1300,6 +1300,8 @@
jzdtbt.pageObject.ServicePrice__c = 0;
jzdtbt.warrantyType__c = '';
var NoDiscountTotal = 0;
+ var exPrice = jzdtbt.pageObject.exPrice;
+ jzdtbt.pageObject.exPrice = 0;
if (GuranteeType == '鏈嶅姟') {
multiYearWarranty = true;
jzdtbt.warrantyType__c = '鏈嶅姟澶氬勾淇濅慨';
@@ -1307,22 +1309,24 @@
} else if (GuranteeType == '甯傚満' && contractmultiYearWarranty == false) {
multiYearWarranty = true;
jzdtbt.pageObject.ServicePrice__c = ServicePrice;
+ jzdtbt.pageObject.exPrice = exPrice;
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.pageObject.exPrice = exPrice;
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 == '甯傚満') {
@@ -1631,11 +1635,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;
@@ -1990,6 +1994,7 @@
quo.OCM_Agent1_Price_Page__c = '';
}
quo.MultiYearWarrantyTotalPrice__c = toNumComma(quo.MultiYearWarrantyTotalPrice__c);
+ quo.ExtendedWarrantyAmountTotalPrice__c = toNumComma(quo.ExtendedWarrantyAmountTotalPrice__c);
quo.Agency1_Profit__c = toNumComma(quo.Agency1_Profit__c);
quo.Agency2_Profit__c = toNumComma(quo.Agency2_Profit__c);
//棰勬祴閲戦淇敼 fy
@@ -2235,7 +2240,7 @@
jzdtbt.exPrice = item.MultiOneYearWarrantyPrice__c;
}
});
- if(jzdtbt.exPrice == null || jzdtbt.exPrice == '' || jzdtbt.exPrice == undefined){
+ if(jzdtbt.exPrice == null || jzdtbt.exPrice == '' || jzdtbt.exPrice == undefined || jzdtbt.Learning_Community == '0'){
jzdtbt.exPrice = 0;
}
}
--
Gitblit v1.9.1