Ir para conteúdo
  • Cadastre-se

hleorj

Moderadores
  • Total de ítens

    1.303
  • Registro em

  • Última visita

  • Days Won

    9

Posts postados por hleorj

  1. Obrigado , aplicarei isto em novas situações

     

    Obrigado...

    Enviei a modificação para pcnConversao.pas

    No caso de pcnConversaoNFe.pas... achei mais simples (e seguro) fazer um StrToIntDef()

    case StrToIntDef( stpComb, 0) of

     

    no futuro alguém deveria aplicar um enumerador para evitar llentidão e compilação melhor para o projeto

  2. Novo Enumerador 

    function BandeiraCartaoToDescStr(const t: TpcnBandeiraCartao): string;

    pcnConversao.pas

    Atualizacao de Enumeradores, verifica a constante string está difrente de vazio, para fazer corretamente a conversao para inteiro;

    function VeiculosCorDENATRANStr( const sCorDENATRAN : String ): String;
    begin
      if sCorDENATRAN <> '' then
      begin
        case StrToInt( sCorDENATRAN ) of

    function VeiculosCombustivelStr( const sTpComb : String ): String;
    begin
      if stpComb <> '' then
      begin
        case StrToInt( stpComb ) of

    pcnConversaoNFe.pas

    Por favor aplicarem as atualizações no SVN,

     

    Grato

  3. 1-  Esta utilizando o Trunk2 ? pois estas atualizações devem ser aplicadas nele;

    2- caso ja esteja no trunk2 , Abra o seu projeto 

                                                   Selecione Project

                                                      selecione Build All  Project

                                                   

  4. Atualize o acbr; 

       Atentar para o meu erro grave.

     

    Boa tarde,

    Quando tento instalar o pacote ACBR_NFeDanfeRL aparece os seguints erros na unit ajustada pelo nosso amigo Henrique:

     

    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1291): E2003 Undeclared identifier: 'modFreteToDesStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1444): E2003 Undeclared identifier: 'indProcToDescrStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1804): E2003 Undeclared identifier: 'VeiculosTipoOperStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1813): E2003 Undeclared identifier: 'VeiculosCombustivelStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1820): E2003 Undeclared identifier: 'VeiculosTipoStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1821): E2003 Undeclared identifier: 'VeiculosEspecieStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1822): E2003 Undeclared identifier: 'VeiculosVinStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1823): E2003 Undeclared identifier: 'VeiculosCondicaoStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1825): E2003 Undeclared identifier: 'VeiculosCorDENATRANSTr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1827): E2003 Undeclared identifier: 'VeiculosRestricaoStr'
    [DCC Error] ACBrNFeDANFeRLRetrato.pas(1865): E2003 Undeclared identifier: 'ArmaTipoStr'
     

    Esses estão declarados na unit pcnconversao.pas porém não compila. Alguma dica do que pode ser?

     

    Grato,

    Os enumerados estão declarados em pcnConversaoNfe.pas

     

    Atualize o Acbr.

       Atentar para o erro Grave. postado acima.

  5. Implatação de Enumaradores :

    function modFreteToDesStr(const t: TpcnModalidadeFrete): string;

    function indProcToDescrStr(const t: TpcnIndicadorProcesso): string;

     

     

    pcnConversao.pas

    Implatação de Enumaradores : 

    function VeiculosRestricaoStr( const iRestricao :Integer ): String;
    function VeiculosCorDENATRANStr( const sCorDENATRAN : String ): String;
    function VeiculosCondicaoStr( const condVeic: TpcnCondicaoVeiculo ): String;
    function VeiculosVinStr( const sVin: String ): String;
    function VeiculosEspecieStr( const iEspecie : Integer ): String;
    function VeiculosTipoStr( const iTipoVeic : Integer ): String;
    function VeiculosCombustivelStr( const sTpComb : String ): String;
    function VeiculosTipoOperStr( const TtpOP : TpcnTipoOperacao ): String;

    function ArmaTipoStr( const TtpArma : TpcnTipoArma ): String;

    pcnConversaoNFe.pas

    Revisão 2 : Diversos ajustes no código fonte.

    Implantação de Encerrante no grupo combustível.

     

     

    ACBrNFeDANFeRLRetrato.pas

    ACBrNFeDANFeRLRetrato.dfm

    • Curtir 1
  6. Muito  Obrigado.

      Revisão 2  -  

      Em testes :

        - Mais Remoção de Variáveis  :)

        - Mais Remoção de If´s :)

        - Mais Estrutura em case. :)

        - Novos procedimentos e Funções.

        - Código limpo para manutenção e implementação.

        - Novos enumeradores para implantar em pcnConversoNfe.pas para serem aproveitados.

     

    • Curtir 2
  7. Diversos ajuste :

                  Nova identacao
                  Remocao de comentarios
                  Ajustes para Nota denegada
                  Remocao de Variaveis
                  Nova Estrutura em case
                  Remocao de If nao necessarios para danfe

     

    Danfe.rar

  8. Solicito as devidas modificacoes Para o seguintes casos para notas denegadas

    205    Rejeição: NF-e está denegada na base de dados da SEFAZ
    301    Uso Denegado: Irregularidade fiscal do emitente    WS
    302    Uso Denegado: Irregularidade fiscal do destinatário


    Em :

    Unit ACBrNFeDANFeRLPaisagem.pas

    Na 
      procedure TfrlDANFeRLPaisagem.InitDados;

       De
           if FNFe.procNFe.cStat = 110 then

        Para
          if FNFe.procNFe.cStat = [110,205,301,302] then

     

       De
          if not FNFe.procNFe.cStat in [100, 101, 110, 151, 155] then

       Para
         if not FNFe.procNFe.cStat in [100, 101, 110, 151, 155,205,301,302] then

     

    Unit ACBrNFeDANFeRLRetrato;

    Na
     procedure TfrlDANFeRLRetrato.InitDados;

       De
         If FNFe.procNFe.cStat = 110 then

        Para
          if FNFe.procNFe.cStat = [110,205,301,302] then

       De
          if not FNFe.procNFe.cStat in [100, 101, 110, 151, 155] then

       Para
         if not FNFe.procNFe.cStat in [100, 101, 110, 151, 155,205,301,302] then


    Unit ACBrNFeDANFeRLSimplificado;

    Na
      procedure TfrlDANFeRLSimplificado.RLb04_DestinatarioBeforePrint(  Sender: TObject; var PrintIt: boolean);  


      De
         If FNFe.procNFe.cStat = 110 then

        Para
          if FNFe.procNFe.cStat = [110,205,301,302] then

       De
          if not FNFe.procNFe.cStat in [100, 101, 110, 151, 155] then

       Para
         if not FNFe.procNFe.cStat in [100, 101, 110, 151, 155,205,301,302] then

     

    Grato.

×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.

The popup will be closed in 10 segundos...