| Line 30... |
Line 30... |
| 30 |
private PurchaseService purchaseService;
|
30 |
private PurchaseService purchaseService;
|
| 31 |
|
31 |
|
| 32 |
@Autowired
|
32 |
@Autowired
|
| 33 |
private CookiesProcessor cookiesProcessor;
|
33 |
private CookiesProcessor cookiesProcessor;
|
| 34 |
|
34 |
|
| 35 |
@RequestMapping(value = "/purchase", method = RequestMethod.POST)
|
35 |
@RequestMapping(value = "/purchaseByInvoiceNumber", method = RequestMethod.GET)
|
| 36 |
public String purchaseByAirwayBillOrInvoiceNumber(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.AIRWAY_BILL_OR_INVOICE_NUMBER) String airwayBillOrInvoiceNumber, Model model) throws ProfitMandiBusinessException{
|
36 |
public String purchaseByAirwayBillOrInvoiceNumber(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.AIRWAY_BILL_OR_INVOICE_NUMBER) String airwayBillOrInvoiceNumber, Model model) throws ProfitMandiBusinessException{
|
| 37 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
37 |
LoginDetails fofoDetails = cookiesProcessor.getCookiesObject(request);
|
| 38 |
LOGGER.info("Request Received at url {} with airwayBillOrInvoiceNumber {}", request.getRequestURI(), airwayBillOrInvoiceNumber);
|
38 |
LOGGER.info("Request Received at url {} with airwayBillOrInvoiceNumber {}", request.getRequestURI(), airwayBillOrInvoiceNumber);
|
| 39 |
|
39 |
|
| 40 |
Map<String, Object> map = purchaseService.purchaseByInvoiceNumber(airwayBillOrInvoiceNumber, fofoDetails.getFofoId());
|
40 |
Map<String, Object> map = purchaseService.purchaseByInvoiceNumber(airwayBillOrInvoiceNumber, fofoDetails.getFofoId());
|