Subversion Repositories SmartDukaan

Rev

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

Rev 33078 Rev 33260
Line 181... Line 181...
181
    @Override
181
    @Override
182
    public void run(ApplicationArguments args) throws Exception {
182
    public void run(ApplicationArguments args) throws Exception {
183
        //scheduledTasks.test();
183
        //scheduledTasks.test();
184
        //System.exit();
184
        //System.exit();
185
        LOGGER.info("Called run method");
185
        LOGGER.info("Called run method");
186
        if(args.containsOption("removePartialBillingForTransaction")) {
186
        if (args.containsOption("removePartialBillingForTransaction")) {
187
            if(args.containsOption("trId")) {
187
            if (args.containsOption("trId")) {
188
                int transactionId = Integer.parseInt(args.getOptionValues("trId").get(0));
188
                int transactionId = Integer.parseInt(args.getOptionValues("trId").get(0));
189
                scheduledTasks.removePartialBillingForTransaction(transactionId);
189
                scheduledTasks.removePartialBillingForTransaction(transactionId);
190
            }
190
            }
191
            System.exit(0);
191
            System.exit(0);
192
        }
192
        }
Line 480... Line 480...
480
                    String oneAssistInvoiceNumber = args.getOptionValues("invoiceNumber").get(0);
480
                    String oneAssistInvoiceNumber = args.getOptionValues("invoiceNumber").get(0);
481
                    runOnceTasks.cancelOnceAssist(oneAssistInvoiceNumber);
481
                    runOnceTasks.cancelOnceAssist(oneAssistInvoiceNumber);
482
                }
482
                }
483
 
483
 
484
            }
484
            }
-
 
485
            if (args.containsOption("changeFulfillmentWarehouse")) {
-
 
486
                if (args.containsOption("orderId") && args.containsOption("whId")) {
-
 
487
                    int orderId = Integer.parseInt(args.getOptionValues("orderId").get(0));
-
 
488
                    int itemId = Integer.parseInt(args.getOptionValues("whId").get(0));
-
 
489
                    runOnceTasks.changeFulfillmentWarehouse(orderId, itemId);
-
 
490
                }
-
 
491
                System.exit(0);
-
 
492
            }
485
            if (args.containsOption("1")) {
493
            if (args.containsOption("1")) {
486
                if (args.containsOption("test")) {
494
                if (args.containsOption("test")) {
487
                    //scheduledTasks.sendPartnerInvestmentDetails(args.getOptionValues("email"));
495
                    //scheduledTasks.sendPartnerInvestmentDetails(args.getOptionValues("email"));
488
                    System.out.println("Calling test method");
496
                    System.out.println("Calling test method");
489
                    scheduledTasks.test();
497
                    scheduledTasks.test();