Customer_code__c
    false
    /* 01210000000QemG == 医院的记录类型的Id */
IF(Opportunity__r.Account.Parent.Parent.RecordTypeId = "01210000000QemG",
Opportunity__r.Account.Management_Code__c,
/* 01210000000Qem1 == 经销商的记录类型的Id */
IF(Opportunity__r.Account.Parent.RecordTypeId = "01210000000Qem1",
Opportunity__r.Account.AgencyContract_Management_Code__c,
""
))
    BlankAsZero
    
    false
    false
    Text
    false