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/Consumable_order_details2__c/fields/Sales_Promotion__c.field-meta.xml |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/objects/Consumable_order_details2__c/fields/Sales_Promotion__c.field-meta.xml b/force-app/main/default/objects/Consumable_order_details2__c/fields/Sales_Promotion__c.field-meta.xml
index fbe2dac..c2b5fe6 100644
--- a/force-app/main/default/objects/Consumable_order_details2__c/fields/Sales_Promotion__c.field-meta.xml
+++ b/force-app/main/default/objects/Consumable_order_details2__c/fields/Sales_Promotion__c.field-meta.xml
@@ -1,9 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
     <fullName>Sales_Promotion__c</fullName>
+    <description>20231030鐜嬬淇敼鍓嶏細
+IF( OwnerId = $Label.User_OlympusSystem ,  Consumable_order_minor__r.ApplySalsesTeam_F__c ,  TEXT(Owner:User.Work_Location__c)  )</description>
     <externalId>false</externalId>
-    <formula>IF( OwnerId = $Label.User_OlympusSystem ,  Consumable_order_minor__r.ApplySalsesTeam_F__c ,  TEXT(Owner:User.Work_Location__c)  )</formula>
-    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
+    <formula>IF(or(source__c = &apos;OSH&apos;,Owner:User.OSHFLG__c = TRUE),&apos;鍚堣偉-OSH&apos;,
+if(OwnerId = $Label.User_OlympusSystem ,
+if(Not(isblank(Consumable_order_minor__c)),Consumable_order_minor__r.ApplySalsesTeam_F__c,Province_Account__c) ,  TEXT(Owner:User.Work_Location__c)  ))</formula>
     <label>閿�鍞帹骞胯</label>
     <required>false</required>
     <trackHistory>false</trackHistory>

--
Gitblit v1.9.1