Subversion Repositories SmartDukaan

Rev

Rev 24167 | Rev 24276 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24167 Rev 24271
Line 353... Line 353...
353
	public String getSearchOrderDetails(HttpServletRequest request,
353
	public String getSearchOrderDetails(HttpServletRequest request,
354
			@RequestParam(name = ProfitMandiConstants.INVOICE_NUMBER) String invoiceNumber, Model model)
354
			@RequestParam(name = ProfitMandiConstants.INVOICE_NUMBER) String invoiceNumber, Model model)
355
			throws ProfitMandiBusinessException {
355
			throws ProfitMandiBusinessException {
356
 
356
 
357
		FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
357
		FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
358
		List<FofoOrderItem> fofoLineItems = fofoOrderItemRepository.selectByOrderId(fofoOrder.getId());
358
		List<FofoOrderItem> fofoOrderItems = fofoOrderItemRepository.selectByOrderId(fofoOrder.getId());
359
		Customer customer = customerRepository.selectById(fofoOrder.getCustomerId());
359
		Customer customer = customerRepository.selectById(fofoOrder.getCustomerId());
360
		CustomerAddress customerAddress = customerAddressRepository.selectById(fofoOrder.getCustomerAddressId());
360
		CustomerAddress customerAddress = customerAddressRepository.selectById(fofoOrder.getCustomerAddressId());
361
		List<Integer> fofoPartnerPaymentOptions = fofoPartnerPaymentOptionRepository
361
		List<Integer> fofoPartnerPaymentOptions = fofoPartnerPaymentOptionRepository
362
				.selectPaymentOptionIdsByFofoId(fofoOrder.getFofoId());
362
				.selectPaymentOptionIdsByFofoId(fofoOrder.getFofoId());
363
		LOGGER.info("fofoPartnerPaymentOptions" + fofoPartnerPaymentOptions);
363
		LOGGER.info("fofoPartnerPaymentOptions" + fofoPartnerPaymentOptions);
Line 371... Line 371...
371
		LOGGER.info("paymentOptionIdPaymentOptionTransactionMap" + paymentOptionIdPaymentOptionTransactionMap.keySet());
371
		LOGGER.info("paymentOptionIdPaymentOptionTransactionMap" + paymentOptionIdPaymentOptionTransactionMap.keySet());
372
		List<InsurancePolicy> insurancePolicies = insurancePolicyRepository
372
		List<InsurancePolicy> insurancePolicies = insurancePolicyRepository
373
				.selectByRetailerIdInvoiceNumber(fofoOrder.getFofoId(), fofoOrder.getInvoiceNumber());
373
				.selectByRetailerIdInvoiceNumber(fofoOrder.getFofoId(), fofoOrder.getInvoiceNumber());
374
		this.addInsuranceProvider(insurancePolicies);
374
		this.addInsuranceProvider(insurancePolicies);
375
		model.addAttribute("fofoOrder", fofoOrder);
375
		model.addAttribute("fofoOrder", fofoOrder);
-
 
376
		for(FofoOrderItem fofoOrderItem : fofoOrderItems) {
-
 
377
			fofoOrderItem.setDoa(true);
-
 
378
		}
376
		model.addAttribute("fofoLineItems", fofoLineItems);
379
		model.addAttribute("fofoOrderItems", fofoOrderItems);
-
 
380
		model.addAttribute("markDefective", true);
377
		model.addAttribute("customer", customer);
381
		model.addAttribute("customer", customer);
378
		model.addAttribute("customerAddress", customerAddress);
382
		model.addAttribute("customerAddress", customerAddress);
379
		model.addAttribute("paymentOptionTransactions", paymentOptionTransactions);
383
		model.addAttribute("paymentOptionTransactions", paymentOptionTransactions);
380
		model.addAttribute("paymentOptionIdPaymentOptionMap", paymentOptionIdPaymentOptionMap);
384
		model.addAttribute("paymentOptionIdPaymentOptionMap", paymentOptionIdPaymentOptionMap);
381
		model.addAttribute("paymentOptionIdPaymentOptionTransactionMap", paymentOptionIdPaymentOptionTransactionMap);
385
		model.addAttribute("paymentOptionIdPaymentOptionTransactionMap", paymentOptionIdPaymentOptionTransactionMap);