Subversion Repositories SmartDukaan

Rev

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

Rev 29755 Rev 29756
Line 1321... Line 1321...
1321
			int itemId = entry.getKey();
1321
			int itemId = entry.getKey();
1322
			CustomFofoOrderItem customFofoOrderItem = entry.getValue();
1322
			CustomFofoOrderItem customFofoOrderItem = entry.getValue();
1323
			LOGGER.info("CustomFofoOrderItem -- {}", customFofoOrderItem);
1323
			LOGGER.info("CustomFofoOrderItem -- {}", customFofoOrderItem);
1324
			PriceModel priceModel = itemIdMopPriceMap.get(itemId);
1324
			PriceModel priceModel = itemIdMopPriceMap.get(itemId);
1325
			Item item = itemRepository.selectById(itemId);
1325
			Item item = itemRepository.selectById(itemId);
-
 
1326
			if (!item.getBrand().equals("Live Demo") && (item.getCategoryId()==ProfitMandiConstants.MOBILE_CATEGORY_ID || item.getCategoryId()==ProfitMandiConstants.TABLET_CATEGORY_ID) &&
1326
			if (customFofoOrderItem.getSerialNumberDetails().stream()
1327
					customFofoOrderItem.getSerialNumberDetails().stream()
1327
					.filter(x -> org.apache.commons.lang.StringUtils.isNotEmpty(x.getSerialNumber()))
1328
					.filter(x -> org.apache.commons.lang.StringUtils.isNotEmpty(x.getSerialNumber()))
1328
					.collect(Collectors.toList()).size() > 0) {
1329
					.collect(Collectors.toList()).size() > 0) {
1329
				if (Utils.compareFloat(priceModel.getPrice(),
1330
				if (Utils.compareFloat(priceModel.getPrice(),
1330
						customFofoOrderItem.getSellingPrice() + customFofoOrderItem.getDiscountAmount()) > 0) {
1331
						customFofoOrderItem.getSellingPrice() + customFofoOrderItem.getDiscountAmount()) > 0) {
1331
					throw new ProfitMandiBusinessException("Selling Price for ",
1332
					throw new ProfitMandiBusinessException("Selling Price for ",