Subversion Repositories SmartDukaan

Rev

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

Rev 28055 Rev 28131
Line 709... Line 709...
709
			FofoOrderItem fofoOrderItem = fofoOrderItemRepository.selectById(fim.getFofoItemId());
709
			FofoOrderItem fofoOrderItem = fofoOrderItemRepository.selectById(fim.getFofoItemId());
710
 
710
 
711
			if (item.getCategoryId() == 10006) {
711
			if (item.getCategoryId() == 10006) {
712
				if (fofoOrderItem.getMop() >= fim.getAmount()) {
712
				if (fofoOrderItem.getMop() >= fim.getAmount()) {
713
 
713
 
714
					if (tagListing.getMrp() <= fim.getAmount() || tagListing.getMrp() == 0) {
714
					if (fim.getAmount() <= tagListing.getMrp()) {
715
						fofoOrderItem.setSellingPrice(fim.getAmount());
715
						fofoOrderItem.setSellingPrice(fim.getAmount());
716
					} else {
716
					} else {
717
						throw new ProfitMandiBusinessException("Amount", fim.getAmount(),
717
						throw new ProfitMandiBusinessException("Amount", fim.getAmount(),
718
								"Sum of amount is not less than  to MRP");
718
								"Sum of amount is not less than  to MRP");
719
					}
719
					}