CREATE TRIGGER TBNFS_PARCELAMENTO_TARIFA_B01I FOR TBNFS_PARCELAMENTO_TARIFA
ACTIVE BEFORE INSERT POSITION 1
AS
BEGIN
    IF(NEW.ID IS NULL) THEN
    BEGIN
        NEW.ID = GEN_ID(GTBNFS_PARCELAMENTO_TARIFA, 1);
    END
END;