From 84e0a7994d22fa5be5e5f8ae91ca4990ef495afd Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 24 五月 2024 16:49:53 +0800
Subject: [PATCH] 1
---
force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index 7706a06..b5cfbee 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1056,8 +1056,15 @@
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;
--
Gitblit v1.9.1