| Line 461... |
Line 461... |
| 461 |
}
|
461 |
}
|
| 462 |
} else if (itemCriteriaPayout.getAmountType().equals(AmountType.PERCENTAGE)) {
|
462 |
} else if (itemCriteriaPayout.getAmountType().equals(AmountType.PERCENTAGE)) {
|
| 463 |
Map<Integer, TagListing> tagListingsMap = tagListingRepository.selectAllByCatalogIds(catalogIds);
|
463 |
Map<Integer, TagListing> tagListingsMap = tagListingRepository.selectAllByCatalogIds(catalogIds);
|
| 464 |
for (Map.Entry<Integer, TagListing> tagListingEntry : tagListingsMap.entrySet()) {
|
464 |
for (Map.Entry<Integer, TagListing> tagListingEntry : tagListingsMap.entrySet()) {
|
| 465 |
TagListing tagListing = tagListingEntry.getValue();
|
465 |
TagListing tagListing = tagListingEntry.getValue();
|
| 466 |
float taxableSellingPrice = tagListing.getSellingPrice() / (1 + 18f / 100);
|
- |
|
| 467 |
if (!catalogSlabPayoutMap.containsKey(tagListingEntry.getKey())) {
|
466 |
if (!catalogSlabPayoutMap.containsKey(tagListingEntry.getKey())) {
|
| 468 |
catalogSlabPayoutMap.put(tagListingEntry.getKey(), new LinkedHashMap<>());
|
467 |
catalogSlabPayoutMap.put(tagListingEntry.getKey(), new LinkedHashMap<>());
|
| 469 |
}
|
468 |
}
|
| 470 |
catalogSlabPayoutMap.get(tagListingEntry.getKey()).put(payoutSlab.getOnwardsAmount(),
|
469 |
catalogSlabPayoutMap.get(tagListingEntry.getKey()).put(payoutSlab.getOnwardsAmount(),
|
| 471 |
(long) (taxableSellingPrice * payoutSlab.getPayoutAmount() / 100));
|
470 |
(long) (tagListing.getSellingPrice() * payoutSlab.getPayoutAmount() / 100));
|
| 472 |
}
|
471 |
}
|
| 473 |
}
|
472 |
}
|
| 474 |
}
|
473 |
}
|
| 475 |
}
|
474 |
}
|
| 476 |
return catalogSlabPayoutMap;
|
475 |
return catalogSlabPayoutMap;
|