-- carga saldos iniciales
This commit is contained in:
@@ -1712,14 +1712,14 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim TipoMovto As Boolean = If(Row("Cargo").ToString.ToDecimal <> 0, False, True)
|
Dim TipoMovto As Boolean = If(Row("Cargo").ToString.ToDecimal <> 0, False, True)
|
||||||
Dim YaExiste As Boolean = False
|
Dim YaExiste As Boolean = False
|
||||||
Dim DataTemp As DataTable
|
Dim DataTemp As DataTable
|
||||||
|
Dim Afectable As Boolean = False
|
||||||
|
|
||||||
|
|
||||||
Cuenta = Cuenta.Replace(" ", "")
|
Cuenta = Cuenta.Replace(" ", "")
|
||||||
If ObjConta.GetCuentas(-1, Cuenta.Replace("-", "").Trim, 1, UsuarioActual.CveEmpresa) Then
|
If ObjConta.GetCuentas(-1, Cuenta.Replace("-", "").Trim, -1, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjConta.DtResultados.Rows.Count > 0 Then
|
If ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
IdCuenta = ObjConta.DtResultados().FiltroPrimeroValor("CveCuenta").ToEntero
|
IdCuenta = ObjConta.DtResultados().FiltroPrimeroValor("CveCuenta").ToEntero
|
||||||
'TipoCuenta = ObjConta.DtResultados().FiltroPrimeroValor("Tipo")
|
Afectable = ObjConta.DtResultados().FiltroPrimeroValor("Afectable") = "True"
|
||||||
Else
|
Else
|
||||||
Reporte.AppendLine($"{Cuenta} - {NombreCuenta} - {Importe} </br>")
|
Reporte.AppendLine($"{Cuenta} - {NombreCuenta} - {Importe} </br>")
|
||||||
TieneError = True
|
TieneError = True
|
||||||
@@ -1746,7 +1746,7 @@ Partial Class General_SaldosIniciales
|
|||||||
' CargoAbono = False
|
' CargoAbono = False
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
If YaExiste = False Then
|
If YaExiste = False AndAlso Afectable Then
|
||||||
If IdCuenta > 0 Then
|
If IdCuenta > 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovto, Importe, "", 95, Concepto, Now.ToDate, -1, -1, ImporteMX:=Importe, CveSubProyecto:=CveSubProyecto, CveCuenta:=IdCuenta) Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovto, Importe, "", 95, Concepto, Now.ToDate, -1, -1, ImporteMX:=Importe, CveSubProyecto:=CveSubProyecto, CveCuenta:=IdCuenta) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
|
|||||||
Reference in New Issue
Block a user