-
Notifications
You must be signed in to change notification settings - Fork 59
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
Missing tags in NFS-e #104
Comments
Ola @LuccaAug realmente tem alguma coisa estranha; no arquivo xlsx que vc menciona existe a tag tribFed. Existe até no arquivo de demo do projeto UNINFE GerarNFSeEnvio2-env-loterps.xml Porem no esquema da NFSE Nacional 1.0, essa mesma tag dentro da tag trib se chama tribNac: Inclusive todas tags de impostos federais descritas no arquivo xlsx a gente encontra dentro do tipo complexo: Ou dentro da tag filha piscofins de tipo complexo TCTribOutrosPisCofins E ai quem ta errado? O arquivo xsd ou o arquivo xslx?? Se vc tiver alguma fonte confiavel dizendo que a tag certa é tribFed, tou OK para a gente fazer um patch do esquema xsd oficial e trocar tribNac por tribFed e gerir os bindings de novo. Mas tem algum motivo para pensar que o certo é tribFed mesmo?? O que vc acha? |
Olá Raphael, realmente os arquivos fornecidos pela Receita estão com dados conflitantes, não possuo uma fonte interna ou algo do tipo, o que eu tenho são notas reais, inclusive validadas na consulta pública, que possuem a tag <valores>
<vServPrest>
<vServ>XXX</vServ>
</vServPrest>
<vDescCondIncond>
<vDescIncond>XXX</vDescIncond>
<vDescCond>XXX</vDescCond>
</vDescCondIncond>
<trib>
<tribMun>
<tribISSQN>XXX</tribISSQN>
<pAliq>XXX</pAliq>
<tpRetISSQN>XXX</tpRetISSQN>
</tribMun>
<tribFed>
<piscofins>
<CST>XXX</CST>
<vPis>XXX</vPis>
<vCofins>XXX</vCofins>
</piscofins>
<vRetCP>XXX</vRetCP>
<vRetIRRF>XXX</vRetIRRF>
<vRetCSLL>XXX</vRetCSLL>
</tribFed>
<totTrib>
<indTotTrib>XXX</indTotTrib>
</totTrib>
</trib>
</valores> <valores>
<vServPrest>
<vServ>XXX</vServ>
</vServPrest>
<trib>
<tribMun>
<tribISSQN>XXX</tribISSQN>
<pAliq>XXX</pAliq>
<tpRetISSQN>XXX</tpRetISSQN>
</tribMun>
<tribFed>
<vRetCP>XXX</vRetCP>
</tribFed>
<totTrib>
<indTotTrib>XXX</indTotTrib>
</totTrib>
</trib>
</valores> Não acho que seja suficiente para prova, mas para corroborar, ao consultar uma nota ou ver seu PDF, o nome da área que mostra os dados desta tag é |
ola @LuccaAug vc consegue testar com esse PR e me falar se ta OK #105 ? Olha, nem me surprende esse pessoal da especificação ter se cagado no xsd. Antes desse padrão nacional, a ABRASF tinha um xsd de referencia e esse proprio arquivo "xsd" tinha uma tag mal fechada e nem podia ser lida como arquivo XML... Isso por anos... |
Boa tarde Raphael, funcionou certinho, tudo OK Perdão a demora e obrigado pela solução |
I got the error below when using the lib to parse a NFS-e:
You can find the tag
NFSe/infNFSe/DPS/infDPS/valores/trib/tribFed/
onLeiaute NFS-e - ADN
tab in the anexoiv-leiautesrn_adn-snnfse_v1-00-02-producao.xlsx file on the NFS-e docsThe text was updated successfully, but these errors were encountered: