| Line 127... |
Line 127... |
| 127 |
purchaseService.scanSerializedItems(scanSerializedRequest, fofoDetails.getFofoId());
|
127 |
purchaseService.scanSerializedItems(scanSerializedRequest, fofoDetails.getFofoId());
|
| 128 |
}
|
128 |
}
|
| 129 |
return responseSender.ok(true);
|
129 |
return responseSender.ok(true);
|
| 130 |
}
|
130 |
}
|
| 131 |
|
131 |
|
| - |
|
132 |
@RequestMapping(value = "/purchase/get-imeis", method = RequestMethod.GET)
|
| - |
|
133 |
public ResponseEntity<?> grnImeis(HttpServletRequest request, @RequestParam String invoiceNumber, @RequestParam int itemId) throws ProfitMandiBusinessException {
|
| - |
|
134 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| - |
|
135 |
List<String> serialNumbers = orderRepository.selectSerialNumbersByInvoiceItem(invoiceNumber, itemId, fofoDetails.getFofoId());
|
| - |
|
136 |
ImeiInoviceModel imeiInoviceModel = new ImeiInoviceModel();
|
| - |
|
137 |
imeiInoviceModel.setInvoiceNumber(invoiceNumber);
|
| - |
|
138 |
imeiInoviceModel.setSerialNumbers(serialNumbers);
|
| - |
|
139 |
List<String> validSerialNumbers = this.getImeiValidationMap(fofoDetails.getFofoId(), imeiInoviceModel).entrySet().stream().filter(x -> x.getValue()).map(x -> x.getKey()).collect(Collectors.toList());
|
| - |
|
140 |
return responseSender.ok(validSerialNumbers);
|
| - |
|
141 |
}
|
| - |
|
142 |
|
| 132 |
|
143 |
|
| 133 |
@RequestMapping(value = "/pendingGrnDetails", method = RequestMethod.GET)
|
144 |
@RequestMapping(value = "/pendingGrnDetails", method = RequestMethod.GET)
|
| 134 |
public String pendingGrnDetails(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.ORDER_ID) int orderId, Model model) throws ProfitMandiBusinessException {
|
145 |
public String pendingGrnDetails(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.ORDER_ID) int orderId, Model model) throws ProfitMandiBusinessException {
|
| 135 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
146 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 136 |
LOGGER.info("Request Received at url [{}] with orderId [{}]", request.getRequestURI(), orderId);
|
147 |
LOGGER.info("Request Received at url [{}] with orderId [{}]", request.getRequestURI(), orderId);
|