Descrição: No módulo ETL, ao emitir a Nota Fiscal, é gerada com os impostos, valores e quantidades zerados.

Causa: O incidente ocorre pois o sistema trava ao emitir a Nota Fiscal e não grava as informações nas tabelas.

Solução: Para ajustar as informações zeradas, siga os passos a seguir:

  1. Acesse o banco de dados (SQL server) no servidor da loja e execute a query a seguir:

    Executar via banco de dados
    select * from LOJA_NOTA_FISCAL
    --update LOJA_NOTA_FISCAL set status_nfe = '5', log_status_nfe = '0', CHAVE_NFE = 'xxx'
    --update LOJA_NOTA_FISCAL set PROTOCOLO_CANCELAMENTO_NFE = '', DATA_CANCELAMENTO = '', NOTA_CANCELADA = '0'
    --update LOJA_NOTA_FISCAL set QTDE_CANCELADA = '0', VALOR_CANCELADO = '0.00'
    --update LOJA_NOTA_FISCAL set VALOR_TOTAL = 'xxx', VALOR_TOTAL_ITENS = 'xxx', QTDE_TOTAL = '1.000'
    --update LOJA_NOTA_FISCAL set PROTOCOLO_AUTORIZACAO_NFE = 'xxx', DATA_AUTORIZACAO_NFE = 'xxx'
    where NF_NUMERO = 'xx'
    and SERIE_NF = 'xx'
    
    
    select * from LOJA_NOTA_FISCAL_ITEM
    --update LOJA_NOTA_FISCAL_ITEM set QTDE_ITEM = '1.000', VALOR_ITEM = 'xxx', PRECO_UNITARIO = 'xxx'
    where NF_NUMERO = 'xx'
    and SERIE_NF = 'xx'
    
    
    select TAXA_IMPOSTO, VALOR_IMPOSTO, BASE_IMPOSTO, * from LOJA_NOTA_FISCAL_IMPOSTO
    where nf_numero = 'xx'
    and SERIE_NF = 'xx'
    and ID_IMPOSTO in ('1', '5', '6')
    /*
    update LOJA_NOTA_FISCAL_IMPOSTO
    set TAXA_IMPOSTO = 'xx.00000', VALOR_IMPOSTO = 'xx', BASE_IMPOSTO = 'xx'
    where nf_numero = 'xx' and SERIE_NF = 'xx' and ITEM_IMPRESSAO = '0001' and ID_IMPOSTO = '1'
    --ICMS
    
    update LOJA_NOTA_FISCAL_IMPOSTO
    set TAXA_IMPOSTO = '1.65000', VALOR_IMPOSTO = 'xx', BASE_IMPOSTO = 'xx'
    where nf_numero = 'xx' and SERIE_NF = 'xx' and ITEM_IMPRESSAO = '0001' and ID_IMPOSTO = '5'
    --PIS
    
    update LOJA_NOTA_FISCAL_IMPOSTO
    SET TAXA_IMPOSTO = '7.60000', VALOR_IMPOSTO = 'xx', BASE_IMPOSTO = 'xx'
    where nf_numero = 'xx' and SERIE_NF = 'xx' and ITEM_IMPRESSAO = '0001' and ID_IMPOSTO = '6'
    --CONFINS
    */
    
    select * from loja_venda_pgto
    where numero_fiscal_venda = 'xx'
    
    select * from loja_venda
    where lancamento_caixa = 'xx'
    and terminal = 'xx'
    
    select * from loja_venda_parcelas
    where lancamento_caixa = 'xx'
    and terminal = 'xx'
    --Importante consultar todas as tabelas informadas, pois se houver divergência em algum campo não haverá integração da venda.
  2. Após executar a query, as informações serão devidamente ajustadas .


Observação

Para mais informações de como abrir uma query, clique aqui.

  • Sem rótulos