From a48ed9f335db52a433a2b343ff9636a28ee8a97f Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期四, 10 三月 2022 18:53:59 +0800
Subject: [PATCH] New xml file for PIPL20220310

---
 force-app/main/default/classes/SampleInventoryControllerTest.cls |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/SampleInventoryControllerTest.cls b/force-app/main/default/classes/SampleInventoryControllerTest.cls
index 5c852cb..71e649f 100644
--- a/force-app/main/default/classes/SampleInventoryControllerTest.cls
+++ b/force-app/main/default/classes/SampleInventoryControllerTest.cls
@@ -6,12 +6,21 @@
         if (rectCo.size() == 0) {
             throw new ControllerUtil.myException('not found 鍔炰簨澶� recodetype');
         }
+        List<RecordType> rectCo1 = [select Id from RecordType where IsActive = true and SobjectType = 'Sample_order_list_detail__c' and Name = '鐩樼偣'];
+        if (rectCo.size() == 0) {
+            throw new ControllerUtil.myException('not found 鐩樼偣 recodetype');
+        }
         // 瀹㈡埛
+        Account account2 = new Account();
+		account2.Name = 'test1缁忛攢鍟�';
+        account2.RecordTypeId = '01210000000Qem1';
+        insert account2;
         Account Agency = new Account();
         Agency.RecordTypeId = rectCo[0].Id;
         Agency.Name = 'Katsu 銉嗐偣銉�';
         Agency.Quolified_Approve_Status__c = 'Draft';
         Agency.If_Need_Quolified__c = true;
+        Agency.ParentId = account2.Id;
         insert Agency;
         // 浜у搧
         Product2 product = new Product2();
@@ -55,7 +64,7 @@
         samOrderDetail.Standards__c        = 1;
         samOrderDetail.ItemQuantity__c     = 1;
         samOrderDetail.Inventory_Check__c  = 10;
-        samOrderDetail.RecordTypeId        = '0121m000000xWyw';
+        samOrderDetail.RecordTypeId        = rectCo1[0].Id;
         samOrderDetail.Inventory_Header__c = IHN.Id;
         insert samOrderDetail;
 

--
Gitblit v1.9.1