diff --git a/Bancos/ProveedoresAbonar.aspx.vb b/Bancos/ProveedoresAbonar.aspx.vb
index 3195700e1..8997a0693 100644
--- a/Bancos/ProveedoresAbonar.aspx.vb
+++ b/Bancos/ProveedoresAbonar.aspx.vb
@@ -3388,6 +3388,10 @@ Partial Class Bancos_ProveedoresAbonar
#End Region
+ Private Sub RVTxtFechaDocumento_Init(sender As Object, e As EventArgs) Handles RVTxtFechaDocumento.Init
+ RVTxtFechaDocumento.MaximumValue = DateTime.Now.ToShortDateString
+ End Sub
+
End Class
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index e0306b3b0..d090cd757 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -1355,7 +1355,7 @@ Partial Class Compras_Compras
GvInv.Visible = True
CargaProveedor(-1, RFC)
- If Not DdlTipoComprobante.SelectedValue = "NC" Then
+ If Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") Then
If UsuarioActual.Empresa.Funcionalidad(128) = "1" And Not UsuarioActual.TienePermisoProceso(213) Then
If TmpDT.MAX("CvePS").ToEntero > 0 Then
BtnGuardar.Enabled = False
@@ -4060,13 +4060,15 @@ Partial Class Compras_Compras
' DtNoEncontrados.Dispose()
'End If
- 'Verifica funcionalidad 702 "Require orden de compra para factura de compra"
+ 'Verifica funcionalidad 128 "Require orden de compra para factura de compra"
- If UsuarioActual.Empresa.Funcionalidad(128) <> "" Then
- If Not EstaAsociadoACajaChica And Not EstaAsociadoAPersonal Then
- If Not CompraEstaVinculadaOC Then
- Alert("Debe de vincular una orden de compra para registrar la factura")
- Exit Sub
+ If Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") Then
+ If UsuarioActual.Empresa.Funcionalidad(128) = "1" And Not UsuarioActual.TienePermisoProceso(213) Then
+ If Not EstaAsociadoACajaChica And Not EstaAsociadoAPersonal Then
+ If Not CompraEstaVinculadaOC Then
+ Alert("Debe de vincular una orden de compra para registrar la factura")
+ Exit Sub
+ End If
End If
End If
End If
@@ -5107,7 +5109,7 @@ Partial Class Compras_Compras
Row("Obs").ToString, Row("CveOrdenCompraDetalle").ToString.ToEntero, TipoRecepcion, Row("CveContrato").ToString.ToEntero, Row("CvePresupuestoEgreso").ToString.ToEntero,
AplicaCostoIndirecto:=Row("AplicaCostoIndirecto").ToString.ToEntero, EstatusAlmacen:=Row("EntregaDirecta").ToString.ToEntero, CvePersonal:=CvePersonal,
CveTipoGasto:=Row("CveTipoGasto").ToString.ToEntero, AF_Medida:=Row("AFMedida").ToString.ToEntero, AF_TipoMantenimiento:=Row("AFTipoMantenimiento").ToString.ToEntero, Referencia:=Referencia, OtrosGastos:=Row("OtrosGastos").ToString.ToDecimal,
- RetIVA:=Row("RetIVA").ToString.ToDouble, RetISR:=Row("RetISR").ToString.ToDouble, IEPSPS:=Row("IEPSPS").ToString.ToDouble, IEPSPSIVA:=Row("IEPSPSIVA").ToString.ToDouble,
+ RetIVA:=Row("RetIVA").ToString.ToDouble, RetISR:=Row("RetISR").ToString.ToDouble, IEPSPS:=Row("IEPSPS").ToString.ToDouble.RoundSQL, IEPSPSIVA:=Row("IEPSPSIVA").ToString.ToDouble,
IVAPorcentaje:=Row("IVAPorcentaje").ToString.ToDouble, RetIVAPorcentaje:=Row("RetIVAPorcentaje").ToString.ToDouble, RetISRPorcentaje:=Row("RetISRPorcentaje").ToString.ToDouble,
IEPSPSPorcentaje:=Row("IEPSPSPorcentaje").ToString.ToDouble, IEPSPSIVAPorcentaje:=Row("IEPSPSIVAPorcentaje").ToString.ToDouble, NoDeducible:=If((Row("NoDeducible").ToString().ToUpper().Contiene("TRUE", "1")) AndAlso EsNoDeducible, True, False),
CveContratoDetalle:=Row("CveContratoDetalle").ToString.ToEntero, CveCultivoCuadroDetalle:=Row("CveCultivoCuadroDetalle").ToString.ToEntero) Then
@@ -18043,14 +18045,12 @@ Partial Class Compras_Compras
UpIVA.Update()
- If DdlClasificacion.SelectedIndex = 0 Then
- If PS("CveClasificacion").ToString IsNot Nothing Then
- DdlClasificacion.SelectedValueExist(PS("CveClasificacion").ToString)
- Else
- Alert("El Productos/Servicio no tiene asignada una Clasificación.")
+ If PS("CveClasificacion").ToString IsNot Nothing Then
+ DdlClasificacion.SelectedValueExist(PS("CveClasificacion").ToString)
+ Else
+ Alert("El Productos/Servicio no tiene asignada una Clasificación.")
End If
- End If
UPPUM.Update()
UpPSS.Update()
End If
diff --git a/Compras/ReembolsosComprobaciones.aspx b/Compras/ReembolsosComprobaciones.aspx
index 285fe20dd..b805f6633 100644
--- a/Compras/ReembolsosComprobaciones.aspx
+++ b/Compras/ReembolsosComprobaciones.aspx
@@ -204,6 +204,8 @@
+
+
diff --git a/Compras/ReembolsosComprobaciones.aspx.vb b/Compras/ReembolsosComprobaciones.aspx.vb
index bd0ee80ce..312dfda60 100644
--- a/Compras/ReembolsosComprobaciones.aspx.vb
+++ b/Compras/ReembolsosComprobaciones.aspx.vb
@@ -2061,5 +2061,7 @@ Partial Class Compras_ReembolsosComprobaciones
#End Region
-
+ Private Sub RVTxtFechaDocumento_Init(sender As Object, e As EventArgs) Handles RVTxtFechaDocumento.Init
+ RVTxtFechaDocumento.MaximumValue = DateTime.Now.ToShortDateString
+ End Sub
End Class
diff --git a/Contabilidad2/CatCuentas.aspx.vb b/Contabilidad2/CatCuentas.aspx.vb
index 720b93107..c8c3f3b34 100644
--- a/Contabilidad2/CatCuentas.aspx.vb
+++ b/Contabilidad2/CatCuentas.aspx.vb
@@ -372,10 +372,9 @@ Partial Class Contabilidad2_CatCuentas
'Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
Dim ObjConta As New ClsContabilidad
-<<<<<<< HEAD
+
Dim ObjConta2 As ClsContPAQi
-=======
->>>>>>> ee1135d888f76469fa6e3e68f0b6393f8450045a
+
Dim CuentaEfectivo As Integer = 0
Dim Afectable As Integer = 1 'If(DcuentaMayor.SelectedValue <> 2, 0, 1) ' cuando sea tipo 2, va a ser afectable
@@ -460,10 +459,11 @@ Partial Class Contabilidad2_CatCuentas
Alert("La cuenta se guardo correctamente")
End If
+ End If
+ End If
+ ObjConta.Dispose()
- ObjConta.Dispose()
-
- If ObjConta2 IsNot Nothing Then ObjConta2.Dispose()
+ If ObjConta2 IsNot Nothing Then ObjConta2.Dispose()
End Sub
diff --git a/Contabilidad2/CatCuentasAsignaciones.aspx.vb b/Contabilidad2/CatCuentasAsignaciones.aspx.vb
index ebbef86ba..323a90ca7 100644
--- a/Contabilidad2/CatCuentasAsignaciones.aspx.vb
+++ b/Contabilidad2/CatCuentasAsignaciones.aspx.vb
@@ -31,7 +31,6 @@ Partial Class Contabilidad2_CatCuentasAsignaciones
End Sub
Private Sub CargaDatosModal()
-
DdlConceptoNomina.DataSource = GlobalDTNomConceptos(UsuarioActual.CveEmpresa)
DdlConceptoNomina.DataBind()
Dim ObjConta As New ClsContabilidad
@@ -76,7 +75,7 @@ Partial Class Contabilidad2_CatCuentasAsignaciones
CveConceptoAsignacion = GvRow.DataKey("CveCuentaAsignacion").ToEntero
DdlCconceptosContables.SelectedValue = GvRow.DataKey("CveConceptoContable").ToEntero
DdlCuenta.SelectedValue = GvRow.DataKey("CveCuenta").ToEntero
- DdlConceptoNomina.SelectedValue = GvRow.DataKey("CveConceptoNomina").ToEntero
+ DdlConceptoNomina.SelectedValueexist(GvRow.DataKey("CveConceptoNomina").ToEntero)
DdlProveedor.SelectedValue = GvRow.DataKey("CveProveedor").ToEntero
DdlClasificacion.SelectedValue = GvRow.DataKey("CveClasificacion").ToEntero
DdlAlmacen.SelectedValue = GvRow.DataKey("CveAlmacen").ToEntero
diff --git a/Contabilidad2/RepAnexoCatalogo.aspx b/Contabilidad2/RepAnexoCatalogo.aspx
index 492905e64..c58828168 100644
--- a/Contabilidad2/RepAnexoCatalogo.aspx
+++ b/Contabilidad2/RepAnexoCatalogo.aspx
@@ -96,24 +96,22 @@
Tipo Movto: