Subversion Repositories SmartDukaan

Rev

Rev 30957 | Rev 31030 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30957 Rev 30993
Line 1270... Line 1270...
1270
			LOGGER.info("CustomFofoOrderItem -- {}", customFofoOrderItem);
1270
			LOGGER.info("CustomFofoOrderItem -- {}", customFofoOrderItem);
1271
			PriceModel priceModel = itemIdMopPriceMap.get(itemId);
1271
			PriceModel priceModel = itemIdMopPriceMap.get(itemId);
1272
			Item item = itemRepository.selectById(itemId);
1272
			Item item = itemRepository.selectById(itemId);
1273
			if (!item.getBrand().equals("Live Demo")
1273
			if (!item.getBrand().equals("Live Demo")
1274
					&& (item.getCategoryId() == ProfitMandiConstants.MOBILE_CATEGORY_ID
1274
					&& (item.getCategoryId() == ProfitMandiConstants.MOBILE_CATEGORY_ID
1275
							|| item.getCategoryId() == ProfitMandiConstants.TABLET_CATEGORY_ID)
1275
					|| item.getCategoryId() == ProfitMandiConstants.TABLET_CATEGORY_ID || item.getCategoryId() == ProfitMandiConstants.LED_CATEGORY_ID)
1276
					&& customFofoOrderItem.getSerialNumberDetails().stream()
1276
					&& customFofoOrderItem.getSerialNumberDetails().stream()
1277
							.filter(x -> org.apache.commons.lang.StringUtils.isNotEmpty(x.getSerialNumber()))
1277
							.filter(x -> org.apache.commons.lang.StringUtils.isNotEmpty(x.getSerialNumber()))
1278
							.collect(Collectors.toList()).size() > 0) {
1278
							.collect(Collectors.toList()).size() > 0) {
1279
				if (Utils.compareFloat(priceModel.getPrice(),
1279
				if (Utils.compareFloat(priceModel.getPrice(),
1280
						customFofoOrderItem.getSellingPrice() + customFofoOrderItem.getDiscountAmount()) > 0) {
1280
						customFofoOrderItem.getSellingPrice() + customFofoOrderItem.getDiscountAmount()) > 0) {