Jump to content
Fivewin Brasil

Grupo compras e comercio exterior


marceloCR

Recommended Posts

Ao fazer uma nota com a nova versão da classe para NFe 4.0, ao preencher o grupo compras ou o grupo comercio exterior, acontece erro na função abaixo em VoNFe2g.prg:


   Error description: Error BASE/1111  Argument error: LEN
   Args:
     [   1] = U   

 

Stack Calls
===========
   Called from:  => LEN( 0 )
   Called from: VoNFe2g.prg => TVONFE2G:SETVALUEII( 265 )
   Called from: VoNFe2g.prg => TVONFE2G:SETVALUE( 249 )

 

 

    //Comercio Exterior
    aadd(::axNodes, {"exporta", {}, 0 } ); nPos := len(::axNodes)
    aadd(::axNodes[ nPos ][2], {"UFSaidaPais"  , TVoNFeItem():New("C", 1, 2,2   )  }  )
    aadd(::axNodes[ nPos ][2], {"xLocExporta", TVoNFeItem():New("C", 1, 1,60   )  }  )
    aadd(::axNodes[ nPos ][2], {"xLocDespacho", TVoNFeItem():New("C", 0, 1,60   )  }  )


    //Informaçóes de compras
    aadd(::axNodes, {"compra", {}, 0 } ); nPos := len(::axNodes)
    aadd(::axNodes[ nPos ][2], {"xNEmp", TVoNFeItem():New("C", 0, 1, 17,   )  }  )
    aadd(::axNodes[ nPos ][2], {"xPed" , TVoNFeItem():New("C", 0, 1, 60,   )  }  )
    aadd(::axNodes[ nPos ][2], {"xCont", TVoNFeItem():New("C", 0, 1, 60,   )  }  )
 

como resolver?

 

 

Link to comment
Share on other sites

Estou fazendo assim.
oNFe:SetValue("exporta", "UFSaidaPais"   , "SP" )     
oNFe:SetValue("exporta", "xLocExporta"   , "SAO PAULO" ) 

E acontece erro abaixo. Mesma coisa se usar o xPed no grupo "compra"
 

  Error description: Error BASE/1111  Argument error: LEN
   Args:
     [   1] = U   

 

Stack Calls
===========
   Called from:  => LEN( 0 )
   Called from: VoNFe2g.prg => TVONFE2G:SETVALUEII( 265 )
   Called from: VoNFe2g.prg => TVONFE2G:SETVALUE( 249 )

 

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