From 0f95aea86d86c1e2918786b1031e78eddc13eb65 Mon Sep 17 00:00:00 2001 From: rrene Date: Fri, 29 Jan 2021 16:10:02 -0700 Subject: [PATCH 1/3] -- cambio de texto --- Inventarios/RepAlmacenCompras.aspx.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Inventarios/RepAlmacenCompras.aspx.vb b/Inventarios/RepAlmacenCompras.aspx.vb index 8cf23b1a7..7b62d23a6 100644 --- a/Inventarios/RepAlmacenCompras.aspx.vb +++ b/Inventarios/RepAlmacenCompras.aspx.vb @@ -72,7 +72,7 @@ Partial Class Inventarios_RepAlmacenCompras 'Llena Almacen DdlAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) DdlAlmacen.DataBind() - DdlAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1")) + DdlAlmacen.Items.Insert(0, New ListItem("Todos", "-1")) End Sub #End Region From 557e1c5c6cfe15eeef921b31e300f926a498ed93 Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Sat, 30 Jan 2021 10:53:03 -0700 Subject: [PATCH 2/3] Cambios pendientes por liberar --- Acumuladores/CatFoliosGarantia.aspx | 18 +- Acumuladores/CatFoliosGarantia.aspx.vb | 11 +- Compras/Compras.aspx.vb | 3 + Compras/PopUpVerFactura.aspx.vb | 47 +- Empresas/Grales/Formatos/RepRecuperacion.rdlc | 10 +- Empresas/Grales/Formatos/RepVentas.rdlc | 21 +- Inventarios/EntregaAlmacen.aspx.vb | 6 +- Inventarios/RecepcionAlmacen.aspx | 2189 +++++++++-------- Inventarios/RecepcionAlmacen.aspx.vb | 245 +- Inventarios/TraspasoAlmacen.aspx.vb | 15 +- Ventas/RepRecuperacion.aspx | 1 + Ventas/RepRecuperacion.aspx.vb | 19 +- Ventas/RepRecuperacionDetalle.aspx | 4 +- Ventas/RepRecuperacionDetalle.aspx.vb | 3 +- Ventas/RepVentaDetalle.aspx.vb | 3 +- Ventas/RepVentas.aspx.vb | 1 + Ventas/RepVentasUtilidad.aspx | 2 +- Ventas/RepVentasUtilidad.aspx.vb | 4 +- Ventas/Ventas.aspx.vb | 291 ++- 19 files changed, 1617 insertions(+), 1276 deletions(-) diff --git a/Acumuladores/CatFoliosGarantia.aspx b/Acumuladores/CatFoliosGarantia.aspx index 6d82dd232..3ec0a2a06 100644 --- a/Acumuladores/CatFoliosGarantia.aspx +++ b/Acumuladores/CatFoliosGarantia.aspx @@ -372,10 +372,20 @@ +
+
+
+
+
+ " style="display: inline-block; margin-right: -20px; width: 150px;" /> + " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> +
+
+
-
- +
+ @@ -397,6 +407,7 @@
+ + + diff --git a/Acumuladores/CatFoliosGarantia.aspx.vb b/Acumuladores/CatFoliosGarantia.aspx.vb index f891e5530..9172d5c1e 100644 --- a/Acumuladores/CatFoliosGarantia.aspx.vb +++ b/Acumuladores/CatFoliosGarantia.aspx.vb @@ -246,6 +246,13 @@ Partial Class Acumuladores_CatFoliosGarantia Protected Sub BtnConsultar_Click(sender As Object, e As EventArgs) CargadatosGvFolioGarantia(DdlEstatus.SelectedValue.ToEntero, DdlTipoFolio.SelectedValue) - End Sub - + End Sub + + Protected Sub BtnExportarExcel_Click(sender As Object, e As EventArgs) + GvGarantiasDetalle.ExportToExcelG(LblFolio.Text, "Ajustes de Garantía", UsuarioActual) + 'GvGarantiasDetalle.ExportToExcelx(LblFolio.Text) + End Sub + + Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control) + End Sub End Class diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb index 950682e27..994c06c8a 100644 --- a/Compras/Compras.aspx.vb +++ b/Compras/Compras.aspx.vb @@ -12585,6 +12585,9 @@ Partial Class Compras_Compras TmpDT.Rows(Indice)("PU") = TmpDT.Rows(Indice)("PU").ToString.ToDouble + tPU TmpDT.Rows(Indice)("Total") = TmpDT.Rows(Indice)("Total").ToString.ToDouble + ImporteAjuste + TmpDT.Rows(Indice)("IEPSPS") = (TmpDT.Rows(Indice)("Total").ToString.ToDouble() * TmpDT.Rows(Indice)("IEPSPSPorcentaje").ToString.ToDouble()).RoundAD(2) + 'Row("IEPSPS") = Math.Round(IEPSPS, DecimalesPermitidos) + 'Row("IEPSPSPorcentaje") = PorcentajeIEPS TmpDT.AcceptChanges() End If diff --git a/Compras/PopUpVerFactura.aspx.vb b/Compras/PopUpVerFactura.aspx.vb index 99cd97ad1..81d5f93f5 100644 --- a/Compras/PopUpVerFactura.aspx.vb +++ b/Compras/PopUpVerFactura.aspx.vb @@ -1153,29 +1153,7 @@ Partial Class PopUpVerFactura End If End If - - If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso (Vta.DtDocumentosRelacionados Is Nothing OrElse Vta.DtDocumentosRelacionados.Rows.Count = 0) Then - If ObjVentas.GetVentasRelacionadas(CveVenta, UsuarioActual.CveEmpresa) Then - Vta.DtNCVinculadas = ObjVentas.DtResultados - Vta.DtDocumentosRelacionados = ObjVentas.DtResultados '.FiltraParametros("FolioFiscal IS NOT NULL") - If Vta.DtDocumentosRelacionados.Rows.Count > 0 Then - If Vta.TipoDocto.Contiene("Ing") Then - Vta.Timbre.CFDIRelacionados.TipoRelacion = "01" - Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Nota de Crédito aplicada a Ingreso" - End If - - If Vta.TipoDocto.Contiene("Egs") Then - Vta.Timbre.CFDIRelacionados.TipoRelacion = "01" - Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Nota de Crédito aplicada a Ingreso" - End If - - If Vta.TipoDocto.Contiene("Dev") Then - Vta.Timbre.CFDIRelacionados.TipoRelacion = "03" - Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Devolución aplicada a Ingreso" - End If - End If - End If - End If + End If 'If UsuarioActual.CveEmpresa.Contiene(72, 80, 119) Then @@ -1218,6 +1196,29 @@ Partial Class PopUpVerFactura End If End If End If + End If + + If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso (Vta.DtDocumentosRelacionados Is Nothing OrElse Vta.DtDocumentosRelacionados.Rows.Count = 0) Then + If ObjVentas.GetVentasRelacionadas(CveVenta, UsuarioActual.CveEmpresa) Then + Vta.DtNCVinculadas = ObjVentas.DtResultados + Vta.DtDocumentosRelacionados = ObjVentas.DtResultados '.FiltraParametros("FolioFiscal IS NOT NULL") + If Vta.DtDocumentosRelacionados.Rows.Count > 0 Then + If Vta.TipoDocto.Contiene("Ing") Then + Vta.Timbre.CFDIRelacionados.TipoRelacion = "01" + Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Nota de Crédito aplicada a Ingreso" + End If + + If Vta.TipoDocto.Contiene("Egs") Then + Vta.Timbre.CFDIRelacionados.TipoRelacion = "01" + Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Nota de Crédito aplicada a Ingreso" + End If + + If Vta.TipoDocto.Contiene("Dev") Then + Vta.Timbre.CFDIRelacionados.TipoRelacion = "03" + Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Devolución aplicada a Ingreso" + End If + End If + End If End If 'End If diff --git a/Empresas/Grales/Formatos/RepRecuperacion.rdlc b/Empresas/Grales/Formatos/RepRecuperacion.rdlc index 5ac14eae4..b986a7598 100644 --- a/Empresas/Grales/Formatos/RepRecuperacion.rdlc +++ b/Empresas/Grales/Formatos/RepRecuperacion.rdlc @@ -88,7 +88,7 @@ - =IIF(Fields!Orden.Value = "", "#67809F", "No color") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -124,7 +124,7 @@ - =IIF(Fields!Orden.Value = "", "#67809F", "No color") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -251,7 +251,7 @@ - =IIF(Fields!Orden.Value = "", "#67809F", "No color") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -690,6 +690,10 @@ Orden System.String + + TipoFila + System.Integer + DataSet diff --git a/Empresas/Grales/Formatos/RepVentas.rdlc b/Empresas/Grales/Formatos/RepVentas.rdlc index 438135f58..a95d52f07 100644 --- a/Empresas/Grales/Formatos/RepVentas.rdlc +++ b/Empresas/Grales/Formatos/RepVentas.rdlc @@ -342,7 +342,8 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -377,7 +378,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -412,7 +413,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -447,7 +448,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -482,7 +483,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -517,7 +518,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -552,7 +553,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -587,7 +588,7 @@ - =IIF(Fields!GPO.Value = "Total Pesos" OR Fields!GPO.Value = "Total Dólares","#67809F","Transparent") + =Switch(Fields!TipoFila.Value = 0 , "#67809F", Fields!TipoFila.Value = 1, "#CCCCCC",Fields!TipoFila.Value = 2, "Transparent") 2pt 2pt 2pt @@ -1078,6 +1079,10 @@ Orden System.String + + TipoFila + System.Integer + DataSet diff --git a/Inventarios/EntregaAlmacen.aspx.vb b/Inventarios/EntregaAlmacen.aspx.vb index 5eae3c8f5..2cac3b0ce 100644 --- a/Inventarios/EntregaAlmacen.aspx.vb +++ b/Inventarios/EntregaAlmacen.aspx.vb @@ -2695,12 +2695,16 @@ Partial Class Inventarios_EntregaAlmacen If TipoMovimiento = 1 Then CveConceptoMovimientoVirtual = 37 - ElseIf TipoMovimiento = 2 Then ValidaVirtual = True CveConceptoMovimientoVirtual = 36 End If + 'SI NO TIENE ALMACEN VIRTUAL ASIGNADO NO GENERA EL MOVIMIENTO VIRTUAL + If CveAlmacenVirtual <= 0 Then + ValidaVirtual = False + End If + If DtPSVirtual IsNot Nothing AndAlso DtPSVirtual.Rows.Count > 0 AndAlso CveAlmacenVirtual > 0 AndAlso CveConceptoMovimientoVirtual > 0 Then CveMovimientoVirtual = ObjInventario.AddMovimiento(CveAlmacenVirtual, CveConceptoMovimientoVirtual, 1, TxtFecha.Text.ToDate, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, CveVentaSurtir, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, Guia:=TxtGuia.Text, CveMovimientoRelacionado:=CveMovimientoRelacionadoVirtual, Modulo:="RE/G6") diff --git a/Inventarios/RecepcionAlmacen.aspx b/Inventarios/RecepcionAlmacen.aspx index 66aebea37..67a6f0b39 100644 --- a/Inventarios/RecepcionAlmacen.aspx +++ b/Inventarios/RecepcionAlmacen.aspx @@ -1,1026 +1,1111 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RecepcionAlmacen.aspx.vb" Inherits="Inventarios_RecepcionAlmacen" %> - - - - - - -
  • - Generar PDF -
  • -
  • - Generar Excel -
  • -
  • -   -
  • -
    - - Recepción Almacén - - - - - - - - <%--FILTROS--%> - - -
    -
    -
    - - -
    -
    -
    - -
    - -
    - -
    - - -
    - -
    - +<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RecepcionAlmacen.aspx.vb" Inherits="Inventarios_RecepcionAlmacen" %> + + + + + + +
  • + Generar PDF +
  • +
  • + Generar Excel +
  • +
  • +   +
  • +
    + + Recepción Almacén + + + + + + + + <%--FILTROS--%> + + +
    +
    +
    + + +
    +
    +
    + +
    + +
    + +
    + + +
    + +
    + <%-- - --%> -
    - -
    -
    - -
    -
    + --%> +
    + +
    +
    + +
    +
    #: -
    -
    - - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - - - - -
    - -
    - - <%--DATOS COMPRA--%> -
    -
    - - -
    -
    -
    - - - - A RECIBIR -
    -
    - -
    -
    -
    - - - - - - - - - - - - - -
    Proveedor: - -
    Folio: - - -
    Descripción: - -
    -
    -
    -
    -
    -
    -
    - - <%--DATOS DEL MOVIMIENTO--%> -
    -
    - - -
    -
    -
    - - Datos del movimiento -
    -
    - -
    -
    -
    -
    -
    - Almacén: -
    -
    - - - -
    -
    -
    -
    - Fecha: -
    -
    -
    -
    - - - - - - - - - - - - -
    -
    -
    -
    -
    -
    - Observaciones: -
    -
    - - -
    -
    -
    -
    - Remisión: -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    - -
    - - <%--PENDIENTES--%> - - -
    -
    -
    -
    -
    - - COMPRAS POR RECIBIR -
    -
    - - - - -   -
    -
    - - - - - - - - - - -
    -
    - - - - -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    -
    - - <%--TIPO CAMBIO--%> - - -
    -
    -
    -
    -
    - "> - -
    -
    - Tipo de Cambio -
    -
    -
    - - - - - - - - - - - - - -
    Moneda: - - - - - - -
    Tipo de Cambio: - - - -
    - -
    -
    -
    -
    -
    -
    -
    - - <%--ADVERTENCIA--%> - - -
    -
    -
    -
    - - Información: - -
    -
    -
    -
    -
    -
    - - Información: - -
    -
    -
    -
    - <%--ADVERTENCIA--%> -
    -
    -
    -
    - - Información: - -
    -
    + +
    +
    + + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    -
    - - - -
    - -
    - -
    - - <%-- GV DATOS --%> -
    -
    -
    - - Entrada a Inventario -
    -
    -
    -
    -
    -
    - -
    -
    -
    - - - - - -
    -
    - - + + + + + + + + +
    + +
    + + <%--DATOS COMPRA--%> +
    +
    + + +
    +
    +
    + + + + A RECIBIR +
    +
    + +
    +
    +
    +
    + + + + + + + + + + + + +
    Proveedor: + +
    Folio: + + +
    Descripción: + +
    +
    +
    +
    +
    +
    +
    + + <%--DATOS DEL MOVIMIENTO--%> +
    +
    + + +
    +
    +
    + + Datos del movimiento +
    +
    + +
    +
    +
    +
    +
    + Almacén: + +
    +
    + + + +
    +
    +
    +
    + Fecha: + +
    +
    +
    +
    + + + + + + + + + + + + +
    +
    +
    +
    +
    +
    + Observaciones: + +
    +
    + + +
    +
    +
    +
    + Remisión: + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + <%--PENDIENTES--%> + + +
    +
    +
    +
    +
    + + COMPRAS POR RECIBIR +
    +
    + + + + +   + +
    +
    + + + + + + + + + + +
    +
    + + + + +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    +
    +
    + + <%--TIPO CAMBIO--%> + + +
    +
    +
    +
    +
    + "> + +
    +
    + Tipo de Cambio + +
    +
    +
    + + + + + + + + + + + + + +
    Moneda: + + + + + + +
    Tipo de Cambio: + + + +
    + +
    +
    +
    +
    +
    +
    +
    + + <%--ADVERTENCIA--%> + + +
    +
    +
    +
    + + Información: + +
    +
    +
    +
    +
    +
    + + Información: + +
    +
    +
    +
    + <%--ADVERTENCIA--%> +
    +
    +
    +
    + + Información: + +
    +
    +
    +
    +
    +
    + + <%--DOCUMENTO--%> +
    +
    + + +
    +
    +
    +
    +
    + + Documento Relacionado +
    +
    +
    +
    +
    + <%--
    +
    +
    +
    +
    --%> +
    +
    +
    +
    + +
    +
    + <%-- + + + + + + + + + --%> +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    + + <%-- GV DATOS --%> +
    +
    +
    + + Entrada a Inventario +
    +
    +
    +
    +
    +
    + +
    +
    +
    + + + + + +
    +
    + + <%-- --%> - - - - -
    - - - - - - - - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - -
    -
    -
    - - - - - - -
    -
    - - - - - -
    - Financiamiento - - - - -
    - - - + +
    - - + --%> + + + + +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + +
    +
    +
    + + + + + + +
    +
    + + + + + +
    + Financiamiento + + + + - -
    + + + - + +
    + --Clasificacion + + + + + + + +
    + + - - - - - - -
    Programa Operativo -
    - --Clasificacion -
    Fuente FinanciamientoTipo GastoUnidad Administrativa
    -
    Saldo
    Fuente FinanciamientoTipo GastoUnidad Administrativa
    +
    Saldo Importe -
    -
    - - - - - - - - - - - - - -
    - -
    - -- -
    - - -
    -
    - -
    +
    +
    + + + + + + + + + + + + + +
    + +
    + -- +
    + + +
    +
    + +
    <%-- - --%> - - - - - - - - - -
    - - -
    -
    -
    - - - - - - - - - - - - -
    Totales: - - -
    Total por Devengar: - -
    -
    -
    -
    -
    - - - -
    -
    - -
    -
    - - <%--ACCIONES--%> -
    - - - - - -
    - - - -
    - - - <%-- BITACORA --%> - - -
    -
    -
    - Bitácora -
    -
    -
    -
    - - -
    -
    -
    -
    - - - - - - - - - - - - - - - - -
    -
    - -
    - - -
    -
    - - - <%--AGREGAR POR SERIE LOTE--%> - - - <%--AGREGAR CON LOTE BATCH Y CADUCIDAD--%> - - - - <%--CANTIDAD ESPECIAL--%> - - - - -