jfaguiar Posted June 7, 2018 Report Share Posted June 7, 2018 Boa tarde galera. Estou tentando gerar uma NF-e com a CSOSN 500 e o validaxml ta pedindo a ta pST. Eu já a preenchi com 18, mas o problema continua. Alguém teria um xml nessa situação para postar pra NÓIS. Obrigado Quote Link to comment Share on other sites More sharing options...
mkyx Posted June 7, 2018 Report Share Posted June 7, 2018 já tentou 00 Quote Link to comment Share on other sites More sharing options...
jfaguiar Posted June 7, 2018 Author Report Share Posted June 7, 2018 já tentou 00 Obrigado. vou tentar Quote Link to comment Share on other sites More sharing options...
jfaguiar Posted June 7, 2018 Author Report Share Posted June 7, 2018 já tentou 00 já tentou 00 Quando mando 00 tá omitindo a tag Boa tarde galera. Estou tentando gerar uma NF-e com a CSOSN 500 e o validaxml ta pedindo a ta pST. Eu já a preenchi com 18, mas o problema continua. Alguém teria um xml nessa situação para postar pra NÓIS. Obrigado Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 7, 2018 Report Share Posted June 7, 2018 http://www.flexdocs.com.br/guiaNFe/gerarNFe.detalhe.imp.ICMS400.CSOSN.html Exemplo de XML para CRT=1 e CSOSN = 500<ICMS> <ICMSSN500> <orig>0</orig> <CSOSN>500</CSOSN> <vBCSTRet>162.00</vBCSTRet> <vICMSSTRet>12.96</vICMSSTRet> </ICMSSN500></ICMS> Quote Link to comment Share on other sites More sharing options...
jfaguiar Posted June 7, 2018 Author Report Share Posted June 7, 2018 Obrigado. vou tentar Opa. ALterei o parametro na classe do dr Gilmer depois do "N" de 0 para um e aceitou conteúdo zerado, mas acho que esse parâmetro é obrigatório. aadd( axArray[nPos][2], {"pST" , TVoNFeItem():New("N", 1, 1, 15,2 ,,oItem:pST ) } ) Quote Link to comment Share on other sites More sharing options...
jfaguiar Posted June 7, 2018 Author Report Share Posted June 7, 2018 já tentou 00 Olá amigos, era a ordem tas tags. ALterei na classe do dr Gilmer assim e fununciou. // alterdo a ordem pelo joao aadd( axArray, {"ICMSSN500" , {}, 1 } ); nPos := len(axArray) aadd( axArray[nPos][2], {"orig" , TVoNFeItem():New("N", 1, 1, 1 ,,,oItem:orig ) } ) aadd( axArray[nPos][2], {"CSOSN" , TVoNFeItem():New("N", 1, 1, 3 ,,,oItem:CSOSN ) } ) aadd( axArray[nPos][2], {"vBCSTRet" , TVoNFeItem():New("N", 1, 1, 15,2 ,,oItem:vBCSTRet ) } ) aadd( axArray[nPos][2], {"pST" , TVoNFeItem():New("N", 1, 1, 15,2 ,,oItem:pST ) } ) // tava depois do vICMSSTRet aadd( axArray[nPos][2], {"vICMSSTRet" , TVoNFeItem():New("N", 1, 1, 15,2,,oItem:vICMSSTRet ) } ) aadd( axArray[nPos][2], {"vBCFCPSTRet" , TVoNFeItem():New("N", 0, 1, 15,2 ,,oItem:vBCFCPSTRET ) } ) aadd( axArray[nPos][2], {"pFCPSTRet" , TVoNFeItem():New("N", 0, 1, 6 ,2 ,,oItem:pFCPSTRET ) } ) aadd( axArray[nPos][2], {"vFCPSTRet" , TVoNFeItem():New("N", 0, 1, 15,2 ,,oItem:vFCPSTRET ) } ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.