From 1b1347f2e6d40aa75bbfdfb4789d60efeff13ea8 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期五, 15 四月 2022 09:41:12 +0800
Subject: [PATCH] LS内贸未发货和以后的不显示二级经营证(临时)
---
force-app/main/default/classes/SBG001TriggerHandler.cls | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/SBG001TriggerHandler.cls b/force-app/main/default/classes/SBG001TriggerHandler.cls
index 8f43ef4..65f3d37 100644
--- a/force-app/main/default/classes/SBG001TriggerHandler.cls
+++ b/force-app/main/default/classes/SBG001TriggerHandler.cls
@@ -65,6 +65,7 @@
|| acc.RecordTypeId == '01228000000TdFG' // NDT
|| acc.RecordTypeId == '01228000000TdFL' // ANI
|| acc.RecordTypeId == '01228000000TdF1' // BS
+ || acc.RecordTypeId == '0120T0000003Cxt' // IE鐩撮攢
)
&& acc.stautesD__c == 'Pass') || acc.RecordTypeId == SBG001TriggerHandler.Account_Agency_Id //鍔炰簨澶�
) {
@@ -85,6 +86,7 @@
|| acc.RecordTypeId == '01228000000TdFG' // NDT
|| acc.RecordTypeId == '01228000000TdFL' // ANI
|| acc.RecordTypeId == '01228000000TdF1' // BS
+ || acc.RecordTypeId == '0120T0000003Cxt' // IE鐩撮攢
)
&& acc.stautesD__c == 'Pass'
&& (acc.ManagementCode_Ext__c != old.ManagementCode_Ext__c
@@ -159,6 +161,7 @@
|| con.AccountRecordTypeId__c == '01228000000TdFB' // RVI
|| con.AccountRecordTypeId__c == '01228000000TdFG' // NDT
|| con.AccountRecordTypeId__c == '01228000000TdF1' // BS
+ || con.AccountRecordTypeId__c == '0120T0000003Cxt' // IE鐩撮攢
)
&& con.StatusD__c == 'Pass') || con.AccountRecordTypeId__c == SBG001TriggerHandler.Account_Agency_Id// 鍔炰簨澶�
) {
@@ -184,6 +187,7 @@
|| con.AccountRecordTypeId__c == '01228000000TdFG' // NDT
|| con.AccountRecordTypeId__c == '01228000000TdF1' // BS
|| con.AccountRecordTypeId__c == SBG001TriggerHandler.Account_Agency_Id // 鍔炰簨澶�
+ || con.AccountRecordTypeId__c == '0120T0000003Cxt' // IE鐩撮攢
)
&& con.StatusD__c == 'Pass'
&& (con.ManagementCode_Ext__c != old.ManagementCode_Ext__c
@@ -324,7 +328,7 @@
SSBDCustomerContact.CustomerDescription = acc.FacilityName__c;
SSBDCustomerContact.CustomerDescription2Description3
= (String.isBlank(acc.DivisionName__c) ? '' : (acc.DivisionName__c=='鏃�' ? '' : acc.DivisionName__c));
- if (acc.RecordTypeId == '01228000000TdF6' || acc.RecordTypeId == '01228000000TdFB' || acc.RecordTypeId == '01228000000TdFG' || acc.RecordTypeId == '01228000000TdFL') { // IE or RVI
+ if (acc.RecordTypeId == '01228000000TdF6' || acc.RecordTypeId == '01228000000TdFB' || acc.RecordTypeId == '01228000000TdFG' || acc.RecordTypeId == '01228000000TdFL' || acc.RecordTypeId == '0120T0000003Cxt') { // IE or RVI
SSBDCustomerContact.CustomerDescription2Description3 += ',' + (String.isBlank(acc.EnglishName__c) ? '' : acc.EnglishName__c);
} else {
SSBDCustomerContact.CustomerDescription2Description3 += ',' + (String.isBlank(acc.DepartmentName__c) ? '' : acc.Departmentname__c);
@@ -532,7 +536,7 @@
SSBDCustomerContact.CustomerDescription = con.Account.FacilityName__c;
SSBDCustomerContact.CustomerDescription2Description3
= (String.isBlank(con.Account.DivisionName__c) ? '' : (con.Account.DivisionName__c=='鏃�' ? '' : con.Account.DivisionName__c));
- if (con.AccountRecordTypeId__c == '01228000000TdF6' || con.AccountRecordTypeId__c == '01228000000TdFB' || con.AccountRecordTypeId__c == '01228000000TdFG' || con.AccountRecordTypeId__c == '01228000000TdFL') { // IE or RVI
+ if (con.AccountRecordTypeId__c == '01228000000TdF6' || con.AccountRecordTypeId__c == '01228000000TdFB' || con.AccountRecordTypeId__c == '01228000000TdFG' || con.AccountRecordTypeId__c == '01228000000TdFL' || con.AccountRecordTypeId__c == '0120T0000003Cxt') { // IE or RVI
SSBDCustomerContact.CustomerDescription2Description3 += ',' + (String.isBlank(con.Account.EnglishName__c) ? '' : con.Account.EnglishName__c);
} else {
SSBDCustomerContact.CustomerDescription2Description3 += ',' + (String.isBlank(con.Account.DepartmentName__c) ? '' : con.Account.Departmentname__c);
--
Gitblit v1.9.1