formatos Rep iva generales recorregidos, GlobalDTTipoPeriodo
This commit is contained in:
@@ -706,31 +706,35 @@ Partial Class Sistemas_Empresa
|
||||
If TextoError = "" And TxtBDContPAQi.Text.Trim <> "" And TxtBDContPAQi.Text.Trim <> "" And TxtBDContPAQi.Text.Trim <> "" And TxtBDContPAQi.Text.Trim <> "" Then
|
||||
|
||||
If UsuarioActual.Empresa.UsaContabilidad Then
|
||||
'CREA OBJETO EMPRESA
|
||||
If ObjEmpresas.GetEmpresas(TxtCveEmpresa.Text.ToEntero, "-1", "-1", "-1", "-1") Then
|
||||
Dim Empresa As New Empresa
|
||||
Empresa = ObjEmpresas.Empresa
|
||||
|
||||
ObjContPAQ = New ClsContPAQi(Empresa)
|
||||
If UsuarioActual.Empresa.TipoContabilidad = 2 Then
|
||||
'CREA OBJETO EMPRESA
|
||||
If ObjEmpresas.GetEmpresas(TxtCveEmpresa.Text.ToEntero, "-1", "-1", "-1", "-1") Then
|
||||
Dim Empresa As New Empresa
|
||||
Empresa = ObjEmpresas.Empresa
|
||||
|
||||
If ObjContPAQ.Conectado Then
|
||||
'ADD
|
||||
If BDContPAQ = "" Then
|
||||
If Not ObjContPAQ.TRIGGER(TxtBDContPAQi.Text.Trim) Then
|
||||
TextoError = "Los datos de conexion al servidor de contabilidad son incorrectos"
|
||||
ObjContPAQ = New ClsContPAQi(Empresa)
|
||||
|
||||
If ObjContPAQ.Conectado Then
|
||||
'ADD
|
||||
If BDContPAQ = "" Then
|
||||
If Not ObjContPAQ.TRIGGER(TxtBDContPAQi.Text.Trim) Then
|
||||
TextoError = "Los datos de conexion al servidor de contabilidad son incorrectos"
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
'UPDATE
|
||||
If BDContPAQ <> "" And (BDContPAQ <> TxtBDContPAQi.Text.Trim Or ServerContPAQ <> TxtServerContPAQi.Text.Trim) Then
|
||||
If Not ObjContPAQ.TRIGGER(TxtBDContPAQi.Text.Trim) Then
|
||||
TextoError = "Los datos de conexion al servidor de contabilidad son incorrectos"
|
||||
'UPDATE
|
||||
If BDContPAQ <> "" And (BDContPAQ <> TxtBDContPAQi.Text.Trim Or ServerContPAQ <> TxtServerContPAQi.Text.Trim) Then
|
||||
If Not ObjContPAQ.TRIGGER(TxtBDContPAQi.Text.Trim) Then
|
||||
TextoError = "Los datos de conexion al servidor de contabilidad son incorrectos"
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
TextoError = "Los datos de conexion al servidor de contabilidad son incorrectos"
|
||||
End If
|
||||
Else
|
||||
TextoError = "Los datos de conexion al servidor de contabilidad son incorrectos"
|
||||
End If
|
||||
End If
|
||||
|
||||
Else
|
||||
Alert("La empresa tiene la información para el uso de contabilidad pero no se tiene activada", TipoMensaje.MsgAdvertencia)
|
||||
End If
|
||||
@@ -781,11 +785,16 @@ Partial Class Sistemas_Empresa
|
||||
If ObjEmpresa.GetEmpresas(CveEmpresa, "-1", "-1", "-1", "-1") Then
|
||||
|
||||
Empresa = ObjEmpresa.Empresa
|
||||
Dim ObjContabilidad As New ClsContPAQi(Empresa)
|
||||
If ObjContabilidad.GetCuentas(-1, "-1", -1, IdPadre:=IdCuentaPadre) Then
|
||||
DtCuentasContables = ObjContabilidad.DtResultados
|
||||
|
||||
If Empresa.TipoContabilidad = 2 Then
|
||||
Dim ObjContabilidad As New ClsContPAQi(Empresa)
|
||||
If ObjContabilidad.GetCuentas(-1, "-1", -1, IdPadre:=IdCuentaPadre) Then
|
||||
DtCuentasContables = ObjContabilidad.DtResultados
|
||||
End If
|
||||
ObjContabilidad.Dispose()
|
||||
End If
|
||||
ObjContabilidad.Dispose()
|
||||
|
||||
|
||||
|
||||
End If
|
||||
ObjEmpresa.Dispose()
|
||||
@@ -1410,7 +1419,7 @@ Partial Class Sistemas_Empresa
|
||||
Private Sub CargaCuentasIVA(ByRef ObjEmpresas As ClsSisEmpresas)
|
||||
|
||||
If ObjEmpresas.GetEmpresas(CveEmpresa, "-1", "-1", "-1", "-1") Then
|
||||
If ObjEmpresas.Empresa.UsaContabilidad Then
|
||||
If ObjEmpresas.Empresa.UsaContabilidad And ObjEmpresas.Empresa.TipoContabilidad = 2 Then
|
||||
|
||||
'If ObjEmpresas.Empresa.TipoContabilidad = 2 Then
|
||||
Dim Cuenta As New ClsContPAQi(ObjEmpresas.Empresa)
|
||||
@@ -1437,6 +1446,8 @@ Partial Class Sistemas_Empresa
|
||||
Catch ex As Exception
|
||||
End Try
|
||||
End If
|
||||
|
||||
|
||||
End If
|
||||
|
||||
'ObjEmpresas.Dispose()
|
||||
|
||||
Reference in New Issue
Block a user