marceloCR Posted August 3, 2018 Report Share Posted August 3, 2018 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? Quote Link to comment Share on other sites More sharing options...
gilmer Posted August 6, 2018 Report Share Posted August 6, 2018 Para exportação SetValue("'exporta"," UFSaidaPais","UF") o xPed é nos itens Quote Link to comment Share on other sites More sharing options...
marceloCR Posted August 6, 2018 Author Report Share Posted August 6, 2018 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 ) 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.