From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/objects/Repair__c/validationRules/work_location_select_self_or_4RC.validationRule-meta.xml | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/objects/Repair__c/validationRules/work_location_select_self_or_4RC.validationRule-meta.xml b/force-app/main/default/objects/Repair__c/validationRules/work_location_select_self_or_4RC.validationRule-meta.xml
index 2b5b370..db826bb 100644
--- a/force-app/main/default/objects/Repair__c/validationRules/work_location_select_self_or_4RC.validationRule-meta.xml
+++ b/force-app/main/default/objects/Repair__c/validationRules/work_location_select_self_or_4RC.validationRule-meta.xml
@@ -2,8 +2,10 @@
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>work_location_select_self_or_4RC</fullName>
<active>true</active>
- <description>鍙楃悊鍔炰簨澶勫彧鑳介�夎嚜宸辩渷鍐呯殑鍔炰簨澶� 鎴� 涓冨ぇRC</description>
- <errorConditionFormula>$Profile.Id != '00e10000000dEQx' /* GPI_绯荤粺绠$悊鍛� 涓嶆姤閿� */
+ <description>鍙楃悊鍔炰簨澶勫彧鑳介�夎嚜宸辩渷鍐呯殑鍔炰簨澶� 鎴� 鍥涘ぇRC</description>
+ <errorConditionFormula>$User.Username !='buli@deloitte.com.cn.stagefull'
+&&
+$Profile.Id != '00e10000000dEQx' /* GPI_绯荤粺绠$悊鍛� 涓嶆姤閿� */
&&
$User.Id != '00510000000fSYI' /* Batch User 涓嶆姤閿� */
&&
@@ -17,6 +19,8 @@
Not(Delivered_Product__r.RecordTypeId='01210000000kOPR')
&&
/* 鍙楃悊鍔炰簨澶勫彧鑳介�夎嚜宸辩渷鍐呯殑鍔炰簨澶� 鎴� 鍥涘ぇRC */
+IF(Incharge_Staff__r.Salesdepartment__c='3.瑗垮寳' && Text(On_site_repair__c)='鐜板満淇悊' && Text(work_location_select__c)='鍖椾含鍔炰簨澶�',False,
+IF(Text(Incharge_Staff__r.Province__c)='娴欐睙鐪�' && Text(On_site_repair__c)='鐜板満淇悊' && Text(work_location_select__c)='娴欐睙鍔炰簨澶�',False,
IF(Text(work_location_select__c)='鍖椾含鍔炰簨澶�', False,
IF(Text(work_location_select__c)='娌堥槼鍔炰簨澶�', False,
IF(Text(work_location_select__c)='涓婃捣鍔炰簨澶�', False,
@@ -30,7 +34,7 @@
IF(Text(work_location_select__c)='鍏遍�氬姙浜嬪', False,
IF(Text(work_location_select__c)=Incharge_Staff__r.RepairSalesPoint_Province_China__c, False,
True)
-)))))))))))</errorConditionFormula>
+)))))))))))))</errorConditionFormula>
<errorDisplayField>work_location_select__c</errorDisplayField>
<errorMessage>鍙楃悊鍔炰簨澶勫彧鑳介�夎嚜宸辩渷鍐呯殑鍔炰簨澶� 鎴� 涓冨ぇRC</errorMessage>
</ValidationRule>
--
Gitblit v1.9.1