database/model/triggers/M_RAPPEL_INVOICE_TRG.xml
author Adrián Romero <adrian.romero@openbravo.com>
Tue, 20 Nov 2007 16:27:14 +0000
changeset 94 4e7ba7b8a4ad
parent 0 0247c26f10c6
child 132 33c5ca45fcff
permissions -rw-r--r--
fix: Changed check constraint names and foreign key names to fit in to
30 characteres.
adrian@94
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TRIGGER M_RAPPEL_INVOICE_TRG">
adrian@94
     3
    <trigger name="M_RAPPEL_INVOICE_TRG" table="M_RAPPEL_INVOICE" fires="before" insert="false" update="false" delete="true" foreach="row">
adrian@94
     4
      <body>
adrian@94
     5
adrian@94
     6
    /*************************************************************************
adrian@94
     7
    * The contents of this file are subject to the Compiere License
adrian@94
     8
    * Version 2.5.0 ("License"); You may not use this file except in
adrian@94
     9
    * compliance with the License. You may obtain a copy of the License at
adrian@94
    10
    * http://www.compiere.org/license.html
adrian@94
    11
    * Software distributed under the License is distributed on an
adrian@94
    12
    * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
adrian@94
    13
    * implied. See the License for the specific language governing rights
adrian@94
    14
    * and limitations under the License.
adrian@94
    15
    * The Original Code is  Compiere  ERP &amp;  Business Solution
adrian@94
    16
    * The Initial Developer of the Original Code is Jorg Janke  and ComPiere,
adrian@94
    17
    Inc.
adrian@94
    18
    * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke,
adrian@94
    19
    * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
adrian@94
    20
    * All Rights Reserved.
adrian@94
    21
    * Contributor(s): Openbravo SL
adrian@94
    22
    * Contributions are Copyright (C) 1999-2005 Openbravo, S.L
adrian@94
    23
    *************************************************************************
adrian@94
    24
    * New Accounting Defaults
adrian@94
    25
    */
adrian@94
    26
 BEGIN
adrian@94
    27
  DELETE FROM c_invoicetax WHERE c_invoice_id=:old.c_invoice_id;
adrian@94
    28
  DELETE FROM c_invoiceline  WHERE c_invoice_id=:old.c_invoice_id;
adrian@94
    29
  DELETE FROM c_invoice WHERE c_invoice_id=:old.c_invoice_id;
adrian@94
    30
END M_Rappel_Invoice_Trg 
adrian@94
    31
</body>
adrian@94
    32
    </trigger>
adrian@94
    33
  </database>