Subversion Repositories SmartDukaan

Rev

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

Rev 25494 Rev 25495
Line 1066... Line 1066...
1066
			PriceModel priceModel = itemIdMopPriceMap.get(itemId);
1066
			PriceModel priceModel = itemIdMopPriceMap.get(itemId);
1067
			if (customFofoOrderItem.getSerialNumberDetails().stream()
1067
			if (customFofoOrderItem.getSerialNumberDetails().stream()
1068
					.filter(x -> org.apache.commons.lang.StringUtils.isEmpty(x.getSerialNumber()))
1068
					.filter(x -> org.apache.commons.lang.StringUtils.isEmpty(x.getSerialNumber()))
1069
					.collect(Collectors.toList()).size() > 0) {
1069
					.collect(Collectors.toList()).size() > 0) {
1070
				if (priceModel.getPrice() > customFofoOrderItem.getSellingPrice()) {
1070
				if (priceModel.getPrice() > customFofoOrderItem.getSellingPrice()) {
1071
					throw new ProfitMandiBusinessException("Selling Price",
1071
					throw new ProfitMandiBusinessException("Selling Price for ",
1072
							itemRepository.selectById(itemId).getItemDescription(), "FFORDR_1010");
1072
							itemRepository.selectById(itemId).getItemDescription(), "FFORDR_1010");
1073
				}
1073
				}
1074
			} else {
1074
			} else {
1075
				if (priceModel.getPurchasePrice() > customFofoOrderItem.getSellingPrice()) {
1075
				if (priceModel.getPurchasePrice() > customFofoOrderItem.getSellingPrice()) {
1076
					throw new ProfitMandiBusinessException("Selling Price",
1076
					throw new ProfitMandiBusinessException("Selling Price",