binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>SFDA_Status_New__c</fullName>
    <externalId>false</externalId>
    <formula>CASE(TEXT(Product_Status__c), 
&quot;准备中&quot;, 
CASE(SFDA_Approbated_Status__c,&quot;新产品注册中&quot;,&quot;新製品申請中&quot;,&quot;準備中&quot;), 
&quot;正常销售&quot;, 
CASE(SFDA_Approbated_Status__c, 
&quot;新产品注册中&quot;,&quot;新製品申請中&quot;, 
&quot;有效&quot;,&quot;有効&quot;, 
&quot;失效-重新申请中&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;失効(再申請中)&quot;), 
&quot;失效-不再注册&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;失効(申請無)&quot;), 
&quot;不要&quot;,IF(Isblank(CertificateNo__c),&quot;不要&quot;,if(AND(Not(Isblank(CertificateNo__c)), Not(Isblank(EffectiveFrom__c)), Not(Isblank(EffectiveTo__c)),EffectiveFrom__c &lt;= Today(), Today() &lt;= EffectiveTo__c),&quot;不要&quot;,&quot;停止&quot;)),
&quot;準備中&quot;), 
&quot;停止销售&quot;, 
CASE(SFDA_Approbated_Status__c, 
&quot;新产品注册中&quot;,&quot;新製品申請中&quot;, 
&quot;有效&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;停止&quot;), 
&quot;失效-重新申请中&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;失効(再申請中)&quot;), 
&quot;失效-不再注册&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;失効(申請無)&quot;), 
&quot;不要&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;停止&quot;), 
&quot;準備中&quot;), 
&quot;暂停出库&quot;, 
CASE(SFDA_Approbated_Status__c, 
&quot;新产品注册中&quot;,&quot;新製品申請中&quot;, 
&quot;有效&quot;,&quot;暂停出库(长期)&quot;, 
&quot;失效-重新申请中&quot;,IF(StorageStatusNo__c&gt;0,&quot;暂停出库(长期)&quot;,&quot;失効(再申請中)&quot;), 
&quot;失效-不再注册&quot;,IF(StorageStatusNo__c&gt;0,&quot;暂停出库(长期)&quot;,&quot;失効(申請無)&quot;), 
&quot;不要&quot;,&quot;暂停出库(长期)&quot;, 
&quot;準備中&quot;), 
&quot;停产&quot;, 
CASE(SFDA_Approbated_Status__c, 
&quot;新产品注册中&quot;,&quot;新製品申請中&quot;, 
&quot;有效&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;停止&quot;), 
&quot;失效-重新申请中&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;失効(再申請中)&quot;), 
&quot;失效-不再注册&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;失効(申請無)&quot;), 
&quot;不要&quot;,IF(StorageStatusNo__c&gt;0,&quot;失効(期限内生産済在庫対応)&quot;,&quot;停止&quot;), 
&quot;準備中&quot;), 
&quot;暂停出库(短期)&quot;, 
CASE(SFDA_Approbated_Status__c, 
&quot;新产品注册中&quot;,&quot;新製品申請中&quot;, 
&quot;有效&quot;,&quot;暂停出库(短期)&quot;, 
&quot;失效-重新申请中&quot;,IF(StorageStatusNo__c&gt;0,&quot;暂停出库(短期)&quot;,&quot;失効(再申請中)&quot;), 
&quot;失效-不再注册&quot;,IF(StorageStatusNo__c&gt;0,&quot;暂停出库(短期)&quot;,&quot;失効(申請無)&quot;), 
&quot;不要&quot;,&quot;暂停出库(短期)&quot;, 
&quot;準備中&quot;), 
&quot;準備中&quot;)</formula>
    <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
    <label>销售状态(公式)</label>
    <required>false</required>
    <trackHistory>false</trackHistory>
    <type>Text</type>
    <unique>false</unique>
</CustomField>