<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Repair_Product_Direct_SORC</fullName>
|
<active>true</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))) /* 草案中 だけチェックする */
|
&&
|
ISBLANK(Text(SalesOfficeCode_selection__c)) = False
|
&&
|
AND(Text(On_site_repair__c) = "直送SORC修理",
|
/* 不是奥辉产品*/
|
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'),
|
/* 品質問題_直送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)='武汉'
|
)))
|
/* 备品转备品的时候,可以选择【直送SORC修理】 */
|
&&
|
Not(Delivered_Product__r.RecordTypeId='01210000000kOPR')</errorConditionFormula>
|
<errorDisplayField>SalesOfficeCode_selection__c</errorDisplayField>
|
<errorMessage>直送SORC修理 的时候,修理品返送地 只能填写 乌鲁木齐, 西宁, 兰州, 西安, 银川, 太原, 郑州, 长沙, 武汉</errorMessage>
|
</ValidationRule>
|