1
chenjingwu
2024-05-24 ab5a982874f88556b72e02177fa88dedc2d56fe8
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -738,13 +738,23 @@
    } 
function SetProductId(lineno,selectv){
   //fy DB202312538864 2024.02.02 start
    // var Product2 = {};
    // var PricebookEntry = {Product2:Product2};
    // var pageObject = {};
    // var addobj = {PricebookEntry:PricebookEntry,
    //                 latestInfo:latestInfo,
    //                 pageObject:pageObject};
    // var attributes1 = {type: "PricebookEntry"};
    // var attributes2 = {type: "Product2"};
    // var attributes3 = {type: "QuoteLineItem"};
    var Product2 = {};
    var PricebookEntry = {Product2:Product2};
    var latestInfo = {};
    var pageObject = {};
    var addobj = {PricebookEntry:PricebookEntry,
                    latestInfo:latestInfo,
    var pageObject = {PricebookEntry:PricebookEntry,PricebookEntryId:''};
    var addobj = {latestInfo:latestInfo,
                    pageObject:pageObject};
    //fy DB202312538864 2024.02.02 end
    var Asset_Model_No__c = selectv.Product2.Asset_Model_No__c;
    var Product2Id = selectv.Product2Id;
    var SFDA_Status__c = selectv.Product2.SFDA_Status__c
@@ -1056,6 +1066,13 @@
    console.warn(JSON.stringify(quoteLineItem));
    quoteLineItem.forEach(quotltiem=>{
        // chenjingwu 20240411 start
        if(quotltiem.PricebookEntry === undefined){
            quotltiem.PricebookEntry = {Product2:{}};
          }else{
              if(quotltiem.PricebookEntry.Product2 === undefined){
                  quotltiem.PricebookEntry.Product2 = {};
              }
          }
        if(quotltiem.ProductCategory !== undefined && quotltiem.ProductCategory !== null){
            quotltiem.PricebookEntry.Product2.ProductCategory__c = quotltiem.ProductCategory;
        }