| | |
| | | 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) { |
| | |
| | | // 数量 |
| | | 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 == '市场') { |
| | |
| | | } |
| | | }); |
| | | thirdPartyEstimation_List_Price = localParseFloat(thirdPartyEstimation_List_Price); |
| | | quo.Quote_Adjust_Amount_Page__c = toNumComma(x - noDiscountPriceTotal - z - 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 - z - 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; |
| | |
| | | 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 |
| | |
| | | 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; |
| | | } |
| | | } |
| | |
| | | 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){ |
| | |
| | | mp = localParseFloat(mp); |
| | | var num = quo.Quote_Adjust_Calculate__c; |
| | | num = localParseFloat(num); |
| | | var ex = quo.ExtendedWarrantyAmountTotalPrice__c; |
| | | ex = localParseFloat(ex); |
| | | quo.Quote_Adjust_Calculate__c = toNumComma(num); |
| | | num = (100 + num) / 100; |
| | | z=localParseFloat(z); |
| | | var rh = oppInfo.rate_hospital; |
| | | var ra = oppInfo.rate_agency1; |
| | | quo.Dealer_Final_Price_Page__c = toNumComma(z*rh); |
| | | quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp) : ''; |
| | | quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp+ex) : ''; |
| | | } |
| | | // } |
| | | quoExp = quo; |
| | |
| | | export function Agent1comput(quo,Saleslet,oppInfo){ |
| | | var z = quo.Estimation_List_Price__c; |
| | | var mp =quo.MultiYearWarrantyTotalPrice__c; |
| | | var ex = quo.ExtendedWarrantyAmountTotalPrice__c; |
| | | mp = localParseFloat(mp); |
| | | ex = localParseFloat(ex); |
| | | var num = quo.Quote_Adjust_Calculate__c; |
| | | num = localParseFloat(num); |
| | | quo.Quote_Adjust_Calculate__c = toNumComma(num); |
| | |
| | | var rh = oppInfo.rate_hospital; |
| | | var ra = oppInfo.rate_agency1; |
| | | quo.Dealer_Final_Price_Page__c = toNumComma(z*rh); |
| | | quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp):''; |
| | | quo.OCM_Agent1_Price_Page__c = Saleslet ? toNumComma(z*num*ra+mp+ex):''; |
| | | return quo; |
| | | } |