error com 0x80020006 unknown status code
Publicado por markus (6 intervenciones) el 22/01/2018 20:55:40
estoy usando este codigo fuente , pueden ve el error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
wsfev1 = Createobject("FEAFIPLib.wsfev1")
Wait Window "Autorizando con Webservice Afip" Nowait
jcuit=Int(Val(Alltrim(Strtran(_CUIT,"-",""))))
wsfev1.CUIT = jcuit
wsfev1.URL = URLWSW
_archivoKEY = Sys(5)+Sys(2003)+"\afip\clave.key"
_archivoCRT = Sys(5)+Sys(2003)+"\afip\certificado.crt"
If wsfev1.login(_archivoCRT,_archivoKEY, URLWSAA) Then
If Not wsfev1.SFRecuperaLastCMP(Ptovta, Tipocomp) Then
Messagebox(wsfev1.ErrorDesc)
Else
nro = wsfev1.SFLastCmp
Endif
wsfev1.Reset()
If ventas.letra="C"
m.cuites=Strtran(ventas.CUIT,"-","")
m.nrofc=ventas.numero
m.importe = ventas.Total
wsfev1.AgregaFactura(2, 80, m.cuites,m.nrofc, m.nrofc, xfechacmp, m.importe , 0, m.importe,0, xfechacmp,xfechacmp,xfechavto, "PES", 1)
ENDIF
IF INLIST(ventas.letra, "A" , "B")
m.cuites=Strtran(ventas.CUIT,"-","")
m.nrofc=ventas.numero
m.importe = ventas.Total
**** aqui me da el error
WSFEv1.CrearFactura(2,80,m.cuites,Tipocomp,Ptovta,m.nrofc,m.nrofc,m.importe,0,m.xneto,m.xiva,m.ximpint,0,xfechacmp,xfechacmp,xfechavto,xfechavto, "PES", 1)
wsfev1.AgregaIVA(m.xcodiva, m.xneto, m.xiva)
IF !EMPTY(m.xrni)
wsfev1.AgregaIVA(4, m.xneto, m.xrni)
ENDIF
WSFEv1.AgregarTributo(4, 0, 0, m.ximpint)
IF !EMPTY(m.ximpint)
WSFEv1.AgregarTributo(4, 0, 0, m.imp_trib)
ENDIF
ENDIF
Valora esta pregunta


0