| | |
| | | // 1 主体上架,2 主体调拨,3附属品上架 |
| | | @isTest |
| | | public static void test_stockup_AfterMainTransfer() { |
| | | Oly_TriggerHandler.bypass(AssetHandler.class.getName()); |
| | | |
| | | setupTestData2(); |
| | | |
| | | List<Rental_Apply_Equipment_Set_Detail__c> raesds = [ |
| | |
| | | // 1 附属品上架,2 附属品部分调拨,3主体上架 |
| | | @isTest |
| | | public static void test_stockup_AfterAccessoryTransfer() { |
| | | Oly_TriggerHandler.bypass(AssetHandler.class.getName()); |
| | | setupTestData2(); |
| | | |
| | | List<Rental_Apply__c> raList = [SELECT Id FROM Rental_Apply__c]; |
| | | |
| | | PageReference ref = new PageReference('/apex/RentalAgencyReceived?id=' + raList[0].Id); |
| | |
| | | controller.esdList[2].lostFinished = 'OK'; |
| | | controller.esdList[2].cdsFinished = 'OK'; |
| | | |
| | | Test.startTest(); |
| | | controller.lostAndCDS(); |
| | | System.assertEquals('欠品', controller.esdList[0].rec.Check_lost_Item__c); |
| | | System.assertEquals(false, controller.esdList[0].rec.CDS_complete__c); |
| | |
| | | System.assertEquals(true, controller.esdList[2].rec.CDS_complete__c); |
| | | System.assertEquals(true, controller.done_flg); |
| | | |
| | | Test.startTest(); |
| | | |
| | | controller.stepName = '回库确认'; |
| | | controller.esdList[0].checked = true; |
| | | controller.esdList[1].rec.Arrival_wh_Result_Agency__c = '待修理'; |