| Line 441... |
Line 441... |
| 441 |
order = transactionServiceClient.getClient().getOrder(orderId);
|
441 |
order = transactionServiceClient.getClient().getOrder(orderId);
|
| 442 |
long creatorId = CRMAuthorizingRealm.getAgent(currentAgentEmailId).getId();
|
442 |
long creatorId = CRMAuthorizingRealm.getAgent(currentAgentEmailId).getId();
|
| 443 |
Ticket ticket = new Ticket();
|
443 |
Ticket ticket = new Ticket();
|
| 444 |
ticket.setDescription("Creating ticket for Order Cancellation due to Low inventory");
|
444 |
ticket.setDescription("Creating ticket for Order Cancellation due to Low inventory");
|
| 445 |
ticket.setCreatorId(creatorId);
|
445 |
ticket.setCreatorId(creatorId);
|
| 446 |
ticket.setAssigneeId(36);
|
446 |
ticket.setAssigneeId(51);
|
| 447 |
ticket.setStatus(TicketStatus.OPEN);
|
447 |
ticket.setStatus(TicketStatus.OPEN);
|
| 448 |
ticket.setPriority(TicketPriority.MEDIUM);
|
448 |
ticket.setPriority(TicketPriority.MEDIUM);
|
| 449 |
ticket.setCategory(TicketCategory.LOW_INVENTORY_CANCELLED_ORDERS);
|
449 |
ticket.setCategory(TicketCategory.LOW_INVENTORY_CANCELLED_ORDERS);
|
| 450 |
ticket.setOrderId(orderId);
|
450 |
ticket.setOrderId(orderId);
|
| 451 |
ticket.setCustomerId(order.getCustomer_id());
|
451 |
ticket.setCustomerId(order.getCustomer_id());
|
| Line 457... |
Line 457... |
| 457 |
activity.setDescription("Creating Ticket");
|
457 |
activity.setDescription("Creating Ticket");
|
| 458 |
activity.setType(ActivityType.OTHER);
|
458 |
activity.setType(ActivityType.OTHER);
|
| 459 |
activity.setTicketPriority(TicketPriority.MEDIUM);
|
459 |
activity.setTicketPriority(TicketPriority.MEDIUM);
|
| 460 |
activity.setTicketStatus(TicketStatus.OPEN);
|
460 |
activity.setTicketStatus(TicketStatus.OPEN);
|
| 461 |
activity.setCreatorId(creatorId);
|
461 |
activity.setCreatorId(creatorId);
|
| 462 |
activity.setTicketAssigneeId(36);
|
462 |
activity.setTicketAssigneeId(51);
|
| 463 |
activity.setTicketCategory(TicketCategory.LOW_INVENTORY_CANCELLED_ORDERS);
|
463 |
activity.setTicketCategory(TicketCategory.LOW_INVENTORY_CANCELLED_ORDERS);
|
| 464 |
activity.setTicketDescription("Creating ticket for Order Cancellation due to Low inventory");
|
464 |
activity.setTicketDescription("Creating ticket for Order Cancellation due to Low inventory");
|
| 465 |
activity.setCustomerId(order.getCustomer_id());
|
465 |
activity.setCustomerId(order.getCustomer_id());
|
| 466 |
activity.setCustomerName(order.getCustomer_name());
|
466 |
activity.setCustomerName(order.getCustomer_name());
|
| 467 |
activity.setCustomerEmailId(order.getCustomer_email());
|
467 |
activity.setCustomerEmailId(order.getCustomer_email());
|