Fixes error constant numbering for triggers
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Tue, 06 Sep 2011 12:08:54 +0200
changeset 13664 54ed9a0b2c83
parent 13663 4c5cd48e2467
child 13665 f70eb0ef28f6
child 13672 b83cfe150b85
Fixes error constant numbering for triggers
modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_BANKSTATEMENT_TRG.xml
modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_CASH_TRG.xml
modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_DP_MANAGEMENT_TRG.xml
modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_REMITTANCE_TRG.xml
modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_SETTLEMENT_TRG.xml
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_BANKSTATEMENT_TRG.xml	Tue Sep 06 11:28:56 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_BANKSTATEMENT_TRG.xml	Tue Sep 06 12:08:54 2011 +0200
@@ -31,11 +31,11 @@
    END IF;
    IF(UPDATING) THEN
      IF(:old.Processed <> :new.Processed) THEN
-       RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+       RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
      END IF;
    END IF;
    IF(INSERTING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
   END IF;
 
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_CASH_TRG.xml	Tue Sep 06 11:28:56 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_CASH_TRG.xml	Tue Sep 06 12:08:54 2011 +0200
@@ -27,15 +27,15 @@
 
   IF(v_count = 1) THEN
    IF(DELETING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
    IF(UPDATING) THEN
      IF(:old.Processed <> :new.Processed) THEN
-       RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+       RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
      END IF;
    END IF;
    IF(INSERTING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
   END IF;
   
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_DP_MANAGEMENT_TRG.xml	Tue Sep 06 11:28:56 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_DP_MANAGEMENT_TRG.xml	Tue Sep 06 12:08:54 2011 +0200
@@ -27,15 +27,15 @@
 
   IF(v_count = 1) THEN
    IF(DELETING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
    IF(UPDATING) THEN
      IF(:old.Processed <> :new.Processed) THEN
-       RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+       RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
      END IF;
    END IF;
    IF(INSERTING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
   END IF;
   
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_REMITTANCE_TRG.xml	Tue Sep 06 11:28:56 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_REMITTANCE_TRG.xml	Tue Sep 06 12:08:54 2011 +0200
@@ -27,15 +27,15 @@
 
   IF(v_count = 1) THEN
    IF(DELETING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
    IF(UPDATING) THEN
      IF(:old.Processed <> :new.Processed) THEN
-       RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+       RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
      END IF;
    END IF;
    IF(INSERTING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
   END IF;
   
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_SETTLEMENT_TRG.xml	Tue Sep 06 11:28:56 2011 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_C_SETTLEMENT_TRG.xml	Tue Sep 06 12:08:54 2011 +0200
@@ -27,15 +27,15 @@
 
   IF(v_count = 1) THEN
    IF(DELETING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
    IF(UPDATING) THEN
      IF(:old.Processed <> :new.Processed) THEN
-       RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+       RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
      END IF;
    END IF;
    IF(INSERTING) THEN
-     RAISE_APPLICATION_ERROR(-20501, '@APRM_OldFlowDisabled@') ;
+     RAISE_APPLICATION_ERROR(-20000, '@APRM_OldFlowDisabled@') ;
    END IF;
   END IF;