Subversion Repositories SmartDukaan

Rev

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

Rev 37613 Rev 37617
Line 410... Line 410...
410
            String operatorEmail = args.getOptionValues("email").get(0);
410
            String operatorEmail = args.getOptionValues("email").get(0);
411
            boolean dryRun = args.containsOption("dryRun");
411
            boolean dryRun = args.containsOption("dryRun");
412
            internalGrnTask.grnInternalInvoices(invoiceNumbers, operatorEmail, dryRun);
412
            internalGrnTask.grnInternalInvoices(invoiceNumbers, operatorEmail, dryRun);
413
            System.exit(0);
413
            System.exit(0);
414
        }
414
        }
-
 
415
        if (args.containsOption("reverseGrnInternal")) {
-
 
416
            if (!args.containsOption("invoices")) {
-
 
417
                LOGGER.error("reverseGrnInternal needs --invoices=A,B");
-
 
418
                System.exit(1);
-
 
419
            }
-
 
420
            List<String> invoiceNumbers = new ArrayList<>();
-
 
421
            for (String value : args.getOptionValues("invoices")) {
-
 
422
                for (String invoiceNumber : value.split(",")) {
-
 
423
                    if (!invoiceNumber.trim().isEmpty()) {
-
 
424
                        invoiceNumbers.add(invoiceNumber.trim());
-
 
425
                    }
-
 
426
                }
-
 
427
            }
-
 
428
            internalGrnTask.reverseInternalInvoices(invoiceNumbers, args.containsOption("dryRun"));
-
 
429
            System.exit(0);
-
 
430
        }
415
        if (args.containsOption("processSchemeOut")) {
431
        if (args.containsOption("processSchemeOut")) {
416
            System.out.println("Process schemeOut");
432
            System.out.println("Process schemeOut");
417
            int orderId = Integer.parseInt(args.getOptionValues("orderid").get(0));
433
            int orderId = Integer.parseInt(args.getOptionValues("orderid").get(0));
418
            int fofoId = Integer.parseInt(args.getOptionValues("fofoid").get(0));
434
            int fofoId = Integer.parseInt(args.getOptionValues("fofoid").get(0));
419
            runOnceTasks.processSchemeOut(fofoId, orderId);
435
            runOnceTasks.processSchemeOut(fofoId, orderId);