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/Maintenance_Contract_Estimate__c/fields/Estimate_Price_range__c.field-meta.xml |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_Price_range__c.field-meta.xml b/force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_Price_range__c.field-meta.xml
index 169d9e8..4b01097 100644
--- a/force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_Price_range__c.field-meta.xml
+++ b/force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_Price_range__c.field-meta.xml
@@ -1,15 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
     <fullName>Estimate_Price_range__c</fullName>
-    <description>if( ISPICKVAL( New_Contract_Type_TxT__c , &apos;鏂板搧鍚堝悓&apos;),&apos;浣庝簬鏍囧噯浠风殑鏈�浣庝环鏍�&apos; ,)</description>
-    <externalId>false</externalId>
-    <formula>if(Submit_quotation_day__c &lt;= DATE(2020,03,31),&apos;&apos;,
+    <description>if(Submit_quotation_day__c &lt;= DATE(2020,03,31),&apos;&apos;,
 if(Request_quotation_Amount__c &lt;  GuidePrice_Down__c,
 if( ISPICKVAL( New_Contract_Type_TxT__c , &apos;鏂板搧鍚堝悓&apos;),&apos;浣庝簬鏈�浣庝环鏍�&apos; ,
 if( ISPICKVAL( New_Contract_Type_TxT__c , &apos;棣栫鍚堝悓&apos;),if(  Consumption_rate_Forecast__c &gt; 1,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ヤ笂&apos; ,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ュ唴&apos;),if(Cost_rate_Forecast__c &gt; 1,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ヤ笂&apos; ,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ュ唴&apos;)
 )) ,
 if(and( Request_quotation_Amount__c &gt;=  GuidePrice_Down__c,Request_quotation_Amount__c &lt;= GuidePrice_Up__c) ,&apos;鏍囧噯浠锋牸鐨勮寖鍥村唴&apos;,
-if(Request_quotation_Amount__c &lt;= GuidePrice_Up__c * 2 ,&apos;鏈�楂樹环鏍肩殑200%浠ュ唴&apos; ,&apos;鏈�楂樹环鏍肩殑200%浠ヤ笂&apos;))))</formula>
+if(Request_quotation_Amount__c &lt;= GuidePrice_Up__c * 2 ,&apos;鏈�楂樹环鏍肩殑200%浠ュ唴&apos; ,&apos;鏈�楂樹环鏍肩殑200%浠ヤ笂&apos;))))</description>
+    <externalId>false</externalId>
+    <formula>if(Submit_quotation_day__c &lt;= DATE(2020,03,31),&apos;&apos;,
+if(Request_quotation_Amount__c &lt; if(renewTen_OFF__c,GuidePrice_Down__c * 0.9,GuidePrice_Down__c),
+if( ISPICKVAL( New_Contract_Type_TxT__c , &apos;鏂板搧鍚堝悓&apos;),&apos;浣庝簬鏈�浣庝环鏍�&apos; ,
+if( ISPICKVAL( New_Contract_Type_TxT__c , &apos;棣栫鍚堝悓&apos;),if( Consumption_rate_Forecast__c &gt; 1,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ヤ笂&apos; ,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ュ唴&apos;),if(Cost_rate_Forecast__c &gt; 1,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ヤ笂&apos; ,&apos;浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ュ唴&apos;)
+)) ,
+if(and( Request_quotation_Amount__c &gt;= if(renewTen_OFF__c,GuidePrice_Down__c * 0.9,GuidePrice_Down__c),Request_quotation_Amount__c &lt;= if(renewTen_OFF__c,GuidePrice_Up__c * 0.9,GuidePrice_Up__c)) ,&apos;鏍囧噯浠锋牸鐨勮寖鍥村唴&apos;,
+if(Request_quotation_Amount__c &lt;= if(renewTen_OFF__c,GuidePrice_Up__c * 0.9,GuidePrice_Up__c) * 2 ,&apos;鏈�楂樹环鏍肩殑200%浠ュ唴&apos; ,&apos;鏈�楂樹环鏍肩殑200%浠ヤ笂&apos;))))</formula>
     <label>浠锋牸鑼冨洿</label>
     <required>false</required>
     <trackHistory>false</trackHistory>

--
Gitblit v1.9.1