-- mensaje para validar que no existe la cuenta
This commit is contained in:
@@ -953,6 +953,8 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Else
|
Else
|
||||||
Alert("No se puede contabilizar la Prepoliza debido a que una o mas cuentas son inválidas")
|
Alert("No se puede contabilizar la Prepoliza debido a que una o mas cuentas son inválidas")
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
MensajeAlert.AppendFormat("<br/><br/>Folio: <b><a href = ""/Contabilidad/RegPrepolizaS.aspx?CvePrePoliza={0}"" class=""texto"" target=""_blank"" >{1}</a></b>", CvePrePoliza, ObjMov.ContaFolio)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -1946,15 +1948,22 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Dim CveSubProyecto As Integer = -1
|
Dim CveSubProyecto As Integer = -1
|
||||||
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 CveConceptoContable As Integer = GlobalDTContaConceptosContables(-1).FiltroPrimeroValor("CveConceptoContable", String.Format("ConceptoContable ='{0}'", Row("ConceptoAdministrativo"))).ToEntero ' Row("CveConceptoContable").ToString.ToEntero
|
Dim CveConceptoContable As Integer = GlobalDTContaConceptosContables(-1).FiltroPrimeroValor("CveConceptoContable", String.Format("ConceptoContable ='{0}'", Row("ConceptoAdministrativo"))).ToEntero ' Row("CveConceptoContable").ToString.ToEntero
|
||||||
Dim IdCtaContable As Integer = Row("IdCtaContable").ToString.ToEntero
|
'Dim IdCtaContable As Integer = Row("IdCtaContable").ToString.ToEntero
|
||||||
Dim CveClasificacion As Integer = -1
|
Dim CveClasificacion As Integer = -1
|
||||||
Dim CveCuenta As Integer = -1
|
Dim CveCuenta As Integer = -1
|
||||||
Dim ObjConta2 As New ClsContabilidad
|
Dim ObjConta2 As New ClsContabilidad
|
||||||
If ObjConta2.GetCuentas(-1, Row("Cuenta").ToString, 1, UsuarioActual.CveEmpresa) Then
|
If ObjConta2.GetCuentas(-1, Row("Cuenta").ToString.Replace("-", ""), 1, UsuarioActual.CveEmpresa) Then
|
||||||
CveCuenta = ObjConta2.DtResultados.FiltroPrimeroValor("CveCuenta", "").ToEntero
|
CveCuenta = ObjConta2.DtResultados.FiltroPrimeroValor("CveCuenta", "").ToEntero
|
||||||
NombreCuenta = ObjConta2.DtResultados.FiltroPrimeroValor("CtaCodigo", "")
|
NombreCuenta = ObjConta2.DtResultados.FiltroPrimeroValor("CtaCodigo", "")
|
||||||
End If
|
End If
|
||||||
ObjConta2.Dispose()
|
ObjConta2.Dispose()
|
||||||
|
|
||||||
|
If CveCuenta <= 0 Then
|
||||||
|
Alert(String.Format("La cuenta <b>{0}</b> no se reconoció, favor de verificar el archivo.", Row("Cuenta").ToString))
|
||||||
|
DtMovimientos.Clear()
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
'sino viene el cveconcepto, busca por le nombre del concepto
|
'sino viene el cveconcepto, busca por le nombre del concepto
|
||||||
If CveConceptoContable = 0 Then
|
If CveConceptoContable = 0 Then
|
||||||
Alert(String.Format("El concepto <b>{0}</b> no se reconoció, favor de verificar el archivo.", Row("ConceptoAdministrativo")))
|
Alert(String.Format("El concepto <b>{0}</b> no se reconoció, favor de verificar el archivo.", Row("ConceptoAdministrativo")))
|
||||||
|
|||||||
Reference in New Issue
Block a user