src-db/database/model/triggers/M_WAREHOUSE_TRG.xml
changeset 26789 f89eff26d185
parent 20233 934faa344e9e
child 26790 ef5da8dc7f38
equal deleted inserted replaced
26788:9eb109c1f121 26789:f89eff26d185
    70           Cur_Defaults.W_InvActualAdjust_Acct
    70           Cur_Defaults.W_InvActualAdjust_Acct
    71         )
    71         )
    72         ;
    72         ;
    73     END LOOP;
    73     END LOOP;
    74   ELSIF (UPDATING) THEN
    74   ELSIF (UPDATING) THEN
    75     UPDATE M_WAREHOUSE_ACCT SET AD_ORG_ID = :new.AD_ORG_ID
    75     IF (:new.AD_ORG_ID <> :old.AD_ORG_ID) THEN
    76     WHERE M_WAREHOUSE_ID = :new.M_WAREHOUSE_ID;
    76       UPDATE M_WAREHOUSE_ACCT SET AD_ORG_ID = :new.AD_ORG_ID
       
    77       WHERE M_WAREHOUSE_ID = :new.M_WAREHOUSE_ID;
    77     
    78     
    78     UPDATE M_LOCATOR SET AD_ORG_ID = :new.AD_ORG_ID
    79       UPDATE M_LOCATOR SET AD_ORG_ID = :new.AD_ORG_ID
    79     WHERE M_WAREHOUSE_ID = :new.M_WAREHOUSE_ID;
    80       WHERE M_WAREHOUSE_ID = :new.M_WAREHOUSE_ID;
       
    81       END IF;
    80   END IF;
    82   END IF;
    81 END M_WAREHOUSE_TRG
    83 END M_WAREHOUSE_TRG
    82 ]]></body>
    84 ]]></body>
    83     </trigger>
    85     </trigger>
    84   </database>
    86   </database>