Subversion Repositories SmartDukaan

Rev

Rev 18453 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18453 Rev 18622
Line 1780... Line 1780...
1780
			}
1780
			}
1781
		} catch(NumberFormatException ex) {
1781
		} catch(NumberFormatException ex) {
1782
			Window.alert("Invalid Min Buy Qty format/value.");
1782
			Window.alert("Invalid Min Buy Qty format/value.");
1783
			return false;
1783
			return false;
1784
		}
1784
		}
1785
 
1785
		
-
 
1786
		if (Long.parseLong(maximumBuyQuantity.getText().trim()) > 0 && Long.parseLong(maximumBuyQuantity.getText().trim()) < Long.parseLong(minimumBuyQuantity.getText().trim())){
-
 
1787
			Window.alert("MaxBuyQty can't be greater than MinBuyQty.");
-
 
1788
			return false;
-
 
1789
		}
1786
 
1790
 
1787
		if(newItem.getPrivateDeal().getDealPrice()!=0 && newItem.getPrivateDeal().getDealPrice() >= newItem.getSellingPrice()){
1791
		if(newItem.getPrivateDeal().getDealPrice()!=0 && newItem.getPrivateDeal().getDealPrice() >= newItem.getSellingPrice()){
1788
			Window.alert("Deal Price can't be more than Selling Price");
1792
			Window.alert("Deal Price can't be more than Selling Price");
1789
			return false;
1793
			return false;
1790
		}
1794
		}