<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Repair_Product_Direct_SORC</fullName>
|
<active>false</active>
|
<description>「直送SORC修理」を選べ、奥辉产品 の場合「修理主负责人办事处」を全ての事務所を選ぶように修正して頂けますか。
|
2015/11/3 TODO 有効する
|
2017/7/25修改
|
&&
|
Not(AND(Delivered_Product__r.RecordTypeId='01210000000kOPR',
|
ISBLANK(Text(Delivered_Product__r.Asset_day__c))))</description>
|
<errorConditionFormula>$Profile.Id != '00e10000000dEQx' /* GPI_系统管理员 不报错 */
|
&&
|
$Profile.Id != '00e10000000Y3o5' /* 系统管理员 不报错 */
|
&&
|
$User.Id != '00510000000fSYI' /* Batch User 不报错 */
|
&&
|
OR(Text(Status__c) = '草案中', IsBlank(Text(Status__c))) /* 草案中 だけチェックする */
|
&&
|
Quick_Repair_Sign__c = false /*XLIU-CHTDM5 gzw fix*/
|
&&
|
ISBLANK(Text(SalesOfficeCode_selection__c)) = False
|
&&
|
AND(Text(On_site_repair__c) = "直送SORC修理",
|
/* 不是奥辉产品*/
|
AND(NOT(Delivered_Product__r.Product2.ProductCode='N5377460'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N3804360'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N5377660'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N3804560'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N5377560'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N3804460'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N3804260'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N3805060'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N3804960'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N5385560'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N5377480'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N5377680'),
|
NOT(Delivered_Product__r.Product2.ProductCode='N5377580'),
|
/* 品質問題_直送SORC修理, 可以选任何RC */
|
NOT(Delivered_Product__r.sorc__c),
|
NOT(
|
OR(Text(SalesOfficeCode_selection__c)='乌鲁木齐'
|
,Text(SalesOfficeCode_selection__c)='西宁'
|
,Text(SalesOfficeCode_selection__c)='兰州'
|
,Text(SalesOfficeCode_selection__c)='西安'
|
,Text(SalesOfficeCode_selection__c)='银川'
|
,Text(SalesOfficeCode_selection__c)='太原'
|
,Text(SalesOfficeCode_selection__c)='郑州'
|
,Text(SalesOfficeCode_selection__c)='长沙'
|
,Text(SalesOfficeCode_selection__c)='武汉'
|
))),
|
NOT(AND(Incharge_Staff__r.Salesdepartment__c='2.东北',
|
OR(Delivered_Product__r.Product2.Asset_Model_No__c='LTF-240',
|
Delivered_Product__r.Product2.Asset_Model_No__c='LTF-260',
|
Delivered_Product__r.Product2.Asset_Model_No__c='LTF-VH',
|
Delivered_Product__r.Product2.Asset_Model_No__c='LTF-VP',
|
Delivered_Product__r.Product2.Asset_Model_No__c='LTF-S190-5',
|
Delivered_Product__r.Product2.Asset_Model_No__c='LTF-S190-10',
|
Delivered_Product__r.Product2.Asset_Model_No__c='LTF-190-10-3D',
|
Delivered_Product__r.Product2.Asset_Model_No__c='A50000A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='A50002A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50010A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50012A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50020B',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50022B',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50040A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50042A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50050A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50052A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50080A',
|
Delivered_Product__r.Product2.Asset_Model_No__c='WA50082A')))
|
,NOT(Incharge_Staff__r.Salesdepartment__c='5.华东')/*DB202303614156 LY add 2023/0428*/
|
)/*DB202303502514 LY add 2023/0407*/
|
/* 备品转备品的时候,可以选择【直送SORC修理】 */
|
&&
|
Not(Delivered_Product__r.RecordTypeId='01210000000kOPR')</errorConditionFormula>
|
<errorDisplayField>SalesOfficeCode_selection__c</errorDisplayField>
|
<errorMessage>直送SORC修理 的时候,修理品返送地 只能填写 乌鲁木齐, 西宁, 兰州, 西安, 银川, 太原, 郑州, 长沙, 武汉</errorMessage>
|
</ValidationRule>
|