| Line 2406... |
Line 2406... |
| 2406 |
}
|
2406 |
}
|
| 2407 |
List<SchemeInOut> schemeInOuts = schemeInOutRepository.selectByInventoryItemIds(java.util.stream.Stream.of(inventoryItemId).collect(Collectors.toSet()));
|
2407 |
List<SchemeInOut> schemeInOuts = schemeInOutRepository.selectByInventoryItemIds(java.util.stream.Stream.of(inventoryItemId).collect(Collectors.toSet()));
|
| 2408 |
for(SchemeInOut sio : schemeInOuts) {
|
2408 |
for(SchemeInOut sio : schemeInOuts) {
|
| 2409 |
if(sio.getCreateTimestamp().toLocalDate().equals(localDate)) {
|
2409 |
if(sio.getCreateTimestamp().toLocalDate().equals(localDate)) {
|
| 2410 |
LOGGER.info("SIO - {}", sio);
|
2410 |
LOGGER.info("SIO - {}", sio);
|
| 2411 |
//sio.setRolledBackTimestamp(LocalDateTime.now());
|
2411 |
sio.setRolledBackTimestamp(LocalDateTime.now());
|
| 2412 |
}
|
2412 |
}
|
| 2413 |
}
|
2413 |
}
|
| 2414 |
//Rollback entry with reversal reason
|
2414 |
//Rollback entry with reversal reason
|
| 2415 |
/*if(fofoOrder.getCreateTimestamp().isAfter(LocalDate.of(2020, 4, 1).atStartOfDay())) {
|
2415 |
/*if(fofoOrder.getCreateTimestamp().isAfter(LocalDate.of(2020, 4, 1).atStartOfDay())) {
|
| 2416 |
List<UserWalletHistory> userWalletHistory = userWalletHistoryRepository.selectAllByreferenceIdandreferenceType(fofoOrder.getId(), WalletReferenceType.SCHEME_OUT);
|
2416 |
List<UserWalletHistory> userWalletHistory = userWalletHistoryRepository.selectAllByreferenceIdandreferenceType(fofoOrder.getId(), WalletReferenceType.SCHEME_OUT);
|