Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emissão de notas fiscais de produtos #4

Open
Brunomm opened this issue Sep 19, 2016 · 2 comments
Open

Emissão de notas fiscais de produtos #4

Brunomm opened this issue Sep 19, 2016 · 2 comments
Assignees

Comments

@Brunomm
Copy link
Owner

Brunomm commented Sep 19, 2016

Desenvolver a emissão de notas fiscais de produtos.

@Brunomm Brunomm self-assigned this Sep 19, 2016
Brunomm added a commit that referenced this issue Sep 19, 2016
@Brunomm Brunomm added the NF-e label Sep 19, 2016
Brunomm added a commit that referenced this issue Sep 19, 2016
Brunomm added a commit that referenced this issue Sep 21, 2016
Brunomm added a commit that referenced this issue Sep 29, 2016
… ficar igual ao nome do serviço dos webservices
Brunomm added a commit that referenced this issue Sep 29, 2016
Brunomm added a commit that referenced this issue Oct 3, 2016
…enciar a versão do SSL para cada webservice
Brunomm added a commit that referenced this issue Oct 3, 2016
Brunomm added a commit that referenced this issue Oct 4, 2016
…e e aplicando as validações das notas fiscais na classe emissora.
Brunomm added a commit that referenced this issue Nov 2, 2016
Brunomm added a commit that referenced this issue Nov 7, 2016
Brunomm added a commit that referenced this issue Nov 8, 2016
Brunomm added a commit that referenced this issue Nov 11, 2016
…onteúdo para tag XML prod com as informações disponíveis.
Brunomm added a commit that referenced this issue Nov 18, 2016
…Adicionado classes para Declaração e Importação do item. Criado helper para testar as associações.
Brunomm added a commit that referenced this issue Nov 18, 2016
… a definição da associação a partir do helper criado 'has_many'
Brunomm added a commit that referenced this issue Nov 19, 2016
Brunomm added a commit that referenced this issue Nov 19, 2016
Brunomm added a commit that referenced this issue Dec 15, 2016
Brunomm added a commit that referenced this issue Dec 15, 2016
Brunomm added a commit that referenced this issue Dec 21, 2016
Brunomm added a commit that referenced this issue Dec 27, 2016
…requisições. Desenvolvido para a operação NfeRetAutorizacao
Brunomm added a commit that referenced this issue Dec 27, 2016
…este da validação doo Schema na operação de envio de lote de NF-e. Criado teste para validar a integridade da assinatura da NF-e.
Brunomm added a commit that referenced this issue Dec 27, 2016
Brunomm added a commit that referenced this issue Dec 27, 2016
…F-e no objeto da nota fiscal quando gerar o build do XML na operação de autorização de NF-e.
Brunomm added a commit that referenced this issue Jan 5, 2017
…ilder das respostas e unificado semelhanças no Base
Brunomm added a commit that referenced this issue Mar 16, 2017
…iculo no transporte. Corrigido palavra errada autorized para authorized. Correção das tags XML do ICMS
Brunomm added a commit that referenced this issue Mar 18, 2017
…MSUFDest que o schema da NF-e esta diferente da validação da sefaz no que se refere ao tamanho das casas decimais
Brunomm added a commit that referenced this issue May 31, 2017
…cada operação das notas fiscais facilitando a atualização para novas versões da NF-e
Brunomm added a commit that referenced this issue Jun 9, 2017
@messiashenrique
Copy link

Olá Bruno, boa tarde! Teria como escrever um pequeno exemplozinho de como configurar e fazer um consulta de satus de serviço com a NFe produtos? A partir desse exemplo, acredito que posso testar as outras operações...
Desde já, agradeço a atenção e lhe dou os os parabéns pelo trabalho. Excelente!

@Brunomm
Copy link
Owner Author

Brunomm commented Jan 2, 2018

Olá @messiashenrique, muito obrigado!! 😄
Claro, vou lhe passar aqui um pequeno exemplo deste serviço:

@operation = BrNfe::Product::Operation::NfeStatusServico.new(
  env:                        :test, # Ou :production
  certificate_pkcs12_path: '/pat/certificate.pfx',
  certificate_pkcs12_password: 'SECRET',
  emitente: {
    cnpj:                       "40345138000147",
    inscricao_municipal:        "123465",
    razao_social:               "EMPRESA DE TECNOLOGIA DA INFORMAÇÃO",
    nome_fantasia:              "TI",
    telefone:                   "333366558",
    email:                      "mail@mail.com",
    regime_especial_tributacao: "3",
    codigo_regime_tributario:   "3",
    incentivo_fiscal:           "2",
    natureza_operacao:          "1",
    endereco: {
      logradouro:       "Rua João Cândido Lopes",
      numero:           "402",
      complemento:      "",
      bairro:           "Centro",
      nome_municipio:   "Chapecó",
      codigo_municipio: "4204202", # Código IBGE
      uf:               "SC",
      cep:              "89801-000",
   }
  }
)

@operation.request
response = @operation.response

Para ver os resultados possíveis veja nesta parte do arquivo de testes da operação.

Para as demais operações você também consegue obter alguns exemplos nas Factories e nos arquivos de testes.

Pretendo fazer um refactory geral na gem no começo deste ano, então vou fazer uma wiki com exemplos melhores.
Att

Brunomm added a commit that referenced this issue Feb 6, 2018
Brunomm added a commit that referenced this issue May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants