- mejora
This commit is contained in:
@@ -178,16 +178,16 @@ Partial Class Contabilidad_ContabilidadElectronica
|
|||||||
Dim DtCuentas As New DataTable
|
Dim DtCuentas As New DataTable
|
||||||
If UsuarioActual.Empresa.TipoContabilidad = 1 Then
|
If UsuarioActual.Empresa.TipoContabilidad = 1 Then
|
||||||
Dim objconta As New ClsContabilidad
|
Dim objconta As New ClsContabilidad
|
||||||
If objconta.GetBalanzaComprobacion(FechaI, FechaF, 1, -1, -1, -1, UsuarioActual.CveEmpresa, 0) Then
|
If objconta.GetBalanzaComprobacion(FechaI, FechaF, 1, 1, -1, -1, UsuarioActual.CveEmpresa, 0) Then
|
||||||
DtCuentas = objconta.DtResultados
|
DtCuentas = objconta.DtResultados
|
||||||
End If
|
End If
|
||||||
objconta.Dispose()
|
objconta.Dispose()
|
||||||
|
|
||||||
If DtCuentas IsNot Nothing Then
|
If DtCuentas IsNot Nothing Then
|
||||||
Dim Deudor As Decimal = DtCuentas.SUM("SaldoAD")
|
Dim Deudor As Decimal = DtCuentas.SUM("SaldoAD", "Id is null")
|
||||||
Dim Acreedor As Decimal = DtCuentas.SUM("SaldoAA")
|
Dim Acreedor As Decimal = DtCuentas.SUM("SaldoAA", "Id is null")
|
||||||
If Deudor <> Acreedor Then
|
If Deudor <> Acreedor Then
|
||||||
Alert("los Saldos Actuales no cuadran.", TipoMensaje.MsgError)
|
Alert("los Saldos Actuales no cuadran. " & Deudor - Acreedor, TipoMensaje.MsgError)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user