Jump to content
Fivewin Brasil

vTroco NFe40


Polirep

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...