From e0de9222da210f9c8eb1a9f5400f936a14923e11 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期六, 20 一月 2024 13:16:47 +0800
Subject: [PATCH] addvalidationrule

---
 force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml b/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml
index 4534bad..347370c 100644
--- a/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml
+++ b/force-app/main/default/objects/Asset/validationRules/FSE_Cannot_change_to_other_hospital.validationRule-meta.xml
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
     <fullName>FSE_Cannot_change_to_other_hospital</fullName>
-    <active>false</active>
+    <active>true</active>
     <description>SWAG-C8MB5U</description>
     <errorConditionFormula>$User.Batch_User__c = false &amp;&amp; 
 $User.ProfileId &lt;&gt; LEFT($Label.ProfileId_SystemAdmin, 15) &amp;&amp; OR(CONTAINS($Profile.Name, &apos;2S5&apos;),CONTAINS($Profile.Name, &apos;2S6&apos;),CONTAINS($Profile.Name, &apos;2S8&apos;),CONTAINS($Profile.Name, &apos;2S9&apos;),CONTAINS($Profile.Name, &apos;2S1&apos;)) &amp;&amp;
 NOT(ISNEW()) &amp;&amp;
  Account.Parent.ParentId  &lt;&gt; PRIORVALUE( Hospital__c ) &amp;&amp; NOT( OR( Product2.Dealer_special_Object__c , Product2.Dealer_Object__c, Product2.ENG_DeaerProFlag__c )) &amp;&amp;
-Account.RecordTypeId &lt;&gt; &apos;012C600000003HG&apos; &amp;&amp; RecordTypeId &lt;&gt; &apos;012C600000003Hv&apos;</errorConditionFormula>
+Account.RecordTypeId &lt;&gt; &apos;01210000000gT1X&apos; &amp;&amp; RecordTypeId &lt;&gt; &apos;01210000000kOPR&apos;</errorConditionFormula>
     <errorDisplayField>AccountId</errorDisplayField>
     <errorMessage>涓嶈兘淇敼涓哄叾浠栧尰闄㈢殑绉戝銆�</errorMessage>
 </ValidationRule>

--
Gitblit v1.9.1