123
chenjingwu
2024-04-15 65a3de8fc057c6550f38d2aef6b5ed7f0e7e2f81
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;
@@ -1990,6 +1990,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 +2236,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;
                }
            }
@@ -2338,15 +2339,14 @@
    debugger
    var x = 0;
    var y = 0;
    var z = 0;
    jzDataToBeproduct.forEach(jzdtbt=>{
        x = jzdtbt.pageObject.Subtotal__c;
        z = jzdtbt.exPrice;
        x = localParseFloat(x);
        z = localParseFloat(z);
        y = y + localParseFloat(x) + z;
        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){