SET TERM ^ ;

CREATE trigger ttbpdv_cfe_b06u for tbpdv_cfe
active before update position 6
AS
BEGIN
    IF(COALESCE(NEW.COLABORADOR_ID, 0) > 0) THEN
    BEGIN
        NEW.CLIENTE_ID = FN_PARAMETRO('SISTEMA.COLABORADOR_PADRAO_PDV');
    END
END
^

SET TERM ; ^

