| Line 1211... |
Line 1211... |
| 1211 |
LOGGER.info("CustomFofoOrderItem -- {}", customFofoOrderItem);
|
1211 |
LOGGER.info("CustomFofoOrderItem -- {}", customFofoOrderItem);
|
| 1212 |
PriceModel priceModel = itemIdMopPriceMap.get(itemId);
|
1212 |
PriceModel priceModel = itemIdMopPriceMap.get(itemId);
|
| 1213 |
if (customFofoOrderItem.getSerialNumberDetails().stream()
|
1213 |
if (customFofoOrderItem.getSerialNumberDetails().stream()
|
| 1214 |
.filter(x -> org.apache.commons.lang.StringUtils.isNotEmpty(x.getSerialNumber()))
|
1214 |
.filter(x -> org.apache.commons.lang.StringUtils.isNotEmpty(x.getSerialNumber()))
|
| 1215 |
.collect(Collectors.toList()).size() > 0) {
|
1215 |
.collect(Collectors.toList()).size() > 0) {
|
| 1216 |
if (priceModel.getPrice() > customFofoOrderItem.getSellingPrice()
|
1216 |
if (Utils.compareFloat(priceModel.getPrice(), customFofoOrderItem.getSellingPrice()
|
| 1217 |
+ customFofoOrderItem.getDiscountAmount()) {
|
1217 |
+ customFofoOrderItem.getDiscountAmount()) > 0) {
|
| 1218 |
throw new ProfitMandiBusinessException("Selling Price for ",
|
1218 |
throw new ProfitMandiBusinessException("Selling Price for ",
|
| 1219 |
itemRepository.selectById(itemId).getItemDescription(), "FFORDR_1010");
|
1219 |
itemRepository.selectById(itemId).getItemDescription(), "FFORDR_1010");
|
| 1220 |
}
|
1220 |
}
|
| 1221 |
} else {
|
1221 |
} else {
|
| 1222 |
if (priceModel.getPurchasePrice() > customFofoOrderItem.getSellingPrice()) {
|
1222 |
if (priceModel.getPurchasePrice() > customFofoOrderItem.getSellingPrice()) {
|