From 30b87410931711fed207ddb911c2de2dae3f654e Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 12 四月 2024 18:21:14 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index 307b4ca..21d59d3 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;
@@ -2235,7 +2235,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;
}
}
@@ -2343,7 +2343,9 @@
x = localParseFloat(x);
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){
@@ -2354,7 +2356,7 @@
var num = quo.Quote_Adjust_Calculate__c;
num = localParseFloat(num);
var ex = quo.ExtendedWarrantyAmountTotalPrice__c;
- ex.localParseFloat(ex);
+ ex = localParseFloat(ex);
quo.Quote_Adjust_Calculate__c = toNumComma(num);
num = (100 + num) / 100;
z=localParseFloat(z);
--
Gitblit v1.9.1