src-db/database/model/triggers/GL_JOURNALLINE2_TRG.xml
changeset 21737 fcb87e990fcd
parent 20217 d62cb5baa0c1
child 25470 7c00db2d6532
equal deleted inserted replaced
21736:9fe57239e6a9 21737:fcb87e990fcd
    32     
    32     
    33 BEGIN
    33 BEGIN
    34     
    34     
    35     IF AD_isTriggerEnabled()='N' THEN RETURN;
    35     IF AD_isTriggerEnabled()='N' THEN RETURN;
    36     END IF;
    36     END IF;
    37 
       
    38 
       
    39   IF(UPDATING) THEN
    37   IF(UPDATING) THEN
    40     IF NOT((COALESCE(:old.AMTSOURCEDR, 0) <> COALESCE(:NEW.AMTSOURCEDR, 0) OR COALESCE(:old.AMTSOURCECR, 0) <> COALESCE(:NEW.AMTSOURCECR, 0) OR COALESCE(:old.C_CURRENCY_ID, '0') <> COALESCE(:NEW.C_CURRENCY_ID, '0'))) THEN
    38     IF NOT((COALESCE(:old.AMTSOURCEDR, 0) <> COALESCE(:NEW.AMTSOURCEDR, 0) OR COALESCE(:old.AMTSOURCECR, 0) <> COALESCE(:NEW.AMTSOURCECR, 0) 
       
    39             OR COALESCE(:old.C_CURRENCY_ID, '0') <> COALESCE(:NEW.C_CURRENCY_ID, '0') OR  COALESCE(:old.currencyrate, '0') <> COALESCE(:NEW.currencyrate, '0'))) THEN
    41       RETURN;
    40       RETURN;
    42     END IF;
    41     END IF;
    43   END IF;
    42   END IF;
    44   SELECT C_AcctSchema_ID,
    43   SELECT C_AcctSchema_ID,
    45     CurrencyRate,
    44     CurrencyRate,