Jump to content
Fivewin Brasil

NFE 4.0 Forma de Pagto


Luiz Fernando

Recommended Posts

Colegas estou usando a classe do Gilmer, alguém consegue ver aonde estou errando no codigo abaixo

 

Function LoadDuplicatas( oNFe,nFiscal )
   if len(aDuplicata)>0
		for j=1 to len(aDuplicata)
		    oItem := TVoNfeCobr()  //TVoNFeDupl()
		    WITH OBJECT oItem
            if j=1
               // fatura
               :nFat   := nFiscal
               :vOrig  := aDetalhe[1,37]-aDetalhe[1,31]
               :vDesc  := aDetalhe[1,31]
               :vLiq   := aDetalhe[1,37]
            endif
				// duplicata
   	  	   :nDup   := aDuplicata[j,1]         // Numero da Duplicata        
			   :dVenc  := ctod(aDuplicata[j,2])   // Data de vencimento
			   :vDup   := val(aDuplicata[j,3])    // Valor Duplicata
		    END
		    oNFe:AddItem( oItem )
		next
	endif
Return(nil)

qdo vou transmitir da este erro

Application
===========
   Path and name: C:\NFE4.0\empre-gestor.EXE (32 bits)
   Size: ********* bytes
   Time from start: 0 hours 0 mins 17 secs 
   Error occurred at: 20/07/2018, 15:34:33
   Error description: Error BASE/2022  Argument error: ALLTRIM
   Args:
     [   1] = A   { ... }

Stack Calls
===========
   Called from:  => ALLTRIM(0)
   Called from: C:\NFE4.0\classes\nfe400\VONFE2G_v4.PRG => TVONFE2G:R_TAG(1348)
   Called from: C:\NFE4.0\classes\nfe400\VONFE2G_v4.PRG => TVONFE2G:GETTAG(1228)
   Called from: C:\NFE4.0\classes\nfe400\VONFE2G_v4.PRG => TVONFE2G:GETTAG(1218)
   Called from: C:\NFE4.0\classes\nfe400\VONFE2G_v4.PRG => TVONFE2G:GERARXML(1147)
   Called from: C:\NFE4.0\source\NfeFlexdocs.prg => GERARNFE(334)

 

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...