| | |
| | | @isTest |
| | | private class SelectAssetEstimateURFControllerTest { |
| | | private static Id pricebookId = ControllerUtil.getStandardPricebook().Id; |
| | | static Asset createAsset(String input, String accountid, String dcId, String hpId, String serialNo, String prId, String mark ) { |
| | | static Asset createAsset(String input, String accountid, String dcId, String hpId, String serialNo, String prId, String mark ) { |
| | | Asset asset = new Asset(); |
| | | asset.Name = input; |
| | | asset.AccountId = accountid; |
| | |
| | | dep.Hospital__c = hospital.Id; |
| | | insert dep; |
| | | |
| | | ProductURF__c purf = new ProductURF__c(UFR_MaxRepairCount__c = 2,URFLimitSerial__c = 'URF-P',Maintenance_Price_Year_URF__c = 1200); |
| | | ProductURF__c purf = new ProductURF__c(UFR_MaxRepairCount__c = 2,URFLimitSerial__c = 'URF-P',Maintenance_Price_Year_URF__c = 1200); |
| | | insert purf; |
| | | // 製品を作る |
| | | Product2 productA = new Product2( Name='テスト商品', Maintenance_Price_Year__c = 12000, Manual_Entry__c = false,ProductURF__c = purf.Id); |