| Line 1062... |
Line 1062... |
| 1062 |
Map<Integer, CustomFofoOrderItem> itemIdCustomFofoLineItemMap) throws ProfitMandiBusinessException {
|
1062 |
Map<Integer, CustomFofoOrderItem> itemIdCustomFofoLineItemMap) throws ProfitMandiBusinessException {
|
| 1063 |
for (Map.Entry<Integer, CustomFofoOrderItem> entry : itemIdCustomFofoLineItemMap.entrySet()) {
|
1063 |
for (Map.Entry<Integer, CustomFofoOrderItem> entry : itemIdCustomFofoLineItemMap.entrySet()) {
|
| 1064 |
int itemId = entry.getKey();
|
1064 |
int itemId = entry.getKey();
|
| 1065 |
CustomFofoOrderItem customFofoOrderItem = entry.getValue();
|
1065 |
CustomFofoOrderItem customFofoOrderItem = entry.getValue();
|
| 1066 |
PriceModel priceModel = itemIdMopPriceMap.get(itemId);
|
1066 |
PriceModel priceModel = itemIdMopPriceMap.get(itemId);
|
| 1067 |
if (customFofoOrderItem.getSerialNumberDetails().size() > 0) {
|
1067 |
if (customFofoOrderItem.getSerialNumberDetails().stream()
|
| - |
|
1068 |
.filter(x -> org.apache.commons.lang.StringUtils.isEmpty(x.getSerialNumber()))
|
| - |
|
1069 |
.collect(Collectors.toList()).size() > 0) {
|
| 1068 |
if (priceModel.getPrice() > customFofoOrderItem.getSellingPrice()) {
|
1070 |
if (priceModel.getPrice() > customFofoOrderItem.getSellingPrice()) {
|
| 1069 |
throw new ProfitMandiBusinessException("Selling Price",
|
1071 |
throw new ProfitMandiBusinessException("Selling Price",
|
| 1070 |
itemRepository.selectById(itemId).getItemDescription(), "FFORDR_1010");
|
1072 |
itemRepository.selectById(itemId).getItemDescription(), "FFORDR_1010");
|
| 1071 |
}
|
1073 |
}
|
| 1072 |
} else {
|
1074 |
} else {
|