| | |
| | | <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <fullName>Cannot_Create_Old_Contract</fullName> |
| | | <active>true</active> |
| | | <errorConditionFormula>RecordTypeId == '012C600000003Iu' && (!Hospital__r.Service_customer__c) && (ISNEW()|| ISCHANGED( RecordTypeId))&& not( $User.ProfileId == '00eC800000005Cb')</errorConditionFormula> |
| | | <errorConditionFormula>RecordTypeId == '01210000000QjeFAAS' && (!Hospital__r.Service_customer__c) && (ISNEW()|| ISCHANGED( RecordTypeId))&& not( $User.ProfileId == '00e10000000Y3o5')</errorConditionFormula> |
| | | <errorMessage>该医院只能签订新维修合同。</errorMessage> |
| | | </ValidationRule> |