Subversion Repositories SmartDukaan

Rev

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

Rev 18415 Rev 18452
Line 2336... Line 2336...
2336
	private boolean validateVendorPrices(double mop, double dp, double tp, double nlc) {
2336
	private boolean validateVendorPrices(double mop, double dp, double tp, double nlc) {
2337
		if(item.getMrp() != null && item.getMrp() < mop) {
2337
		if(item.getMrp() != null && item.getMrp() < mop) {
2338
			Window.alert("MOP cannot be more than MRP.");
2338
			Window.alert("MOP cannot be more than MRP.");
2339
			return false;
2339
			return false;
2340
		}
2340
		}
2341
		if(tp > mop) {
2341
//		if(tp > mop) {
2342
			Window.alert("Transfer Price cannot be more than MOP.");
2342
//			Window.alert("Transfer Price cannot be more than MOP.");
2343
			return false;
2343
//			return false;
2344
		}
2344
//		}
2345
		if(tp < nlc) {
2345
//		if(tp < nlc) {
2346
			Window.alert("Transfer Price cannot be less than NLC.");
2346
//			Window.alert("Transfer Price cannot be less than NLC.");
2347
			return false;
2347
//			return false;
2348
		}
2348
//		}
2349
		return true;
2349
		return true;
2350
	}
2350
	}
2351
 
2351
 
2352
	private boolean validateSourcePrices(double mrp, double sellingPrice) {
2352
	private boolean validateSourcePrices(double mrp, double sellingPrice) {
2353
		if(sellingPrice > mrp) {
2353
		if(sellingPrice > mrp) {