Subversion Repositories SmartDukaan

Rev

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

Rev 29756 Rev 29773
Line 1331... Line 1331...
1331
						customFofoOrderItem.getSellingPrice() + customFofoOrderItem.getDiscountAmount()) > 0) {
1331
						customFofoOrderItem.getSellingPrice() + customFofoOrderItem.getDiscountAmount()) > 0) {
1332
					throw new ProfitMandiBusinessException("Selling Price for ",
1332
					throw new ProfitMandiBusinessException("Selling Price for ",
1333
							item.getItemDescription(), "FFORDR_1010");
1333
							item.getItemDescription(), "FFORDR_1010");
1334
				}
1334
				}
1335
			} else {
1335
			} else {
1336
				if (priceModel.getPurchasePrice() > customFofoOrderItem.getSellingPrice()) {
1336
				if (!item.getBrand().equals("Live Demo") && priceModel.getPurchasePrice() > customFofoOrderItem.getSellingPrice()) {
1337
					throw new ProfitMandiBusinessException("Selling Price",
1337
					throw new ProfitMandiBusinessException("Selling Price",
1338
							itemRepository.selectById(itemId).getItemDescription(),
1338
							itemRepository.selectById(itemId).getItemDescription(),
1339
							"Selling Price should not be less than DP");
1339
							"Selling Price should not be less than DP");
1340
				}
1340
				}
1341
			}
1341
			}