From 4f9c5d066dac5337762fcde44e02797fb6b751a4 Mon Sep 17 00:00:00 2001 From: sepehrkianian09 <59197271+sepehrkianian09@users.noreply.github.com> Date: Fri, 26 Jun 2020 23:19:37 +0430 Subject: [PATCH] Bug fixes --- src/main/java/controller/account/VendorControl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/controller/account/VendorControl.java b/src/main/java/controller/account/VendorControl.java index fc5fc100..f7e92857 100644 --- a/src/main/java/controller/account/VendorControl.java +++ b/src/main/java/controller/account/VendorControl.java @@ -605,8 +605,6 @@ public Notification editOff(Off off, File offImageFile) { return Notification.OUT_BOUND_OF_PERCENT; if(off.getProductIDs() == null || off.getProductIDs().size() == 0) return Notification.EMPTY_OFF_PRODUCTS; - if(off.getStartDate().compareTo(new Date(System.currentTimeMillis())) < 0) - return Notification.START_DATE_BEFORE_NOW; if(off.getStartDate().compareTo(off.getFinishDate()) > -1) return Notification.START_DATE_AFTER_FINISH_DATE; try {