Status_Formula__c
if(Text(StageName) = '削除', '17 取消',
if(Text(StageName) = '敗戦', '18 失单',
IF(Not(ISNULL(Min_FirstApproveDate__c)) ,
"-",
IF(OR(SAP_Send_OK__c, Text(StageName)="注残", Text(StageName)="出荷", Text(StageName)="完了") ,
"08 已签约",
IF(Not(ISNULL(Sales_Shop_Hospital_Contract__c )) ,
"07 用户已签约",
IF(Not(ISNULL(Agency_Contract_Date1__c )) ,
"06 用户未签约",
IF(Not(ISNULL(Assistant_Applied_Date__c )) ,
"05 价格申请中",
IF(Not(ISNULL(Closing_Bid_Date__c )) ,
"04 已中标",
IF(Not(And(ISNULL(Autholization_Activated_Date__c ),
ISNULL(Authorized_Date__c ))) ,
"03 已授权",
IF(Not(ISNULL(Last_Follow_Up_Date__c )) ,
"02 跟进中",
IF(DATEVALUE(LastModifiedDate) > DATEVALUE(CreatedDate) ,
"01 还没拜访",
"00 还没更新"
)
)
)
)
)
)
)
)
)
)
)
false
if(Text(StageName)='敗戦' && NOT(ISBLANK(Final_Contract_Proceeded_Date__c)),'失单',
if(Text(StageName)='削除' && NOT(ISBLANK(Final_Contract_Proceeded_Date__c)),'取消',
if(Text(StageName)='完了','08 已结束',
if(Text(StageName)='出荷',if(NOT(ISBLANK(Last_Install_Date__c)),'07 已安装',if(NOT(ISBLANK(Shipping_Finished_Day_Func__c)),'06 已发货','')),
if(Text(StageName)='注残',if(NOT(ISBLANK(Last_Delivery_Date__c)),'05 已分配,待发货',if(NOT(ISBLANK(Deposit_In_Full_Day__c)),'04 已订货,付全款',if(NOT(ISBLANK(X30_Deposit_Day_New__c)),'03 已订货,付订金',if(NOT(ISBLANK(Max_LastApproveDate__c)),'02 库存已预留,未付款',if(OR(NOT(ISBLANK(Contract_recognized_day_1__c)),NOT(ISBLANK(Contract_Recieve_Date__c))),'01 已录入订单,未付款',''))))),
if(Text(StageName)='引合',if(NOT(ISBLANK(SAP_Send_OK_Date__c)),'12 已签约',
if(NOT(ISBLANK(Assistant_Applied_Date__c)),'11 价格申请中',
if(NOT(ISBLANK(Closing_Bid_Date__c)),'10 已中标',
if(AND(NOT(ISBLANK(Bid_Date__c)),Bid_Date__c<=Today()),'09 已招标',
if(OR(NOT(ISBLANK(Autholization_Activated_Date__c)),NOT(ISBLANK(Authorized_Date__c))),'08 已授权',
if(AND(NOT(ISBLANK(Determine_oly_parameter_day__c)), TEXT(Opportunity_stage__c) = '确定了OLY参数'),'07 已确认参数(OLY)',
if(AND(NOT(ISBLANK(Determine_competitor_parameter_date__c)), TEXT(Opportunity_stage__c) = '确定了对手参数'),'07 已确认参数(对手)',
if(AND(NOT(ISBLANK(No_Parameter_date__c)), TEXT(Opportunity_stage__c) = '没有确定参数'),'07 已确认参数(中立)',
if(NOT(ISBLANK(ImportDemonstration_Rejection_date__c)),'06 论证未通过',
if(NOT(ISBLANK(ImportDemonstration_Approval_date__c)),'06 论证已通过',
if(NOT(ISBLANK(ImportDemonstration_Filing_date__c)),'05 已申请进口论证',
if(NOT(ISBLANK(Budget_unapproved_date__c)),'04 预算未批准',
if(NOT(ISBLANK(Budget_approval_date__c)),'04 预算已批准',
if(NOT(ISBLANK(Budget_application_date__c)),'03 已申请预算',if(NOT(ISBLANK(LoanApprovedDate__c)),'02 贷款批准',if(NOT(ISBLANK(Last_Follow_Up_Date__c)),'01 跟进中',if(NOT(ISBLANK(CreatedDate)),'00 未跟进',''))))))))))))))))),
''))))))
false
false
false
Text
false