| Line 452... |
Line 452... |
| 452 |
}
|
452 |
}
|
| 453 |
catalogSlabPayoutMap.get(catalogId).put(payoutSlab.getOnwardsAmount(),
|
453 |
catalogSlabPayoutMap.get(catalogId).put(payoutSlab.getOnwardsAmount(),
|
| 454 |
(long) (payoutSlab.getPayoutAmount() / payoutSlab.getOnwardsAmount()));
|
454 |
(long) (payoutSlab.getPayoutAmount() / payoutSlab.getOnwardsAmount()));
|
| 455 |
}
|
455 |
}
|
| 456 |
} else if (itemCriteriaPayout.getAmountType().equals(AmountType.PERCENTAGE)) {
|
456 |
} else if (itemCriteriaPayout.getAmountType().equals(AmountType.PERCENTAGE)) {
|
| 457 |
List<TagListing> tagListings = tagListingRepository.selectAllByCatalogIds(catalogIds);
|
457 |
Map<Integer, TagListing> tagListingsMap = tagListingRepository.selectAllByCatalogIds(catalogIds);
|
| - |
|
458 |
for (Map.Entry<Integer, TagListing> tagListingEntry : tagListingsMap.entrySet()) {
|
| 458 |
for (TagListing tagListing : tagListings) {
|
459 |
TagListing tagListing = tagListingEntry.getValue();
|
| 459 |
float taxableSellingPrice = tagListing.getSellingPrice() / (1 + 18f / 100);
|
460 |
float taxableSellingPrice = tagListing.getSellingPrice() / (1 + 18f / 100);
|
| 460 |
if (!catalogSlabPayoutMap.containsKey(tagListing.getItemId())) {
|
461 |
if (!catalogSlabPayoutMap.containsKey(tagListingEntry.getKey())) {
|
| 461 |
catalogSlabPayoutMap.put(tagListing.getItemId(), new LinkedHashMap<>());
|
462 |
catalogSlabPayoutMap.put(tagListingEntry.getKey(), new LinkedHashMap<>());
|
| 462 |
}
|
463 |
}
|
| 463 |
catalogSlabPayoutMap.get(tagListing.getItemId()).put(payoutSlab.getOnwardsAmount(),
|
464 |
catalogSlabPayoutMap.get(tagListingEntry.getKey()).put(payoutSlab.getOnwardsAmount(),
|
| 464 |
(long) (taxableSellingPrice * payoutSlab.getPayoutAmount() / 100));
|
465 |
(long) (taxableSellingPrice * payoutSlab.getPayoutAmount() / 100));
|
| 465 |
}
|
466 |
}
|
| 466 |
}
|
467 |
}
|
| 467 |
}
|
468 |
}
|
| 468 |
}
|
469 |
}
|