SET TERM ^ ;

CREATE or alter trigger ttbcolaborador_credito_b01iu for tbcolaborador_credito
active before insert or update position 0
AS
BEGIN

  IF(NEW.VALOR_CREDITO IS NULL) THEN
  BEGIN
    NEW.VALOR_CREDITO = 0;
  END

  IF(NEW.SALDO IS NULL) THEN
  BEGIN
    NEW.SALDO = 0;
  END


END
^

SET TERM ; ^

