Polirep Posted July 30, 2018 Report Share Posted July 30, 2018 Boa tarde pessoALL Alguem sabe me dizer como usar a tag vTroco na NFe40.. na classe do Gilmer ela não aparece Obrigado Quote Link to comment Share on other sites More sharing options...
kapiaba Posted July 30, 2018 Report Share Posted July 30, 2018 Tais com a versão correta mano? ElseIf oItem:ClassName=="TVONFEPAG" // pag nPos:=ascan(::axNodes, {|x| x[1]=="pag" } ) if nPos==0 nPos:=ascan(::axNodes, {|x| x[1]=="cobr" } ) if nPos==0 nPos:=ascan(::axNodes, {|x| x[1]=="transp" } ) Endif Ains(::axNodes,nPos+1) ::axNodes[nPos+1]:={ "pag", {}, 0 } nPos:=ascan(::axNodes, {|x| x[1]=="pag" } ) Endif if nPos!=0 aadd(::axNodes[nPos,2], {"detPag" , ::StruDetPag(oItem) } ) aadd(::axNodes[nPos,2], {"vTroco", TVoNFeItem():new("N", 0, 1,15, 02,,oItem:vTroco ) } ) Endif Abs. Quote Link to comment Share on other sites More sharing options...
gilmer Posted July 31, 2018 Report Share Posted July 31, 2018 Bom Dia, Se você esta passando zero! altere esta linha aadd(::axNodes[nPos,2], {"vTroco", TVoNFeItem():new("N", 0, 1,15, 02,,oItem:vTroco ) } ) aadd(::axNodes[nPos,2], {"vTroco", TVoNFeItem():new("N", 1, 1,15, 02,,oItem:vTroco ) } ) Quote Link to comment Share on other sites More sharing options...
crisvam Posted August 1, 2018 Report Share Posted August 1, 2018 Bom dia a todos Mesmo alterando ainda dá o erro: Mensagen not found> TVONFEPAG:_VTROCO 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.