Subversion Repositories SmartDukaan

Rev

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

Rev 22660 Rev 22666
Line 280... Line 280...
280
		}
280
		}
281
		try{
281
		try{
282
			FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(fofoDetails.getFofoId(), orderId);
282
			FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndOrderId(fofoDetails.getFofoId(), orderId);
283
			List<FofoLineItem> fofoLineItems = fofoLineItemRepository.selectByOrderId(fofoOrder.getId());
283
			List<FofoLineItem> fofoLineItems = fofoLineItemRepository.selectByOrderId(fofoOrder.getId());
284
			CustomerAddress customerAddress = customerAddressRepository.selectById(fofoOrder.getCustomerAddressId());
284
			CustomerAddress customerAddress = customerAddressRepository.selectById(fofoOrder.getCustomerAddressId());
-
 
285
			Customer customer  = customerRepository.selectById(fofoOrder.getCustomerId());
-
 
286
			customerAddress.setPhoneNumber(customer.getMobileNumber());
285
			List<PaymentOption> paymentOptions = paymentOptionRepository.selectByOrderId(fofoOrder.getId());
287
			List<PaymentOption> paymentOptions = paymentOptionRepository.selectByOrderId(fofoOrder.getId());
286
			List<InsurancePolicy> insurancePolicies = insurancePolicyRepository.selectByInvoiceNumber(fofoOrder.getInvoiceNumber());
288
			List<InsurancePolicy> insurancePolicies = insurancePolicyRepository.selectByInvoiceNumber(fofoOrder.getInvoiceNumber());
287
			model.addAttribute("fofoOrder", fofoOrder);
289
			model.addAttribute("fofoOrder", fofoOrder);
288
			model.addAttribute("fofoLineItems", fofoLineItems);
290
			model.addAttribute("fofoLineItems", fofoLineItems);
289
			model.addAttribute("customerBillingAddress", getBillingAddress(customerAddress));
291
			model.addAttribute("customerBillingAddress", getBillingAddress(customerAddress));