CREATE TRIGGER TTBNFS_B10UI FOR TBNFS
ACTIVE BEFORE INSERT OR UPDATE POSITION 0
AS
begin
  if(new.CFOP_CODIGO = '' or new.CFOP_CODIGO IS NULL)then
  begin
     exception "..." 'CFOP INVALIDO OU NAO CADASTRADO, OPERACAO CANCELADA!';
  end
end;
