| | |
| | | } |
| | | } |
| | | 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 = {PricebookEntry:PricebookEntry,PricebookEntryId:''}; |
| | | var addobj = {latestInfo:latestInfo, |
| | | var pageObject = {}; |
| | | var addobj = {PricebookEntry:PricebookEntry, |
| | | 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 |
| | |
| | | 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.pageObject.PricebookEntry.Product2.ProductCategory__c = quotltiem.ProductCategory; |
| | | quotltiem.PricebookEntry.Product2.ProductCategory__c = quotltiem.ProductCategory; |
| | | } |
| | | // chenjingwu 20240411 end |
| | | quotltiem.Quantity__c = quotltiem.pageObject.Quantity__c; |