CREATE OR ALTER trigger TTBPERFIL00IU FOR TBPERFIL
active before insert or update position 0
AS
begin
  if(new.id <> ' ')then
  begin
     new.id = trim(new.id);
  end
end;

CREATE OR ALTER trigger TTBMODELO_BLOQUEIO00IU FOR TBMODELO_BLOQUEIO
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBREGRA_CALCULO_CUSTO00IU FOR TBREGRA_CALCULO_CUSTO
active before insert or update position 0
AS
begin
  if(new.PERFIL_UP <> ' ')then
  begin
     new.PERFIL_UP = trim(new.PERFIL_UP);
  end
end;

CREATE OR ALTER trigger TTBSUB_UP00IU FOR TBSUB_UP
active before insert or update position 0
AS
begin
  if(new.PERFIL_SKU <> ' ')then
  begin
     new.PERFIL_SKU = trim(new.PERFIL_SKU);
  end
end;

CREATE OR ALTER trigger TTBAGRUPAMENTO_PEDIDO00IU FOR TBAGRUPAMENTO_PEDIDO
active before insert or update position 0
AS
begin
  if(new.PERFIL_SKU <> ' ')then
  begin
     new.PERFIL_SKU = trim(new.PERFIL_SKU);
  end

  if(new.PERFIL_COR <> ' ')then
  begin
     new.PERFIL_COR = trim(new.PERFIL_COR);
  end
end;

CREATE OR ALTER trigger TTBCUSTO_MARGEM_SKU00IU FOR TBCUSTO_MARGEM_SKU
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBPEDIDO_ITEM00IU FOR TBPEDIDO_ITEM
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end

  if(new.perfil_cor <> ' ')then
  begin
     new.perfil_cor = trim(new.perfil_cor);
  end
end;

CREATE OR ALTER trigger TTBCOR00IU FOR TBCOR
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBPEDIDO_ITEM_PROCESSADO00IU FOR TBPEDIDO_ITEM_PROCESSADO
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBAGRUPAMENTO00IU FOR TBAGRUPAMENTO
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBREMESSA_ITEM_PROCESSADO00IU FOR TBREMESSA_ITEM_PROCESSADO
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBREMESSA00IU FOR TBREMESSA
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBDEFEITO_TRANSACAO_ITEM00IU FOR TBDEFEITO_TRANSACAO_ITEM
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBESTEIRA00IU FOR TBESTEIRA
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end

  if(new.perfil_ped <> ' ')then
  begin
     new.perfil_ped = trim(new.perfil_ped);
  end
end;

CREATE OR ALTER trigger TTBSETOR00IU FOR TBSETOR
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBAGRUPAMENTO_CARGA_GP00IU FOR TBAGRUPAMENTO_CARGA_GP
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBAGRUPAMENTO_CARGA_COR00IU FOR TBAGRUPAMENTO_CARGA_COR
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBREQUISICAO00IU FOR TBREQUISICAO
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBCONTACONTABIL00IU FOR TBCONTACONTABIL
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBCENTRO_DE_CUSTO00IU FOR TBCENTRO_DE_CUSTO
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBSOBRA00IU FOR TBSOBRA
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBLINHA_PERFIL00IU FOR TBLINHA_PERFIL
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBGP_PERFIL_SKU00IU FOR TBGP_PERFIL_SKU
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end

end;

CREATE OR ALTER trigger TTBMODELO_LINHA00IU FOR TBMODELO_LINHA
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end

  if(new.PERFIL_PEDIDO <> ' ')then
  begin
     new.PERFIL_PEDIDO = trim(new.PERFIL_PEDIDO);
  end
end;

CREATE OR ALTER trigger TTBCALENDARIO_ESTACAO00IU FOR TBCALENDARIO_ESTACAO
active before insert or update position 0
AS
begin
  if(new.PERFIL_SKU <> ' ')then
  begin
     new.PERFIL_SKU = trim(new.PERFIL_SKU);
  end
end;

CREATE OR ALTER trigger TTBPERFIL_FAMILIA00IU FOR TBPERFIL_FAMILIA
active before insert or update position 0
AS
begin
  if(new.PERFIL_ID <> ' ')then
  begin
     new.PERFIL_ID = trim(new.PERFIL_ID);
  end
end;

CREATE OR ALTER trigger TTBOPERADOR_SETOR00IU FOR TBOPERADOR_SETOR
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBCONFIGURACAO00IU FOR TBCONFIGURACAO
active before insert or update position 0
AS
begin
  if(new.SPED_PERFIL <> ' ')then
  begin
     new.SPED_PERFIL = trim(new.SPED_PERFIL);
  end
end;

CREATE OR ALTER trigger TTBMODELO_PERFIL00IU FOR TBMODELO_PERFIL
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBGP_PERFIL_SKU00IU FOR TBGP_PERFIL_SKU
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBPESQUISA00IU FOR TBPESQUISA
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBFAMILIA00IU FOR TBFAMILIA
active before insert or update position 0
AS
begin
  if(new.perfil <> ' ')then
  begin
     new.perfil = trim(new.perfil);
  end
end;

CREATE OR ALTER trigger TTBCAIXABANCO00IU FOR TBCAIXABANCO
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBCLIENTE_OCORRENCIA00IU FOR TBCLIENTE_OCORRENCIA
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBMODELO00IU FOR TBMODELO
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBNFS_PARCELAMENTO00IU FOR TBNFS_PARCELAMENTO
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBNFE_PARCELAMENTO00IU FOR TBNFE_PARCELAMENTO
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBREVISAO_OB00IU FOR TBREVISAO_OB
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBSAC_DEFEITO00IU FOR TBSAC_DEFEITO
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBNFE00IU FOR TBNFE
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBNFS00IU FOR TBNFS
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBOC00IU FOR TBOC
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

CREATE OR ALTER trigger TTBPEDIDO00IU FOR TBPEDIDO
active before insert or update position 0
AS
begin
  if(new.CLASSIFICACAO <> ' ')then
  begin
     new.CLASSIFICACAO = trim(new.CLASSIFICACAO);
  end
end;

COMMENT ON TRIGGER TTBPERFIL00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBMODELO_BLOQUEIO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBREGRA_CALCULO_CUSTO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBSUB_UP00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBAGRUPAMENTO_PEDIDO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCUSTO_MARGEM_SKU00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBPEDIDO_ITEM00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCOR00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBPEDIDO_ITEM_PROCESSADO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBAGRUPAMENTO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBREMESSA_ITEM_PROCESSADO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBREMESSA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBDEFEITO_TRANSACAO_ITEM00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBESTEIRA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBSETOR00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBAGRUPAMENTO_CARGA_GP00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBAGRUPAMENTO_CARGA_COR00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBREQUISICAO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCONTACONTABIL00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCENTRO_DE_CUSTO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBSOBRA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBLINHA_PERFIL00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBGP_PERFIL_SKU00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBMODELO_LINHA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCALENDARIO_ESTACAO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBPERFIL_FAMILIA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBOPERADOR_SETOR00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCONFIGURACAO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBMODELO_PERFIL00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBGP_PERFIL_SKU00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBPESQUISA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBFAMILIA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCAIXABANCO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBCLIENTE_OCORRENCIA00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBMODELO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBNFS_PARCELAMENTO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBNFE_PARCELAMENTO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBREVISAO_OB00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBSAC_DEFEITO00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBNFE00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBNFS00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBOC00IU IS 'TRIM PERFIL';
COMMENT ON TRIGGER TTBPEDIDO00IU IS 'TRIM PERFIL';

