| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| 38 |
@Autowired
|
38 |
@Autowired
|
| 39 |
private CookiesProcessor cookiesProcessor;
|
39 |
private CookiesProcessor cookiesProcessor;
|
| 40 |
|
40 |
|
| 41 |
@RequestMapping(value = "/purchaseByInvoiceNumber", method = RequestMethod.GET)
|
41 |
@RequestMapping(value = "/purchaseByInvoiceNumber", method = RequestMethod.GET)
|
| - |
|
42 |
public String purchaseByAirwayBillOrInvoiceNumber(HttpServletRequest request,
|
| - |
|
43 |
@RequestParam(name = ProfitMandiConstants.AIRWAY_BILL_OR_INVOICE_NUMBER)
|
| 42 |
public String purchaseByAirwayBillOrInvoiceNumber(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.AIRWAY_BILL_OR_INVOICE_NUMBER) String airwayBillOrInvoiceNumber, Model model) throws ProfitMandiBusinessException{
|
44 |
String airwayBillOrInvoiceNumber, Model model) throws ProfitMandiBusinessException{
|
| 43 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
45 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 44 |
LOGGER.info("Request Received at url {} with airwayBillOrInvoiceNumber {}", request.getRequestURI(), airwayBillOrInvoiceNumber);
|
46 |
LOGGER.info("Request Received at url {} with airwayBillOrInvoiceNumber {}", request.getRequestURI(), airwayBillOrInvoiceNumber);
|
| 45 |
Map<String, Object> map = purchaseService.purchaseByInvoiceNumber(airwayBillOrInvoiceNumber, fofoDetails.getFofoId());
|
47 |
Map<String, Object> map = purchaseService.purchaseByInvoiceNumber(airwayBillOrInvoiceNumber, fofoDetails.getFofoId());
|
| 46 |
model.addAllAttributes(map);
|
48 |
model.addAllAttributes(map);
|
| 47 |
return "purchase";
|
49 |
return "purchase";
|