Subversion Repositories SmartDukaan

Rev

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

Rev 2489 Rev 2566
Line 383... Line 383...
383
    }
383
    }
384
    
384
    
385
    /**
385
    /**
386
     * validate vendor prices (MOP, DealerPrice, TransferPrice)
386
     * validate vendor prices (MOP, DealerPrice, TransferPrice)
387
     */
387
     */
-
 
388
    @SuppressWarnings("unused")
388
    private boolean validateVendorPrices(double mop, double dp, double tp) {
389
	private boolean validateVendorPrices(double mop, double dp, double tp) {
389
        double mrpValue;
390
        double mrpValue;
390
        try {
391
        try {
391
            mrpValue = Double.parseDouble(mrp.getText().trim());
392
            mrpValue = Double.parseDouble(mrp.getText().trim());
392
        } catch (NumberFormatException ex) {
393
        } catch (NumberFormatException ex) {
393
            Window.alert("Invalid MRP value.");
394
            Window.alert("Invalid MRP value.");