| | |
| | | query = 'select id,quoteSavedDate__c,Opportunity.Id,Opportunity.Department_Class__c from quote where Quote_No_last2__c = \'01\' and CreatedDate = today'; |
| | | } |
| | | |
| | | System.debug(LoggingLevel.INFO, '*** query: ' + query); |
| | | |
| | | return Database.getQueryLocator(query); |
| | | } |
| | | |
| | |
| | | for ( QuoteLineItem qlt1:qlt ) { |
| | | ca4.add(qlt1.Product2.Category4__c); |
| | | } |
| | | if (!mapc4.containskey(qlt[0].QuoteId)) { |
| | | if (qlt.size() > 0 && !mapc4.containskey(qlt[0].QuoteId)) { |
| | | mapc4.put(qlt[0].QuoteId,ca4); |
| | | } |
| | | } |
| | |
| | | Date createdDateYear = createdDateStr.addYears(-1); |
| | | |
| | | for (Rental_Apply_Equipment_Set_Detail__c raesd : raesdList) { |
| | | if (raesd.Rental_Apply__r.Strategic_dept__c == quo.Opportunity.Department_Class__c && mapc4.containskey(quo.id) && mapc4.get(quo.id).contains(raesd.Category4__c) && raesd.Bollow_Date__c >= createdDateYear) { |
| | | if (raesd.Rental_Apply__r.Strategic_dept__c == quo.Opportunity.Department_Class__c && mapc4.containskey(quo.Id) && mapc4.get(quo.id).contains(raesd.Category4__c) && raesd.Bollow_Date__c >= createdDateYear) { |
| | | o.WhetherTrySpareParts_3m__c = false; |
| | | o.WhetherTrySpareParts_6m__c = false; |
| | | o.WhetherTrySpareParts_1y__c = false; |