Subversion Repositories SmartDukaan

Rev

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

Rev 18150 Rev 18415
Line 66... Line 66...
66
            quantity = Long.parseLong(this.quantity.getText());
66
            quantity = Long.parseLong(this.quantity.getText());
67
        } catch(NumberFormatException ex) {
67
        } catch(NumberFormatException ex) {
68
            Window.alert("Format is not valid.");
68
            Window.alert("Format is not valid.");
69
            return;
69
            return;
70
        }
70
        }
-
 
71
        if (quantity < 1 || price < 1){
-
 
72
        	Window.alert("Quantity is not valid");
-
 
73
        }
71
        if(bulkPricingUpdateListener.onUpdate(quantity, price)) {
74
        if(bulkPricingUpdateListener.onUpdate(quantity, price)) {
72
            hide();
75
            hide();
73
        }
76
        }
74
    }
77
    }
75
}
78
}