From f50c0ec115e25dc7f980bafda8169ed5ddfe1a8f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 08 四月 2022 21:04:16 +0800
Subject: [PATCH] Session
---
force-app/main/default/classes/Product2TriggerHandler.cls | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/Product2TriggerHandler.cls b/force-app/main/default/classes/Product2TriggerHandler.cls
index 9f8b754..56fff4f 100644
--- a/force-app/main/default/classes/Product2TriggerHandler.cls
+++ b/force-app/main/default/classes/Product2TriggerHandler.cls
@@ -136,7 +136,7 @@
if (newMap.get(pr.Product2__r.Id).demoteer_Sap__c <> null) {
//娉ㄥ唽璇佺淮鎶ゆ棩鏈夊��
if (stedate <> null) {
- //鍏ュ簱鏃ュ皬浜庣瓑浜庣淮鎶ゆ棩
+ //鍏ュ簱鏃ュ皬浜庣瓑浜庣淮鎶ゆ棩,鍏ュ簱鏃ユ病鏈夋寜鐓у叆搴撴棩鍦ㄧ淮鎶ゆ棩涔嬪墠鍒ゆ柇
if (newMap.get(pr.Product2__r.Id).Diedatvanink__c == null || newMap.get(pr.Product2__r.Id).Diedatvanink__c <= stedate) {
if (newMap.get(pr.Product2__r.Id).demoteer_Sap__c <= pr.Product_Register__r.ValidTo__c && newMap.get(pr.Product2__r.Id).demoteer_Sap__c >= pr.Product_Register__r.ValidFrom__c
&& (pr.Product_Register__r.MedPrdClass__c == '2' || pr.Product_Register__r.MedPrdClass__c == '3')) {
--
Gitblit v1.9.1