| Line 705... |
Line 705... |
| 705 |
for (FofoItemIdAmountModel fim : fofoItemIdAmountModel) {
|
705 |
for (FofoItemIdAmountModel fim : fofoItemIdAmountModel) {
|
| 706 |
LOGGER.info("fim" + fim.getFofoItemId());
|
706 |
LOGGER.info("fim" + fim.getFofoItemId());
|
| 707 |
Item item = itemRepository.selectById(fim.getItemId());
|
707 |
Item item = itemRepository.selectById(fim.getItemId());
|
| 708 |
TagListing tagListing = tagListingRepository.selectByItemId(item.getId());
|
708 |
TagListing tagListing = tagListingRepository.selectByItemId(item.getId());
|
| 709 |
FofoOrderItem fofoOrderItem = fofoOrderItemRepository.selectById(fim.getFofoItemId());
|
709 |
FofoOrderItem fofoOrderItem = fofoOrderItemRepository.selectById(fim.getFofoItemId());
|
| 710 |
|
- |
|
| - |
|
710 |
LOGGER.info("category" + item.getCategoryId());
|
| 711 |
if (item.getCategoryId() == 10006) {
|
711 |
if (item.getCategoryId() == ProfitMandiConstants.MOBILE_CATEGORY_ID) {
|
| 712 |
if (fofoOrderItem.getMop() >= fim.getAmount()) {
|
712 |
if (fofoOrderItem.getMop() >= fim.getAmount()) {
|
| 713 |
|
713 |
|
| 714 |
if (fim.getAmount() <= tagListing.getMrp()) {
|
714 |
if (fim.getAmount() <= tagListing.getMrp()) {
|
| 715 |
fofoOrderItem.setSellingPrice(fim.getAmount());
|
715 |
fofoOrderItem.setSellingPrice(fim.getAmount());
|
| 716 |
} else {
|
716 |
} else {
|