src-db/database/model/triggers/M_RAPPEL_INVOICE_TRG.xml
changeset 756 ae11e4610537
parent 735 daced7e311c9
child 771 f0f606b4acf4
equal deleted inserted replaced
755:16b55e593268 756:ae11e4610537
       
     1 <?xml version="1.0"?>
       
     2   <database name="TRIGGER M_RAPPEL_INVOICE_TRG">
       
     3     <trigger name="M_RAPPEL_INVOICE_TRG" table="M_RAPPEL_INVOICE" fires="before" insert="false" update="false" delete="true" foreach="row">
       
     4       <body><![CDATA[
       
     5 
       
     6 
       
     7 
       
     8     /*************************************************************************
       
     9     * The contents of this file are subject to the Compiere License
       
    10     * Version 2.5.0 ("License"); You may not use this file except in
       
    11     * compliance with the License. You may obtain a copy of the License at
       
    12     * http://www.compiere.org/license.html
       
    13     * Software distributed under the License is distributed on an
       
    14     * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
       
    15     * implied. See the License for the specific language governing rights
       
    16     * and limitations under the License.
       
    17     * The Original Code is  Compiere  ERP &  Business Solution
       
    18     * The Initial Developer of the Original Code is Jorg Janke  and ComPiere,
       
    19     Inc.
       
    20     * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke,
       
    21     * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
       
    22     * All Rights Reserved.
       
    23     * Contributor(s): Openbravo SL
       
    24     * Contributions are Copyright (C) 1999-2005 Openbravo, S.L
       
    25     *************************************************************************
       
    26     * New Accounting Defaults
       
    27     */
       
    28  BEGIN
       
    29   DELETE FROM c_invoicetax WHERE c_invoice_id=:old.c_invoice_id;
       
    30   DELETE FROM c_invoiceline  WHERE c_invoice_id=:old.c_invoice_id;
       
    31   DELETE FROM c_invoice WHERE c_invoice_id=:old.c_invoice_id;
       
    32 END M_RAPPEL_INVOICE_TRG
       
    33 ]]></body>
       
    34     </trigger>
       
    35   </database>