| Line 726... |
Line 726... |
| 726 |
fofoCatalogResponse.setItems(availabilityList);
|
726 |
fofoCatalogResponse.setItems(availabilityList);
|
| 727 |
if (priceCircularItemModelMap.containsKey(fofoCatalogResponse.getCatalogId())) {
|
727 |
if (priceCircularItemModelMap.containsKey(fofoCatalogResponse.getCatalogId())) {
|
| 728 |
PriceCircularItemModel priceCircularItemModel = priceCircularItemModelMap.get(fofoCatalogResponse.getCatalogId());
|
728 |
PriceCircularItemModel priceCircularItemModel = priceCircularItemModelMap.get(fofoCatalogResponse.getCatalogId());
|
| 729 |
if (priceCircularItemModel.getSlabPayouts() != null) {
|
729 |
if (priceCircularItemModel.getSlabPayouts() != null) {
|
| 730 |
List<CreateOfferRequest> schemeOffers = new ArrayList<>();
|
730 |
List<CreateOfferRequest> schemeOffers = new ArrayList<>();
|
| 731 |
for (int j = 0; j < priceCircularItemModel.getSlabPayouts().size(); j++) {
|
731 |
List<Map<Integer, Long>> slabPayouts = priceCircularItemModel.getSlabPayouts();
|
| - |
|
732 |
Iterator<Map<Integer, Long>> iterator = slabPayouts.iterator();
|
| - |
|
733 |
int iteratorCount = 0;
|
| - |
|
734 |
while (iterator.hasNext()) {
|
| - |
|
735 |
Map<Integer, Long> slabPayoutMap = iterator.next();
|
| 732 |
if (priceCircularItemModel.getSlabPayouts().get(j) != null) {
|
736 |
if (slabPayoutMap != null) {
|
| 733 |
schemeOffers.add(allSchemOffers.get(j));
|
737 |
schemeOffers.add(allSchemOffers.get(iteratorCount));
|
| 734 |
} else {
|
738 |
} else {
|
| 735 |
priceCircularItemModel.getSlabPayouts().remove(j);
|
739 |
iterator.remove();
|
| 736 |
}
|
740 |
}
|
| 737 |
}
|
741 |
}
|
| 738 |
fofoCatalogResponse.setSchemeOffers(schemeOffers);
|
742 |
fofoCatalogResponse.setSchemeOffers(schemeOffers);
|
| 739 |
}
|
743 |
}
|
| 740 |
fofoCatalogResponse.setPriceCircularItemModel(priceCircularItemModel);
|
744 |
fofoCatalogResponse.setPriceCircularItemModel(priceCircularItemModel);
|