Subversion Repositories SmartDukaan

Rev

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

Rev 37631 Rev 37636
Line 736... Line 736...
736
                    } catch (Throwable e) {
736
                    } catch (Throwable e) {
737
                        throw new RuntimeException(e);
737
                        throw new RuntimeException(e);
738
                    }
738
                    }
739
                    System.exit(0);
739
                    System.exit(0);
740
 
740
 
741
                    if (args.containsOption("migrateVendorItemPricing")) {
-
 
742
                        scheduledTasks.migrateVendorItemPricing();
-
 
743
                        System.exit(0);
-
 
744
                    }
-
 
745
 
-
 
746
                    if (args.containsOption("approveVendorCatalogPricing")) {
741
                    if (args.containsOption("approveVendorCatalogPricing")) {
747
                        scheduledTasks.approveVendorCatalogPricing();
742
                        scheduledTasks.approveVendorCatalogPricing();
748
                        System.exit(0);
743
                        System.exit(0);
749
                    }
744
                    }
750
                } else if (args.containsOption("test1")) {
745
                } else if (args.containsOption("test1")) {
Line 1369... Line 1364...
1369
                boolean dryRun = !args.containsOption("live");
1364
                boolean dryRun = !args.containsOption("live");
1370
                System.out.println("Calling sendCreditNote (dryRun=" + dryRun + ")");
1365
                System.out.println("Calling sendCreditNote (dryRun=" + dryRun + ")");
1371
                YearMonth yearMonth = YearMonth.now().minusMonths(1);
1366
                YearMonth yearMonth = YearMonth.now().minusMonths(1);
1372
                scheduledTasks.sendCreditNote(yearMonth, dryRun);
1367
                scheduledTasks.sendCreditNote(yearMonth, dryRun);
1373
            }
1368
            }
1374
            if (args.containsOption("syncHotDealFlags")) {
-
 
1375
                try {
-
 
1376
                    System.out.println("Calling syncHotDealFlags");
-
 
1377
                    scheduledTasks.syncHotDealFlags();
-
 
1378
                    System.out.println("syncHotDealFlags completed successfully");
-
 
1379
                } catch (Exception e) {
-
 
1380
                    System.err.println("syncHotDealFlags FAILED: " + e.getMessage());
-
 
1381
                    e.printStackTrace(System.err);
-
 
1382
                }
-
 
1383
            }
-
 
1384
            if (args.containsOption("regenMarginIrns")) {
1369
            if (args.containsOption("regenMarginIrns")) {
1385
                // One-time: generate missing IRNs for issued margin CN/DNs (mixed-sign docs
1370
                // One-time: generate missing IRNs for issued margin CN/DNs (mixed-sign docs
1386
                // now netted per GST rate in the payload). Dry-run by default; --live to run.
1371
                // now netted per GST rate in the payload). Dry-run by default; --live to run.
1387
                boolean dryRun = !args.containsOption("live");
1372
                boolean dryRun = !args.containsOption("live");
1388
                try {
1373
                try {