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 , '鏂板搧鍚堝悓'),'浣庝簬鏍囧噯浠风殑鏈�浣庝环鏍�' ,)</description> - <externalId>false</externalId> - <formula>if(Submit_quotation_day__c <= DATE(2020,03,31),'', + <description>if(Submit_quotation_day__c <= DATE(2020,03,31),'', if(Request_quotation_Amount__c < GuidePrice_Down__c, if( ISPICKVAL( New_Contract_Type_TxT__c , '鏂板搧鍚堝悓'),'浣庝簬鏈�浣庝环鏍�' , if( ISPICKVAL( New_Contract_Type_TxT__c , '棣栫鍚堝悓'),if( Consumption_rate_Forecast__c > 1,'浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ヤ笂' ,'浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ュ唴'),if(Cost_rate_Forecast__c > 1,'浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ヤ笂' ,'浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ュ唴') )) , if(and( Request_quotation_Amount__c >= GuidePrice_Down__c,Request_quotation_Amount__c <= GuidePrice_Up__c) ,'鏍囧噯浠锋牸鐨勮寖鍥村唴', -if(Request_quotation_Amount__c <= GuidePrice_Up__c * 2 ,'鏈�楂樹环鏍肩殑200%浠ュ唴' ,'鏈�楂樹环鏍肩殑200%浠ヤ笂'))))</formula> +if(Request_quotation_Amount__c <= GuidePrice_Up__c * 2 ,'鏈�楂樹环鏍肩殑200%浠ュ唴' ,'鏈�楂樹环鏍肩殑200%浠ヤ笂'))))</description> + <externalId>false</externalId> + <formula>if(Submit_quotation_day__c <= DATE(2020,03,31),'', +if(Request_quotation_Amount__c < if(renewTen_OFF__c,GuidePrice_Down__c * 0.9,GuidePrice_Down__c), +if( ISPICKVAL( New_Contract_Type_TxT__c , '鏂板搧鍚堝悓'),'浣庝簬鏈�浣庝环鏍�' , +if( ISPICKVAL( New_Contract_Type_TxT__c , '棣栫鍚堝悓'),if( Consumption_rate_Forecast__c > 1,'浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ヤ笂' ,'浣庝簬鏈�浣庝环鏍�,棰勬祴娑堣垂鐜囧湪100%浠ュ唴'),if(Cost_rate_Forecast__c > 1,'浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ヤ笂' ,'浣庝簬鏈�浣庝环鏍�,棰勬祴鎴愭湰鐜囧湪100%浠ュ唴') +)) , +if(and( Request_quotation_Amount__c >= if(renewTen_OFF__c,GuidePrice_Down__c * 0.9,GuidePrice_Down__c),Request_quotation_Amount__c <= if(renewTen_OFF__c,GuidePrice_Up__c * 0.9,GuidePrice_Up__c)) ,'鏍囧噯浠锋牸鐨勮寖鍥村唴', +if(Request_quotation_Amount__c <= if(renewTen_OFF__c,GuidePrice_Up__c * 0.9,GuidePrice_Up__c) * 2 ,'鏈�楂樹环鏍肩殑200%浠ュ唴' ,'鏈�楂樹环鏍肩殑200%浠ヤ笂'))))</formula> <label>浠锋牸鑼冨洿</label> <required>false</required> <trackHistory>false</trackHistory> -- Gitblit v1.9.1