src-db/database/model/triggers/C_BPARTNER_LOCATION_TRG.xml
changeset 1605 8a0fe0193bef
parent 785 8dba91261590
child 2078 cf88ca44cdd2
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
    37     v_name VARCHAR2(60) ;
    37     v_name VARCHAR2(60) ;
    38     v_DateNull DATE := TO_DATE('01-01-1900', 'DD-MM-YYYY');
    38     v_DateNull DATE := TO_DATE('01-01-1900', 'DD-MM-YYYY');
    39 BEGIN
    39 BEGIN
    40   DBMS_OUTPUT.PUT_LINE('C_BPartner_Location_Trg') ;
    40   DBMS_OUTPUT.PUT_LINE('C_BPartner_Location_Trg') ;
    41   IF(UPDATING) THEN
    41   IF(UPDATING) THEN
    42     IF NOT(COALESCE(:old.C_Location_ID, 0) <> COALESCE(:NEW.C_Location_ID, 0) OR COALESCE(:old.Updated, v_DateNull) <> COALESCE(:NEW.Updated, v_DateNull)) THEN
    42     IF NOT(COALESCE(:old.C_Location_ID, '0') <> COALESCE(:NEW.C_Location_ID, '0') OR COALESCE(:old.Updated, v_DateNull) <> COALESCE(:NEW.Updated, v_DateNull)) THEN
    43       RETURN;
    43       RETURN;
    44     END IF;
    44     END IF;
    45   END IF;
    45   END IF;
    46   /* -- Get Address Info
    46   /* -- Get Address Info
    47   SELECT City, Address1, Address2
    47   SELECT City, Address1, Address2