Subversion Repositories SmartDukaan

Rev

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

Rev 7399 Rev 7409
Line 334... Line 334...
334
                return "index";
334
                return "index";
335
            }
335
            }
336
            TransactionClient transactionServiceClient = new TransactionClient();
336
            TransactionClient transactionServiceClient = new TransactionClient();
337
            TransactionService.Client orderClient = transactionServiceClient.getClient();
337
            TransactionService.Client orderClient = transactionServiceClient.getClient();
338
            //TODO : dynamically get StoreId
338
            //TODO : dynamically get StoreId
339
            buffer = orderClient.getStoreOrderAdvanceInvoice(number, 1);
339
            buffer = orderClient.getStoreOrderAdvanceInvoice(number, Long.parseLong((String) request.getSession().getAttribute("STORE_ID")));
340
            if(!buffer.hasArray()) {
340
            if(!buffer.hasArray()) {
341
                log.error("The invoice was not found for orderId : " + 1);
341
                log.error("The invoice was not found for orderId : " + number);
342
            }
342
            }
343
        } catch (Exception e) {
343
        } catch (Exception e) {
344
            System.out.println(e.getMessage());
344
            System.out.println(e.getMessage());
345
        }
345
        }
346
        response.setContentType("application/pdf");
346
        response.setContentType("application/pdf");