Pesquisar na Comunidade
Showing results for tags 'v3.10'.
Encontrado 1 registro
-
Bom dia colegas, Após uma longa ausencia estou de volta. Estive testando a emissão de NF-e/NFC-e na versão 3.10 e encontrei um probleminha na função "TNFeW.GerarXml" da unit pcnNFeW, o erro está na tag dhRecbto que, após enviar a NF-e e estar marcada a configuração de arquivos.Salvar, não envia o UTC ficando assim diferente do procNFe retornado pelo WS. Efetuei a alteração no arquivo e o envio em anexo. if nfe.procNFe.nProt <> '' then begin xProtNFe := // (**)'<protNFe versao="2.00">' + (**)'<protNFe ' + NFe.infNFe.VersaoStr + '>' + (******)'<infProt>'+ (*********)'<tpAmb>'+TpAmbToStr(nfe.procNFe.tpAmb)+'</tpAmb>'+ (*********)'<verAplic>'+nfe.procNFe.verAplic+'</verAplic>'+ (*********)'<chNFe>'+nfe.procNFe.chNFe+'</chNFe>'+ (*********)'<dhRecbto>'+FormatDateTime('yyyy-mm-dd"T"hh:nn:ss',nfe.procNFe.dhRecbto)+ IIf(FNFe.infNFe.Versao >= 3.10, GetUTC(CodigoParaUF(FNFe.Ide.cUF),nfe.procNFe.dhRecbto),'')+'</dhRecbto>'+ (*********)'<nProt>'+nfe.procNFe.nProt+'</nProt>'+ (*********)'<digVal>'+nfe.procNFe.digVal+'</digVal>'+ (*********)'<cStat>'+IntToStr(nfe.procNFe.cStat)+'</cStat>'+ (*********)'<xMotivo>'+nfe.procNFe.xMotivo+'</xMotivo>'+ (******)'</infProt>'+ {****}'</protNFe>'; (**)Gerador.wTexto(xProtNFe); Gerador.wGrupo('/nfeProc'); end; pcnNFeW.pas