Subversion Repositories SmartDukaan

Rev

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

Rev 18452 Rev 18453
Line 2323... Line 2323...
2323
		for(VendorPricings v : newItem.getVendorPricesMap().values()) {
2323
		for(VendorPricings v : newItem.getVendorPricesMap().values()) {
2324
			if(newItem.getMrp() < v.getMop()) {
2324
			if(newItem.getMrp() < v.getMop()) {
2325
				Window.alert("MRP cannot be less than MOP. Vendor: " + v.getVendorId());
2325
				Window.alert("MRP cannot be less than MOP. Vendor: " + v.getVendorId());
2326
				return false;
2326
				return false;
2327
			}
2327
			}
2328
			if(v.getTransferPrice() > v.getMop()) {
2328
//			if(v.getTransferPrice() > v.getMop()) {
2329
				Window.alert("Transfer Price cannot be more than MOP. Vendor: " + v.getVendorId());
2329
//				Window.alert("Transfer Price cannot be more than MOP. Vendor: " + v.getVendorId());
2330
				return false;
2330
//				return false;
2331
			}
2331
//			}
2332
		}
2332
		}
2333
		return true;
2333
		return true;
2334
	}
2334
	}
2335
 
2335
 
2336
	private boolean validateVendorPrices(double mop, double dp, double tp, double nlc) {
2336
	private boolean validateVendorPrices(double mop, double dp, double tp, double nlc) {