Subversion Repositories SmartDukaan

Rev

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

Rev 34307 Rev 34308
Line 545... Line 545...
545
                                .map(String::trim)
545
                                .map(String::trim)
546
                                .map(Integer::parseInt)
546
                                .map(Integer::parseInt)
547
                                .collect(Collectors.toList());
547
                                .collect(Collectors.toList());
548
                    }
548
                    }
549
                    scheduledTasksTest.test(loanIds);
549
                    scheduledTasksTest.test(loanIds);
-
 
550
                } else if (args.containsOption("testNew1")) {
-
 
551
                    if (args.containsOption("createLoan")) {
-
 
552
                        // Extract each parameter
-
 
553
                        int transactionId = 0;
-
 
554
                        double invoiceAmount = 0.0;
-
 
555
                        String invoiceNumber = "";
-
 
556
 
-
 
557
                        if (args.containsOption("transactionId")) {
-
 
558
                            transactionId = Integer.parseInt(args.getOptionValues("transactionId").get(0));
-
 
559
                        }
-
 
560
 
-
 
561
                        if (args.containsOption("invoiceAmount")) {
-
 
562
                            invoiceAmount = Double.parseDouble(args.getOptionValues("invoiceAmount").get(0));
-
 
563
                        }
-
 
564
 
-
 
565
                        if (args.containsOption("invoiceNumber")) {
-
 
566
                            invoiceNumber = args.getOptionValues("invoiceNumber").get(0);
-
 
567
                        }
-
 
568
 
-
 
569
                        // Call your method
-
 
570
                        scheduledTasksTest.createLoanForBillingByTransactionIdAndInvoiceNumber(transactionId, invoiceAmount, invoiceNumber);
-
 
571
                    }
-
 
572
 
550
                } else {
573
                } else {
551
                    System.out.println("Called sendPartnerInvestmentDetails");
574
                    System.out.println("Called sendPartnerInvestmentDetails");
552
                    scheduledTasks.sendPartnerInvestmentDetails();
575
                    scheduledTasks.sendPartnerInvestmentDetails();
553
                }
576
                }
554
                System.exit(0);
577
                System.exit(0);