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 | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
index fe025da..b5cfbee 100644
--- a/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
+++ b/force-app/main/default/lwc/lexNewQuoteEntry/lexNexQuoteEntryUtil.js
@@ -1056,6 +1056,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;
}
--
Gitblit v1.9.1