database/model/triggers/AD_PROCESS_PARA_TRG.xml
changeset 239 a30acae847e1
parent 170 4b5493776a7f
child 735 daced7e311c9
equal deleted inserted replaced
238:006d2d0fdea6 239:a30acae847e1
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="TRIGGER AD_PROCESS_PARA_TRG">
     2   <database name="TRIGGER AD_PROCESS_PARA_TRG">
     3     <trigger name="AD_PROCESS_PARA_TRG" table="AD_PROCESS_PARA" fires="after" insert="true" update="true" delete="false" foreach="row">
     3     <trigger name="AD_PROCESS_PARA_TRG" table="AD_PROCESS_PARA" fires="after" insert="true" update="true" delete="false" foreach="row">
     4       <body>
     4       <body><![CDATA[
       
     5 
     5 
     6 
     6 
     7 
     7 
     8 
     8 /*************************************************************************
     9 /*************************************************************************
     9 * The contents of this file are subject to the Compiere License
    10 * The contents of this file are subject to the Compiere License
    12 * http://www.compiere.org/license.html
    13 * http://www.compiere.org/license.html
    13 * Software distributed under the License is distributed on an
    14 * Software distributed under the License is distributed on an
    14 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
    15 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
    15 * implied. See the License for the specific language governing rights
    16 * implied. See the License for the specific language governing rights
    16 * and limitations under the License.
    17 * and limitations under the License.
    17 * The Original Code is  Compiere  ERP &amp;  Business Solution
    18 * The Original Code is  Compiere  ERP &  Business Solution
    18 * The Initial Developer of the Original Code is Jorg Janke  and ComPiere,
    19 * The Initial Developer of the Original Code is Jorg Janke  and ComPiere,
    19 Inc.
    20 Inc.
    20 * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke,
    21 * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke,
    21 * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
    22 * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
    22 * All Rights Reserved.
    23 * All Rights Reserved.
    50 -- Inserting
    51 -- Inserting
    51 -- AD_Process_Para update trigger
    52 -- AD_Process_Para update trigger
    52 --  synchronize name,...
    53 --  synchronize name,...
    53   IF (UPDATING)
    54   IF (UPDATING)
    54   THEN
    55   THEN
    55     IF (   COALESCE (:OLD.NAME, '.') &lt;&gt; COALESCE (:NEW.NAME, '.')
    56     IF (   COALESCE (:OLD.NAME, '.') <> COALESCE (:NEW.NAME, '.')
    56         OR COALESCE (:OLD.Description, '.') &lt;&gt;
    57         OR COALESCE (:OLD.Description, '.') <>
    57                                               COALESCE (:NEW.Description, '.')
    58                                               COALESCE (:NEW.Description, '.')
    58         OR COALESCE (:OLD.HELP, '.') &lt;&gt; COALESCE (:NEW.HELP, '.')
    59         OR COALESCE (:OLD.HELP, '.') <> COALESCE (:NEW.HELP, '.')
    59        )
    60        )
    60     THEN
    61     THEN
    61       UPDATE AD_Process_Para_Trl
    62       UPDATE AD_Process_Para_Trl
    62          SET IsTranslated = 'N',
    63          SET IsTranslated = 'N',
    63              Updated = SYSDATE
    64              Updated = SYSDATE
    66   END IF;
    67   END IF;
    67 -- Updating
    68 -- Updating
    68 END AD_Process_Para_Trg
    69 END AD_Process_Para_Trg
    69 
    70 
    70 
    71 
    71 </body>
    72 
       
    73 ]]></body>
    72     </trigger>
    74     </trigger>
    73   </database>
    75   </database>