예제 #1
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.CodigoTransaccion = self.Errores = self.Resultado = None
     self.Resultado = ''
     self.Errores = []   # lista de strings para la interfaz
     self.errores = []   # lista de diccionarios (uso interno)
     self.CantPaginas = self.HayError = None
예제 #2
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.CodigoTransaccion = self.Errores = self.Resultado = None
     self.Resultado = ''
     self.Errores = []   # lista de strings para la interfaz
     self.errores = []   # lista de diccionarios (uso interno)
     self.CantPaginas = self.HayError = None
예제 #3
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Resultado = self.Motivo = self.Reproceso = ''
     self.LastID = self.LastCMP = self.CAE = self.Vencimiento = ''
     self.CbteNro = self.FechaCbte = self.PuntoVenta = self.ImpTotal = None
     self.InstallDir = INSTALL_DIR
     self.FchVencCAE = ""              # retrocompatibilidad
예제 #4
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Resultado = self.Motivo = self.Reproceso = ''
     self.LastID = self.LastCMP = self.CAE = self.Vencimiento = ''
     self.CbteNro = self.FechaCbte = self.PuntoVenta = self.ImpTotal = None
     self.InstallDir = INSTALL_DIR
     self.FchVencCAE = ""              # retrocompatibilidad
예제 #5
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Resultado = self.Motivo = self.Reproceso = ''
     self.LastID = self.LastCMP = self.CAE = self.CAEA = self.Vencimiento = ''
     self.CbteNro = self.CbtDesde = self.CbtHasta = self.PuntoVenta = None
     self.ImpTotal = self.ImpIVA = self.ImpOpEx = self.ImpNeto = self.ImptoLiq = self.ImpTrib = None
     self.EmisionTipo = self.Periodo = self.Orden = ""
     self.FechaCbte = self.FchVigDesde = self.FchVigHasta = self.FchTopeInf = self.FchProceso = ""
예제 #6
0
파일: wsfev1.py 프로젝트: imclab/pyafipws
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Resultado = self.Motivo = self.Reproceso = ''
     self.LastID = self.LastCMP = self.CAE = self.CAEA = self.Vencimiento = ''
     self.CbteNro = self.CbtDesde = self.CbtHasta = self.PuntoVenta = None
     self.ImpTotal = self.ImpIVA = self.ImpOpEx = self.ImpNeto = self.ImptoLiq = self.ImpTrib = None
     self.EmisionTipo = self.Periodo = self.Orden = ""
     self.FechaCbte = self.FchVigDesde = self.FchVigHasta = self.FchTopeInf = self.FchProceso = ""
예제 #7
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.errores = []
     self.CAE = ""
     self.NroComprobante = self.FechaComprobante = self.FechaProcesoAFIP = ''
     self.NroCodigoBarras = self.FechaVencimientoCae = None
     self.ImporteBruto = self.ImporteIVASobreBruto = None
     self.ImporteTotalGastos = self.ImporteIVASobreGastos = None
     self.ImporteTotalTributos = self.ImporteTotalNeto = None
     self.datos = {}
예제 #8
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.errores = []
     self.CAE = ""
     self.NroComprobante = self.FechaComprobante = self.FechaProcesoAFIP = ''
     self.NroCodigoBarras = self.FechaVencimientoCae = None
     self.ImporteBruto = self.ImporteIVASobreBruto = None
     self.ImporteTotalGastos = self.ImporteIVASobreGastos = None
     self.ImporteTotalTributos = self.ImporteTotalNeto = None
     self.datos = {}
예제 #9
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Resultado = self.Motivo = self.Reproceso = ''
     self.LastID = self.LastCMP = self.CAE = self.Vencimiento = ''
     self.CAEA = None
     self.Periodo = self.Orden = ""
     self.FchVigDesde = self.FchVigHasta = ""
     self.FchTopeInf = self.FchProceso = ""
     self.CbteNro = self.FechaCbte = ImpTotal = None
     self.EmisionTipo = self.Evento = ''
     self.Reproceso = ''  # no implementado
예제 #10
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.errores = []
     self.CAE = ""
     self.NroComprobante = self.FechaLiquidacion = ''
     self.ImporteNeto = ""
     self.ImporteIVA = ""
     self.AlicuotaIVA = ""
     self.TotalRetenciones = ""
     self.TotalTributos = ""
     self.Subtotal = self.Total = ""
     self.datos = {}
예제 #11
0
파일: wsltv.py 프로젝트: cesardi/pyafipws
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.errores = []
     self.CAE = ""
     self.NroComprobante = self.FechaLiquidacion = ''
     self.ImporteNeto = ""
     self.ImporteIVA = ""
     self.AlicuotaIVA = ""
     self.TotalRetenciones = ""
     self.TotalTributos = ""
     self.Subtotal = self.Total = ""
     self.datos = {}
예제 #12
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.errores = []
     self.CAE = ""
     self.NroComprobante = self.FechaComprobante = ''
     self.AlicuotaIVA = self.TotalNeto = self.ImporteIVA = None
     self.TotalBonificacionesCalidad = None
     self.TotalPenalizacionesCalidad = None
     self.TotalBonificacionesComerciales = None
     self.TotalDebitosComerciales = None
     self.TotalOtrosImpuestos = None
     self.Total = None
     self.datos = {}
예제 #13
0
    def Conectar(self,
                 cache=None,
                 wsdl=None,
                 proxy="",
                 wrapper=None,
                 cacert=None,
                 timeout=30):
        # Conecto usando el método estandard:
        print "timeout", timeout
        ok = BaseWS.Conectar(self,
                             cache,
                             wsdl,
                             proxy,
                             wrapper,
                             cacert,
                             timeout,
                             soap_server="jetty")

        if ok:
            # Establecer credenciales de seguridad:
            self.client['wsse:Security'] = {
                'wsse:UsernameToken': {
                    'wsse:Username': self.Username,
                    'wsse:Password': self.Password,
                }
            }
        return ok
예제 #14
0
 def Conectar(self,
              cache=None,
              wsdl=None,
              proxy="",
              wrapper=None,
              cacert=None,
              timeout=None):
     # Conecto usando el método estandard:
     ok = BaseWS.Conectar(self,
                          cache,
                          wsdl,
                          proxy,
                          wrapper,
                          cacert,
                          timeout,
                          soap_server="jetty")
     if ok:
         # si el archivo es local, asumo que ya esta corregido:
         if not self.wsdl.startswith("file"):
             # corrijo ubicación del servidor (localhost:9050 en el WSDL)
             location = self.wsdl[:-5]
             if 'IWebServiceSDRNService' in self.client.services:
                 ws = self.client.services['IWebServiceSDRNService']
             else:
                 ws = self.client.services['IWebServiceSDRN']
             ws['ports']['IWebServiceSDRNPort']['location'] = location
         # Establecer credenciales de seguridad:
         self.client['wsse:Security'] = {
             'wsse:UsernameToken': {
                 'wsse:Username': self.Username,
                 'wsse:Password': self.Password,
             }
         }
     return ok
예제 #15
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Persona = ''
     self.Reproceso = '' # no implementado
     self.cuit = self.dni = 0
     self.tipo_persona = ""                      # FISICA o JURIDICA
     self.tipo_doc = 0
     self.estado = ""                            # ACTIVO
     self.denominacion = ""
     self.direccion = self.localidad = self.provincia = self.cod_postal = ""
     self.domicilios = []
     self.impuestos = []
     self.actividades = []
     self.imp_iva = self.empleador = self.integrante_soc = self.cat_iva = ""
     self.monotributo = self.actividad_monotributo = ""
     self.data = {}
예제 #16
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Persona = ''
     self.Reproceso = '' # no implementado
     self.cuit = self.dni = 0
     self.tipo_persona = ""                      # FISICA o JURIDICA
     self.tipo_doc = self.nro_doc = 0
     self.estado = ""                            # ACTIVO
     self.denominacion = ""
     self.direccion = self.localidad = self.provincia = self.cod_postal = ""
     self.domicilios = []
     self.impuestos = []
     self.actividades = []
     self.imp_iva = self.empleador = self.integrante_soc = self.cat_iva = ""
     self.monotributo = self.actividad_monotributo = ""
     self.data = {}
     self.errores = []
예제 #17
0
 def Conectar(self,
              cache=None,
              wsdl=None,
              proxy="",
              wrapper=None,
              cacert=None,
              timeout=30,
              soap_server="oracle"):
     return BaseWS.Conectar(self, cache, wsdl, proxy, wrapper, cacert,
                            timeout, soap_server)
예제 #18
0
 def Conectar(self, cache=None, url="", proxy="", wrapper="", cacert=None, timeout=30):
     "Establecer la conexión a los servidores de la AFIP"
     # llamo al constructor heredado:
     ok = BaseWS.Conectar(self, cache, url, proxy, wrapper, cacert, timeout)
     if ok:        
         # corrijo ubicación del servidor (puerto htttp 80 en el WSDL)
         location = self.client.services['LtvService']['ports']['LtvEndPoint']['location']
         if location.startswith("http://"):
             print "Corrigiendo WSDL ...", location,
             location = location.replace("http://", "https://").replace(":80", ":443")
             self.client.services['LtvService']['ports']['LtvEndPoint']['location'] = location
             print location            
     return ok
예제 #19
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.CodigoTransaccion = self.Errores = self.Resultado = None
예제 #20
0
 def __init__(self, reintentos=1):
     self.Username = self.Password = None
     BaseWS.__init__(self, reintentos)
예제 #21
0
 def __init__(self, reintentos=1):
     self.Username = self.Password = None
     BaseWS.__init__(self, reintentos)
예제 #22
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.CodigoTransaccion = self.Errores = self.Resultado = None
예제 #23
0
 def Conectar(self, *args, **kwargs):
     ret = BaseWS.Conectar(self, *args, **kwargs)
     return ret
예제 #24
0
 def __init__(self, reintentos=1):
     self.Username = self.Password = None
     self.Transacciones = []
     BaseWS.__init__(self, reintentos)
예제 #25
0
파일: wscdc.py 프로젝트: kaajavi/pyafipws
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.Resultado = self.EmisionTipo = "" 
     self.CAI = self.CAE = self.CAEA = self.Vencimiento = ''
     self.CbteNro = self.PuntoVenta = self.ImpTotal = None
예제 #26
0
 def __init__(self, reintentos=1):
     self.Username = self.Password = None
     self.TransaccionSenasa = []
     BaseWS.__init__(self, reintentos)
예제 #27
0
 def inicializar(self):
     BaseWS.inicializar(self)
     self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None
     self.data = {}
     self.errores = []