src-db/database/model/triggers/M_RAPPEL_INVOICE_TRG.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Wed, 23 Apr 2008 17:34:12 +0000
changeset 756 ae11e4610537
parent 735 database/model/triggers/M_RAPPEL_INVOICE_TRG.xml@daced7e311c9
child 771 f0f606b4acf4
permissions -rw-r--r--
Moved database folder to src-db folder
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">
gorkaion@239
     4
      <body><![CDATA[
gorkaion@239
     5
adrian@170
     6
adrian@94
     7
adrian@94
     8
    /*************************************************************************
adrian@94
     9
    * The contents of this file are subject to the Compiere License
adrian@94
    10
    * Version 2.5.0 ("License"); You may not use this file except in
adrian@94
    11
    * compliance with the License. You may obtain a copy of the License at
adrian@94
    12
    * http://www.compiere.org/license.html
adrian@94
    13
    * Software distributed under the License is distributed on an
adrian@94
    14
    * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
adrian@94
    15
    * implied. See the License for the specific language governing rights
adrian@94
    16
    * and limitations under the License.
gorkaion@239
    17
    * The Original Code is  Compiere  ERP &  Business Solution
adrian@94
    18
    * The Initial Developer of the Original Code is Jorg Janke  and ComPiere,
adrian@94
    19
    Inc.
adrian@94
    20
    * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke,
adrian@94
    21
    * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
adrian@94
    22
    * All Rights Reserved.
adrian@94
    23
    * Contributor(s): Openbravo SL
adrian@94
    24
    * Contributions are Copyright (C) 1999-2005 Openbravo, S.L
adrian@94
    25
    *************************************************************************
adrian@94
    26
    * New Accounting Defaults
adrian@94
    27
    */
adrian@94
    28
 BEGIN
adrian@94
    29
  DELETE FROM c_invoicetax WHERE c_invoice_id=:old.c_invoice_id;
adrian@94
    30
  DELETE FROM c_invoiceline  WHERE c_invoice_id=:old.c_invoice_id;
adrian@94
    31
  DELETE FROM c_invoice WHERE c_invoice_id=:old.c_invoice_id;
antonio@735
    32
END M_RAPPEL_INVOICE_TRG
gorkaion@239
    33
]]></body>
adrian@94
    34
    </trigger>
adrian@94
    35
  </database>