CREATE OR REPLACE TRIGGER TRG_IDTIPOMOVIVEAUX_MOVCAIXA
BEFORE INSERT
ON MOVCAIXA FOR EACH ROW
BEGIN
  IF :NEW.IDTIPOMOVIVEAUX IS NULL THEN
    :NEW.IDTIPOMOVIVEAUX := :NEW.IDTIPOMOVIVE;
  END IF;
END;
/