| | |
| | | } |
| | | }); |
| | | 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; |
| | |
| | | }); |
| | | var e = quo.ExtendedWarrantyAmountTotalPrice__c; |
| | | e = localParseFloat(e); |
| | | quo.QuoteTotal_Page__c = toNumComma(y) + toNumComma(e); |
| | | quo.QuoteTotal_Page__c = toNumComma(y + e); |
| | | var z = quo.Estimation_List_Price__c; |
| | | var id = quoId; |
| | | // if(!id){ |