| | |
| | | if (rectCo.size() == 0) { |
| | | throw new ControllerUtil.myException('not found 办事处 recodetype'); |
| | | } |
| | | Account account2 = new Account(); |
| | | account2.Name = 'test1经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | insert account2; |
| | | // 客户 |
| | | Account account = new Account(); |
| | | account.RecordTypeId = rectCo[0].Id; |
| | |
| | | account.Name = 'Katsu テスト'; |
| | | account.Quolified_Approve_Status__c = 'Draft'; |
| | | account.If_Need_Quolified__c = true; |
| | | account.ParentId = account2.Id; |
| | | insert account; |
| | | |
| | | Product2 product = new Product2(); |
| | |
| | | throw new ControllerUtil.myException('not found 办事处 recodetype'); |
| | | } |
| | | // 客户 |
| | | Account account2 = new Account(); |
| | | account2.Name = 'test1经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | insert account2; |
| | | Account account = new Account(); |
| | | account.RecordTypeId = rectCo[0].Id; |
| | | account.Phone = '13888888888'; |
| | | account.Name = 'Katsu テスト'; |
| | | account.Quolified_Approve_Status__c = 'Draft'; |
| | | account.If_Need_Quolified__c = true; |
| | | account.ParentId = account2.Id; |
| | | insert account; |
| | | //查不出任何样本品,SFDA_Status__c会被触发器修改为停止 |
| | | Product2 product = new Product2(); |