src-db/database/model/triggers/M_MATCHPO_TRG.xml
changeset 2078 cf88ca44cdd2
parent 1605 8a0fe0193bef
child 2084 5081e251a384
equal deleted inserted replaced
2077:1a0d02e15999 2078:cf88ca44cdd2
    25   * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
    25   * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
    26   * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
    26   * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
    27   * Contributor(s): Openbravo SL
    27   * Contributor(s): Openbravo SL
    28   * Contributions are Copyright (C) 2001-2006 Openbravo S.L.
    28   * Contributions are Copyright (C) 2001-2006 Openbravo S.L.
    29   ******************************************************************************/
    29   ******************************************************************************/
       
    30     v_ADEnabledTriggers NUMBER;
    30 BEGIN
    31 BEGIN
       
    32     SELECT COUNT(*) INTO v_ADEnabledTriggers FROM AD_ENABLE_TRIGGERS WHERE ISENABLED='N';
       
    33     IF v_ADEnabledTriggers!=0 THEN RETURN;
       
    34     END IF;
       
    35 
       
    36 
    31   IF(UPDATING OR DELETING) THEN
    37   IF(UPDATING OR DELETING) THEN
    32     IF :OLD.M_INOUTLINE_ID IS NOT NULL THEN
    38     IF :OLD.M_INOUTLINE_ID IS NOT NULL THEN
    33       v_QtyOrdered:=:old.qty;
    39       v_QtyOrdered:=:old.qty;
    34       SELECT o.C_UOM_ID,
    40       SELECT o.C_UOM_ID,
    35         o.M_ATTRIBUTESETINSTANCE_ID,
    41         o.M_ATTRIBUTESETINSTANCE_ID,