Subversion Repositories SmartDukaan

Rev

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

Rev 25508 Rev 25512
Line 606... Line 606...
606
		// throw new Exception();
606
		// throw new Exception();
607
	}
607
	}
608
 
608
 
609
	public void fixSchemePayouts() throws Exception {
609
	public void fixSchemePayouts() throws Exception {
610
 
610
 
611
		LocalDateTime startDate = LocalDate.of(2019, 8, 30).atStartOfDay();
611
		LocalDateTime startDate = LocalDate.of(2019, 9, 1).atStartOfDay();
612
		/*List<SchemeInOut> sios = schemeInOutRepository.selectAllByCreateDate(startDate, LocalDateTime.now());
612
		List<SchemeInOut> sios = schemeInOutRepository.selectAllByCreateDate(startDate, LocalDateTime.now());
613
 
613
 
614
		for (SchemeInOut sio : sios) {
614
		for (SchemeInOut sio : sios) {
615
			genericRepository.delete(sio);
615
			genericRepository.delete(sio);
616
			InventoryItem ii = inventoryItemRepository.selectById(sio.getInventoryItemId());
616
			InventoryItem ii = inventoryItemRepository.selectById(sio.getInventoryItemId());
617
			UserWallet userWallet = userWalletRepository.selectByRetailerId(ii.getFofoId());
617
			UserWallet userWallet = userWalletRepository.selectByRetailerId(ii.getFofoId());
Line 645... Line 645...
645
					}
645
					}
646
				}
646
				}
647
			}
647
			}
648
 
648
 
649
			//System.out.println("Total Amount Rolled Back is " + totalRollbackAmount);
649
			//System.out.println("Total Amount Rolled Back is " + totalRollbackAmount);
650
		}*/
650
		}
651
		scheduledTasks.processScheme(startDate, startDate.plusDays(10));
651
		//scheduledTasks.processScheme(startDate, startDate.plusDays(10));
652
		throw new Exception();
652
		throw new Exception();
653
	}
653
	}
654
}
654
}
655
 
655
 
656
//7015845171
656
//7015845171
657
657