Subversion Repositories SmartDukaan

Rev

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

Rev 20155 Rev 20156
Line 87... Line 87...
87
        	if(!isAutorizedToAccessWarehouse(warehouseId)){
87
        	if(!isAutorizedToAccessWarehouse(warehouseId)){
88
        		logger.error("Unauthorized Access for WarehouseId " + warehouseId + " by " + SecurityUtils.getSubject().getPrincipal().toString());
88
        		logger.error("Unauthorized Access for WarehouseId " + warehouseId + " by " + SecurityUtils.getSubject().getPrincipal().toString());
89
        		addActionError("Unauthorized Access for WarehouseId " + warehouseId);
89
        		addActionError("Unauthorized Access for WarehouseId " + warehouseId);
90
        		return EDIT_NEW;
90
        		return EDIT_NEW;
91
        	}
91
        	}
92
        	long currentTime = new Date().getTime();
92
        	long currentTime = sdf.parse(sdf.format(new Date())).getTime();
93
        	if(currentTime !=sdf.parse(date).getTime()){
93
        	if(currentTime !=sdf.parse(date).getTime()){
94
        		logger.error("Invoice Receive Date Must be equal to Today's Date");
94
        		logger.error("Invoice Receive Date Must be equal to Today's Date");
95
        		addActionError("Invoice Receive Date Must be equal to Today's Date");
95
        		addActionError("Invoice Receive Date Must be equal to Today's Date");
96
        		return EDIT_NEW;
96
        		return EDIT_NEW;
97
        	}
97
        	}