| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| - |
|
3 |
import com.spice.profitmandi.service.warehouse.BillingWarehouseService;
|
| - |
|
4 |
|
| 3 |
import com.spice.profitmandi.common.enumuration.ActivationType;
|
5 |
import com.spice.profitmandi.common.enumuration.ActivationType;
|
| 4 |
import com.spice.profitmandi.common.enumuration.CounterSize;
|
6 |
import com.spice.profitmandi.common.enumuration.CounterSize;
|
| 5 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
7 |
import com.spice.profitmandi.common.enumuration.MessageType;
|
| 6 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 7 |
import com.spice.profitmandi.common.model.*;
|
9 |
import com.spice.profitmandi.common.model.*;
|
| Line 87... |
Line 89... |
| 87 |
|
89 |
|
| 88 |
@Controller
|
90 |
@Controller
|
| 89 |
@Transactional(rollbackFor = Throwable.class)
|
91 |
@Transactional(rollbackFor = Throwable.class)
|
| 90 |
public class IndentController {
|
92 |
public class IndentController {
|
| 91 |
|
93 |
|
| - |
|
94 |
@Autowired
|
| - |
|
95 |
private BillingWarehouseService billingWarehouseService;
|
| - |
|
96 |
|
| - |
|
97 |
|
| 92 |
private static final Logger LOGGER = LogManager.getLogger(IndentController.class);
|
98 |
private static final Logger LOGGER = LogManager.getLogger(IndentController.class);
|
| 93 |
private static final Set<Integer> defaultTags = new HashSet<Integer>(Arrays.asList(4));
|
99 |
private static final Set<Integer> defaultTags = new HashSet<Integer>(Arrays.asList(4));
|
| 94 |
|
100 |
|
| 95 |
private final List<OrderStatus> partnerPendingOrderList = Arrays.asList(OrderStatus.ACCEPTED,
|
101 |
private final List<OrderStatus> partnerPendingOrderList = Arrays.asList(OrderStatus.ACCEPTED,
|
| 96 |
OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.BILLED, OrderStatus.SHIPPED_FROM_WH,
|
102 |
OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.BILLED, OrderStatus.SHIPPED_FROM_WH,
|
| Line 2880... |
Line 2886... |
| 2880 |
|
2886 |
|
| 2881 |
}
|
2887 |
}
|
| 2882 |
|
2888 |
|
| 2883 |
@RequestMapping(value = "/indent/send-po-notification", method = RequestMethod.GET)
|
2889 |
@RequestMapping(value = "/indent/send-po-notification", method = RequestMethod.GET)
|
| 2884 |
public String SendPONotification(HttpServletRequest request, Model model) {
|
2890 |
public String SendPONotification(HttpServletRequest request, Model model) {
|
| 2885 |
model.addAttribute("warehouses", ProfitMandiConstants.WAREHOUSE_MAP);
|
2891 |
model.addAttribute("warehouses", billingWarehouseService.getActiveWarehouses());
|
| 2886 |
return "send-po-notification";
|
2892 |
return "send-po-notification";
|
| 2887 |
}
|
2893 |
}
|
| 2888 |
|
2894 |
|
| 2889 |
@RequestMapping(value = "/indent/send-po-notification", method = RequestMethod.POST)
|
2895 |
@RequestMapping(value = "/indent/send-po-notification", method = RequestMethod.POST)
|
| 2890 |
public String sendPONotification(HttpServletRequest request, @RequestBody POItemWarehouseModel poItemWarehouseModel,
|
2896 |
public String sendPONotification(HttpServletRequest request, @RequestBody POItemWarehouseModel poItemWarehouseModel,
|