Subversion Repositories SmartDukaan

Rev

Rev 16348 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16348 Rev 23839
Line 185... Line 185...
185
    	}        
185
    	}        
186
        if (getEmailType().equalsIgnoreCase("BulkEmail")){
186
        if (getEmailType().equalsIgnoreCase("BulkEmail")){
187
            ticket.setCategory(TicketCategory.Bulk_Order_ENQUIRY);
187
            ticket.setCategory(TicketCategory.Bulk_Order_ENQUIRY);
188
        }
188
        }
189
        else{
189
        else{
190
        	if(emailToIds.contains("help@profitmandi.com")){
190
        	if(emailToIds.contains("help@smartdukaan.com")){
191
        		ticket.setCategory(TicketCategory.PROFITMANDI_OTHER);
191
        		ticket.setCategory(TicketCategory.PROFITMANDI_OTHER);
192
        	} else {
192
        	} else {
193
        		ticket.setCategory(TicketCategory.OTHER);
193
        		ticket.setCategory(TicketCategory.OTHER);
194
        	}
194
        	}
195
        }
195
        }
Line 203... Line 203...
203
            ticket.setCustomerEmailId(customerEmailId);
203
            ticket.setCustomerEmailId(customerEmailId);
204
        } else {
204
        } else {
205
            ticket.setCustomerId(user.getUserId());
205
            ticket.setCustomerId(user.getUserId());
206
        }
206
        }
207
 
207
 
208
        if(emailToIds.contains("help@profitmandi.com")){
208
        if(emailToIds.contains("help@smartdukaan.com")){
209
        	ticket.setCustomerEmailId(customerEmailId);
209
        	ticket.setCustomerEmailId(customerEmailId);
210
        	if(user != null && user.getUserId() != -1)
210
        	if(user != null && user.getUserId() != -1)
211
        		ticket.setCustomerId(user.getUserId());
211
        		ticket.setCustomerId(user.getUserId());
212
        }
212
        }
213
        ticket.setDescription(description);
213
        ticket.setDescription(description);
Line 221... Line 221...
221
        activity.setTicketCategory(ticket.getCategory());
221
        activity.setTicketCategory(ticket.getCategory());
222
        activity.setTicketDescription(ticket.getDescription());
222
        activity.setTicketDescription(ticket.getDescription());
223
        activity.setTicketPriority(ticket.getPriority());
223
        activity.setTicketPriority(ticket.getPriority());
224
        activity.setTicketStatus(ticket.getStatus());
224
        activity.setTicketStatus(ticket.getStatus());
225
        activity.setType(ActivityType.RECEIVED_EMAIL_FROM_CUSTOMER);
225
        activity.setType(ActivityType.RECEIVED_EMAIL_FROM_CUSTOMER);
226
        if(emailToIds.contains("help@profitmandi.com")){
226
        if(emailToIds.contains("help@smartdukaan.com")){
227
        	activity.setTicketAssigneeId(34);
227
        	activity.setTicketAssigneeId(34);
228
        }
228
        }
229
        activity.setCreatorId(CRMConstants.ADMIN_AGENT_ID);
229
        activity.setCreatorId(CRMConstants.ADMIN_AGENT_ID);
230
        activity.setIsRead(false);
230
        activity.setIsRead(false);
231
 
231