Fixes issue 34718:Modify WrongPaymentScheduleDetailsCheck.java buildValidation
authorSanjota <sanjota.nelagi@promantia.com>
Tue, 20 Dec 2016 10:51:01 +0530
changeset 31018 b064eb706570
parent 31017 e672b21e7cf0
child 31019 90270de92845
child 31291 a8b01d14ae2b
Fixes issue 34718:Modify WrongPaymentScheduleDetailsCheck.java buildValidation

Modify WrongPaymentScheduleDetailsCheck.java buildValidation to execute it only if updating from before this changeset:
https://code.openbravo.com/erp/devel/main/rev/11602bd040b1
modules/org.openbravo.advpaymentmngt/build/classes/org/openbravo/advpaymentmngt/buildvalidation/WrongPaymentScheduleDetailsCheck.class
modules/org.openbravo.advpaymentmngt/src-util/buildvalidation/src/org/openbravo/advpaymentmngt/buildvalidation/WrongPaymentScheduleDetailsCheck.java
Binary file modules/org.openbravo.advpaymentmngt/build/classes/org/openbravo/advpaymentmngt/buildvalidation/WrongPaymentScheduleDetailsCheck.class has changed
--- a/modules/org.openbravo.advpaymentmngt/src-util/buildvalidation/src/org/openbravo/advpaymentmngt/buildvalidation/WrongPaymentScheduleDetailsCheck.java	Tue Dec 20 10:50:25 2016 +0530
+++ b/modules/org.openbravo.advpaymentmngt/src-util/buildvalidation/src/org/openbravo/advpaymentmngt/buildvalidation/WrongPaymentScheduleDetailsCheck.java	Tue Dec 20 10:51:01 2016 +0530
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2016 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -21,8 +21,10 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import org.openbravo.base.ExecutionLimits;
 import org.openbravo.buildvalidation.BuildValidation;
 import org.openbravo.database.ConnectionProvider;
+import org.openbravo.modulescript.OpenbravoVersion;
 
 public class WrongPaymentScheduleDetailsCheck extends BuildValidation {
 
@@ -89,4 +91,11 @@
 
     }
   }
+
+  @Override
+  protected ExecutionLimits getBuildValidationLimits() {
+    return new ExecutionLimits("A918E3331C404B889D69AA9BFAFB23AC", null, new OpenbravoVersion(3, 0,
+        22964));
+  }
 }
+