| Line 1309... |
Line 1309... |
| 1309 |
}
|
1309 |
}
|
| 1310 |
}
|
1310 |
}
|
| 1311 |
|
1311 |
|
| 1312 |
public void reverseMaa() throws Exception {
|
1312 |
public void reverseMaa() throws Exception {
|
| 1313 |
Set<Integer> inventoryItemIds = inventoryItemRepository.selectByPurchaseId(28877).stream().map(x->x.getId()).collect(Collectors.toSet());
|
1313 |
Set<Integer> inventoryItemIds = inventoryItemRepository.selectByPurchaseId(28877).stream().map(x->x.getId()).collect(Collectors.toSet());
|
| 1314 |
double totalAmount = schemeInOutRepository.selectByInventoryItemIds(inventoryItemIds).stream().filter(x->x.getRolledBackTimestamp()!=null || x.getSchemeType().equals(SchemeType.INVESTMENT))
|
1314 |
double totalAmount = schemeInOutRepository.selectByInventoryItemIds(inventoryItemIds).stream().filter(x->x.getRolledBackTimestamp()!=null || x.getStatusDescription().contains("investment"))
|
| 1315 |
//.map(x->x.setRolledBackTimestamp(null))
|
1315 |
//.map(x->x.setRolledBackTimestamp(null))
|
| 1316 |
.collect(Collectors.summingDouble(x->x.getAmount()));
|
1316 |
.collect(Collectors.summingDouble(x->x.getAmount()));
|
| 1317 |
LOGGER.info("Total Deduction is around Rs. {}", totalAmount);
|
1317 |
LOGGER.info("Total Deduction is around Rs. {}", totalAmount);
|
| 1318 |
}
|
1318 |
}
|
| 1319 |
|
1319 |
|