Aplica
@@ -1309,6 +1315,10 @@
+
+
+
+
@@ -1331,6 +1341,85 @@
+
+
+
diff --git a/RH/Personal.aspx.vb b/RH/Personal.aspx.vb
index f77aa2fbb..c26034a1b 100644
--- a/RH/Personal.aspx.vb
+++ b/RH/Personal.aspx.vb
@@ -2036,6 +2036,17 @@ Partial Class RH_Personal
Dim ObjPersonal As New ClsRH
If ObjPersonal.GetPersonalConceptos(CvePersonal, UsuarioActual.CveEmpresa) Then
GVConceptos.DataSource = ObjPersonal.DtResultados
+ Dim frow As DataRow = ObjPersonal.DtResultados.FiltroPrimero("CveSistema =3")
+ If Not IsNothing(frow) Then
+ TxtInfoValor.Text = String.Format("{0:###,###.##}", frow("Importe"))
+ DdlInfoTipoAplicacion.SelectedValueExist(frow("TipoAplicacion").ToString())
+
+ Dim TipoAplicacion As Integer = DdlInfoTipoAplicacion.SelectedValue.ToEntero
+ TxtInfoDescripcion.Text = String.Format("{0}", frow("Descripcion02"))
+ TxtInfoNumCredito.Text = String.Format("{0}", frow("Descripcion01"))
+ TxtInfoFechaInicio.Text = String.Format("{0:dd/MM/yyyy}", frow("FInicioAplicacion"))
+ ChkInfo.Checked = frow("estatus").ToString().ToUpper().Contiene("1", "TRUE")
+ End If
Else
GVConceptos.DataSource = Nothing
End If
@@ -2093,6 +2104,32 @@ Partial Class RH_Personal
End If
End Sub
+ Protected Sub BtnGuardarInfornavit_Click(sender As Object, e As EventArgs)
+ Dim importe As Decimal = TxtInfoValor.Text.ToDecimal()
+ Dim TipoAplicacion As Integer = DdlInfoTipoAplicacion.SelectedValue.ToEntero
+ Dim NoPagos As Integer = 0
+ Dim SaldoIni As Decimal = 0
+ Dim descripcion02 As String = TxtInfoDescripcion.Text
+ Dim descripcion01 As String = TxtInfoNumCredito.Text
+ Dim fecha As String = TxtInfoFechaInicio.Text.Replace("_", "")
+ Dim estatus As Integer = If(ChkInfo.Checked, 1, 0)
+ If fecha.Length > 8 Then
+ fecha = fecha.ToDateTime().ToString("yyyy/MM/dd")
+ Else
+ fecha = ""
+ End If
+ Dim OcurrioError As Boolean = False
+ Using ObjPersonal As New ClsRH
+
+ If Not ObjPersonal.AddConcepto(CvePersonal, -1, importe, TipoAplicacion, NoPagos, SaldoIni, UsuarioActual.CveUsuario, 3, descripcion01, descripcion02, fecha, "", estatus, UsuarioActual.CveEmpresa) Then
+ OcurrioError = True
+ End If
+ End Using
+ If Not OcurrioError Then
+ Alert("Se actualizo el calculo de infonavit")
+ CarcaConceptosNomina()
+ End If
+ End Sub
Protected Sub BtnGuardarConceptos_Click(sender As Object, e As System.EventArgs) Handles BtnGuardarConceptos.Click
If CvePersonal > 0 Then
Dim ObjPersonal As New ClsRH
diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx
index 61fab4d79..93e5d8659 100644
--- a/Ventas/Ventas.aspx
+++ b/Ventas/Ventas.aspx
@@ -2952,14 +2952,14 @@
-
+
-
-
- Meses
+
+
+ MSI
3M
6M
9M
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index 926400c13..59dacbbf0 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -2436,7 +2436,7 @@ Partial Class Ventas
If UsuarioActual.Empresa.Funcionalidad(558).ToEntero = 1 Then
DivMesesSinIntereses.Visible = True
- DivDdlCuentaTarjetaCredito.Attributes.Add("class", "col-md-3")
+ DivDdlCuentaTarjetaCredito.Attributes.Add("class", "col-md-4")
DivContadoOtros.Visible = True
End If
@@ -4426,10 +4426,14 @@ Partial Class Ventas
If CveVenta > 0 Then
DivAlmacen.Visible = False
Else
+ Dim DTAlmacen As DataTable
ddlAlmacen.Items.Clear()
- ddlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero}")
- ddlAlmacen.Items.Insert(0, New ListItem(" Seleccione ", "-1"))
- ddlAlmacen.SelectedValue = "-1"
+ DTAlmacen = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero}")
+ ddlAlmacen.DataSource = DTAlmacen
+ If DTAlmacen Is Nothing Or DTAlmacen.Rows.Count = 0 Then
+ ddlAlmacen.Items.Insert(0, New ListItem(" Seleccione ", "-1"))
+ ddlAlmacen.SelectedValue = "-1"
+ End If
ddlAlmacen.DataBind()
If GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa).FiltraParametros($"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue.ToEntero}").Rows.Count > 0 Then
ddlAlmacen.SelectedValueExist(UsuarioActual.CveAlmacen)
@@ -5705,6 +5709,10 @@ Partial Class Ventas
Private Sub GvInv_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvInv.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
+ If UsuarioActual.Empresa.Funcionalidad(567) = "1" Then
+ e.Row.FCCheckBox("cbInv").Checked = True
+ End If
+
'SERIE ALMACEN
If e.Row.DBCampo("CveTipoInvPS").ToEntero = 5 Then
If CveVenta > 0 Then
@@ -6189,7 +6197,7 @@ Partial Class Ventas
End If
If GvInv.Rows.Cast(Of GridViewRow)().Count(Function(gvr) gvr.FCCheckBox("cbInv").Checked) > 0 AndAlso ddlAlmacen.SelectedValue.ToEntero() <= 0 Then
- Alert("Tiene que seleccionar un almacen", TipoMensaje.MsgAdvertencia)
+ Alert("Tiene que seleccionar un almacén para la salida de almacén", TipoMensaje.MsgAdvertencia)
Exit Sub
End If
@@ -16143,7 +16151,7 @@ Partial Class Ventas
Case 1 'CREDITO
TxtFechaPago.Text = If(DdlTipoComprobante.SelectedValue = "Rem", Now.AddDays(PlazoCobranzaRemision), Now.AddDays(PlazoCobranza)).ToShortDateString
Case 2 'CONTADO
- If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Ant", "Rem") Then
+ If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Ant", "Rem") Or (UsuarioActual.Empresa.Funcionalidad(558).ToEntero = 1 And DdlTipoComprobante.SelectedValue = "Cot") Then
DivContado.Visible = True
TxtImporteContado.Text = TxtTotal.Text
End If
@@ -22595,50 +22603,55 @@ Partial Class Ventas
#Region " EMITIR DOCUMENTO NUEVO "
Private Sub EmitirDocumentoNuevo(TipoDoctoNuevo As String)
- Dim FolioFijo As Integer = 0
- 'CARGA LO PENDIENTE POR FACTURAR DE COTIZACION
- If EraCotizacion = 1 Then
- If Not PreparaFacturarCotizacion() Then
- EraCotizacion = 0
- DdlTipoComprobante.SelectedValue = "Cot"
- Exit Sub
+ If GvPagos.Rows.Count = 0 And UsuarioActual.Empresa.Funcionalidad(558).ToEntero = 1 And RBLPago.SelectedValue.ToEntero = 2 Then
+ Alert("No se puede facturar hasta que se haya especificado detalladamente la forma de pago", TipoMensaje.MsgAdvertencia)
+ Else
+ Dim FolioFijo As Integer = 0
+
+ 'CARGA LO PENDIENTE POR FACTURAR DE COTIZACION
+ If EraCotizacion = 1 Then
+ If Not PreparaFacturarCotizacion() Then
+ EraCotizacion = 0
+ DdlTipoComprobante.SelectedValue = "Cot"
+ Exit Sub
+ End If
End If
- End If
- 'CARGA LO PENDIENTE POR FACTURAR DE REMISION
- If DdlTipoComprobante.SelectedValue = "Rem" Then
- If Not PreparaFacturarRemision() Then
- DdlTipoComprobante.SelectedValue = "Rem"
- Exit Sub
+ 'CARGA LO PENDIENTE POR FACTURAR DE REMISION
+ If DdlTipoComprobante.SelectedValue = "Rem" Then
+ If Not PreparaFacturarRemision() Then
+ DdlTipoComprobante.SelectedValue = "Rem"
+ Exit Sub
+ End If
End If
- End If
- 'CARGA LO PENDIENTE POR FACTURAR DE PEDIDO2
- If DdlTipoComprobante.SelectedValue = "Pd2" Then
- If Not PreparaFacturarPedido() Then
- DdlTipoComprobante.SelectedValue = "Pd2"
- Exit Sub
+ 'CARGA LO PENDIENTE POR FACTURAR DE PEDIDO2
+ If DdlTipoComprobante.SelectedValue = "Pd2" Then
+ If Not PreparaFacturarPedido() Then
+ DdlTipoComprobante.SelectedValue = "Pd2"
+ Exit Sub
+ End If
End If
+
+ 'CARGA LO PENDIENTE POR FACTURAR DE PEDIDO AUTORIZACION
+ If DdlTipoComprobante.SelectedValue = "PA" Then ' que tome el folio fijo de la autorización
+ FolioFijo = TxtFolio.Text.ToEntero
+ ViewState("FolioActual") = FolioFijo
+ ViewState("EstablecioFolio") = True
+ TxtFolio.Text = FolioFijo.ToString
+ End If
+
+ Dim TipoDoctoViejo As String = DdlTipoComprobante.SelectedValue
+ DdlTipoComprobante.SelectedValue = TipoDoctoNuevo
+ TxtFecha.Text = Now.ToString
+ TxtFechaPago.Text = If(TipoDoctoViejo = "Rem" AndAlso EsDiasCreditoFijo, Now.AddDays(DiasCredito), If(DdlTipoComprobante.SelectedValue = "Rem", Now.AddDays(PlazoCobranzaRemision), Now.AddDays(PlazoCobranza))).ToShortDateString
+ TxtFechaEjecucion.Text = Now.ToString
+
+
+ If FolioFijo = 0 Then CargaFolios() 'RECARGA FOLIOS CON EL NUEVO TIPO DOCTO
+ EmitirImprimir() 'MANDA A EMITIR - PROCESO VIEJO
End If
- 'CARGA LO PENDIENTE POR FACTURAR DE PEDIDO AUTORIZACION
- If DdlTipoComprobante.SelectedValue = "PA" Then ' que tome el folio fijo de la autorización
- FolioFijo = TxtFolio.Text.ToEntero
- ViewState("FolioActual") = FolioFijo
- ViewState("EstablecioFolio") = True
- TxtFolio.Text = FolioFijo.ToString
- End If
-
- Dim TipoDoctoViejo As String = DdlTipoComprobante.SelectedValue
- DdlTipoComprobante.SelectedValue = TipoDoctoNuevo
- TxtFecha.Text = Now.ToString
- TxtFechaPago.Text = If(TipoDoctoViejo = "Rem" AndAlso EsDiasCreditoFijo, Now.AddDays(DiasCredito), If(DdlTipoComprobante.SelectedValue = "Rem", Now.AddDays(PlazoCobranzaRemision), Now.AddDays(PlazoCobranza))).ToShortDateString
- TxtFechaEjecucion.Text = Now.ToString
-
-
- If FolioFijo = 0 Then CargaFolios() 'RECARGA FOLIOS CON EL NUEVO TIPO DOCTO
- EmitirImprimir() 'MANDA A EMITIR - PROCESO VIEJO
-
End Sub
#End Region
|