Subversion Repositories SmartDukaan

Rev

Rev 6993 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6993 Rev 7081
Line 45... Line 45...
45
 * 
45
 * 
46
 * @author Rajveer
46
 * @author Rajveer
47
 * 
47
 * 
48
 */
48
 */
49
 
49
 
50
public class InvoiceController implements ServletResponseAware,
50
public class InvoiceController extends BaseController implements ServletResponseAware,
51
		ServletRequestAware, ServletContextAware {
51
		ServletRequestAware, ServletContextAware {
52
    
52
    
53
    private static Logger logger = LoggerFactory.getLogger(InvoiceController.class);
53
    private static Logger logger = LoggerFactory.getLogger(InvoiceController.class);
54
    private ServletContext context;
54
    private ServletContext context;
55
	private HttpServletRequest request;
55
	private HttpServletRequest request;
Line 72... Line 72...
72
                logger.error("Order Id is null or empty");
72
                logger.error("Order Id is null or empty");
73
                return "show";
73
                return "show";
74
            }
74
            }
75
            TransactionClient tc = new TransactionClient("support_transaction_service_server_host", "transaction_service_server_port");
75
            TransactionClient tc = new TransactionClient("support_transaction_service_server_host", "transaction_service_server_port");
76
            TransactionService.Client orderClient = tc.getClient();
76
            TransactionService.Client orderClient = tc.getClient();
77
            buffer = orderClient.retrieveInvoice(Long.parseLong(orderId));
77
            buffer = orderClient.retrieveInvoice(Long.parseLong(orderId), userinfo.getUserId());
78
            if(!buffer.hasArray()) {
78
            if(!buffer.hasArray()) {
79
                logger.error("The invoice does not found");
79
                logger.error("The invoice does not found");
80
            }
80
            }
81
        } catch (Exception e) {
81
        } catch (Exception e) {
82
            System.out.println(e.getMessage());
82
            System.out.println(e.getMessage());