diff --git a/App_Code/ClsMovimientos.vb b/App_Code/ClsMovimientos.vb
index 4cad5571a..373a3253f 100644
--- a/App_Code/ClsMovimientos.vb
+++ b/App_Code/ClsMovimientos.vb
@@ -789,7 +789,6 @@ Public Class ClsMovimientos
Public Function GetEgresosSinComprobar(FechaInicio As String, FechaFin As String, CveProveedor As Integer, CvePersonal As Integer, CveClasificacion As Integer, CveUsuarioRegistro As Integer, CveUsuarioResponsable As Integer, CveMoneda As Integer, Saldo As Double, CveEmpresa As Integer, Optional CveTipoTransaccion As Integer = -1, Optional CveUsuarioSolicito As Integer = -1) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_EgresosSinComprobar")
With SqlAdapter.SelectCommand.Parameters
@@ -820,7 +819,6 @@ Public Class ClsMovimientos
Public Function GetIngresosAcreedorXSaldar(CveProveedor As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_IngresosAcreedorXSaldar")
With SqlAdapter.SelectCommand.Parameters
@@ -840,7 +838,6 @@ Public Class ClsMovimientos
End Function
Public Function GetPrestamosPersonalXSaldar(CvePersonal As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_PrestamosPersonalXSaldar")
With SqlAdapter.SelectCommand.Parameters
@@ -861,7 +858,6 @@ Public Class ClsMovimientos
Public Function GetDeudoresrXSaldar(CveProveedor As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_DuedorXSaldar")
With SqlAdapter.SelectCommand.Parameters
@@ -883,7 +879,6 @@ Public Class ClsMovimientos
Public Function GetIngresosPorComprobar(FechaInicio As String, FechaFin As String, CveCliente As Integer, CveUsuarioRegistro As Integer, CveMoneda As Integer, Saldo As Double, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_IngresosPorComprobar")
With SqlAdapter.SelectCommand.Parameters
@@ -909,7 +904,6 @@ Public Class ClsMovimientos
Public Function GetIngresosAnticiposPorComprobar(FechaInicio As String, FechaFin As String, CveCliente As Integer, CveUsuarioRegistro As Integer, CveMoneda As Integer, Saldo As Double, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_IngresosAnticiposSinComprobar")
With SqlAdapter.SelectCommand.Parameters
@@ -935,7 +929,6 @@ Public Class ClsMovimientos
Public Function GetMovimientosIE(Opcion As Integer, CveFiltro As Integer, CveCuentaBancaria As Integer, FechaInicio As Date, FechaFin As Date, CveMoneda As Integer, Saldo As Double, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_MovimientosIE")
With SqlAdapter.SelectCommand.Parameters
@@ -962,7 +955,6 @@ Public Class ClsMovimientos
Public Function GetEgresosSinComprobarPersonal(CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_EgresosSinComprobarPersonal")
With SqlAdapter.SelectCommand.Parameters
@@ -982,7 +974,6 @@ Public Class ClsMovimientos
Public Function GetChequesFYE(CveEmpresa As Integer, Optional FechaI As DateTime = ModExtensiones.MinFecha, Optional FechaF As DateTime = ModExtensiones.MaxFecha) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_ReporteChequesFYEGet")
With SqlAdapter.SelectCommand.Parameters
@@ -1004,7 +995,6 @@ Public Class ClsMovimientos
Public Function GetEgresosSinComprobarPersonalDetalle(CvePersonal As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_EgresosSinComprobarPersonalDetalle")
With SqlAdapter.SelectCommand.Parameters
@@ -1025,8 +1015,7 @@ Public Class ClsMovimientos
Public Function GetDeudoresSaldos(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
- DataAdapter("PA_Banc_DeudoresSaldos")
+ DataAdapter("PA_Banc_DeudoresSaldosGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
@@ -1045,8 +1034,7 @@ Public Class ClsMovimientos
Public Function GetDeudoresComisionesSaldos(CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
- DataAdapter("PA_Banc_DeudoresComisionesSaldos")
+ DataAdapter("PA_Banc_DeudoresComisionesSaldosGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
@@ -1064,8 +1052,7 @@ Public Class ClsMovimientos
Public Function GetDeudoresComisionesSaldosDetalle(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
- DataAdapter("PA_Banc_DeudoresComisionesSaldosDetalle")
+ DataAdapter("PA_Banc_DeudoresComisionesSaldosDetalleGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
@@ -1085,7 +1072,6 @@ Public Class ClsMovimientos
Public Function GetDeudoresSaldos2(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_DeudoresSaldos2")
With SqlAdapter.SelectCommand.Parameters
@@ -1106,7 +1092,6 @@ Public Class ClsMovimientos
Public Function GetSaldosDeudorAcreedorAnticipos(FechaInicio As Date, FechaFin As Date, Opcion As Integer, CveProveedor As Integer, CvePersonal As Integer, CveClasificacion As Integer, CveUsuarioRegistro As Integer, CveUsuarioResponsable As Integer, CveMoneda As Integer, Saldo As Double, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_SaldosDAP")
With SqlAdapter.SelectCommand.Parameters
@@ -1136,8 +1121,7 @@ Public Class ClsMovimientos
Public Function GetDeudoresSaldosDetalle(CveProveedor As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
- DataAdapter("PA_Banc_DeudoresSaldosDetalle")
+ DataAdapter("PA_Banc_DeudoresSaldosDetalleGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveProveedor", SqlDbType.Int).Value = CveProveedor
@@ -1158,7 +1142,6 @@ Public Class ClsMovimientos
Public Function GetIngresosSaldos(CveCliente As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_IngresosSaldos")
With SqlAdapter.SelectCommand.Parameters
@@ -1179,7 +1162,6 @@ Public Class ClsMovimientos
Public Function GetOtrosIngresos(Opcion As Integer, CveCliente As Integer, CveProveedor As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_OtrosIngresos")
With SqlAdapter.SelectCommand.Parameters
@@ -1202,7 +1184,6 @@ Public Class ClsMovimientos
Public Function GetIngresosSaldosDetalle(CveCliente As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_IngresosSaldosDetalle")
With SqlAdapter.SelectCommand.Parameters
@@ -1224,7 +1205,6 @@ Public Class ClsMovimientos
Public Function GetDocumentosxPagarDetalle(CveCliente As Integer, CveMoneda As Integer, Opcion As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_DocumentosxPagarSaldosDetalle")
With SqlAdapter.SelectCommand.Parameters
@@ -1247,7 +1227,6 @@ Public Class ClsMovimientos
Public Function GetCajaChicaDetalle(CveCajaChica As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_CajaChicaDetalle")
With SqlAdapter.SelectCommand.Parameters
@@ -1268,7 +1247,6 @@ Public Class ClsMovimientos
Public Function UpdateReembolsoComprobante(CveComprobacion As Integer, Comprobante As String) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Comp_ReembolosoComprobanteUpdate")
With SqlAdapter.SelectCommand.Parameters
@@ -1290,7 +1268,6 @@ Public Class ClsMovimientos
Public Function GetAcreedoresSaldosDetalles(CveProveedor As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_AcreedoresSaldosDetalles")
With SqlAdapter.SelectCommand.Parameters
@@ -1312,7 +1289,6 @@ Public Class ClsMovimientos
Public Function GetAcreedoresSaldos(CveProveedor As Integer, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Banc_AcreedoresSaldos")
With SqlAdapter.SelectCommand.Parameters
@@ -1414,7 +1390,6 @@ Public Class ClsMovimientos
Optional ConComprobacion As Integer = -1, Optional AplicaNC As Integer = -1) As Boolean
Dim Retorno As Boolean = False
-
DataAdapter("PA_Comp_CxPProgramar")
With SqlAdapter.SelectCommand.Parameters
@@ -1457,7 +1432,8 @@ Public Class ClsMovimientos
Return Retorno
End Function
- Public Function GetCxPPersonalCajaChica(CveEmpresa As Integer, CvePersonal As Integer, CveCajaChica As Integer, NumeroReembolso As String, Optional FechaI As DateTime = ModExtensiones.MinFecha, Optional FechaF As DateTime = ModExtensiones.MaxFecha, Optional OpcionSaldo As Integer = 1) As Boolean
+ Public Function GetCxPPersonalCajaChica(CveEmpresa As Integer, CvePersonal As Integer, CveCajaChica As Integer, NumeroReembolso As String, Optional FechaI As DateTime = ModExtensiones.MinFecha, Optional FechaF As DateTime = ModExtensiones.MaxFecha,
+ Optional OpcionSaldo As Integer = 1, Optional CveSubProyecto As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_CxPPersonalCajaChica")
With SqlAdapter.SelectCommand.Parameters
@@ -1468,6 +1444,7 @@ Public Class ClsMovimientos
.Add("@FechaI", SqlDbType.DateTime).Value = FechaI
.Add("@FechaF", SqlDbType.DateTime).Value = FechaF
.Add("@OpcionSaldo", SqlDbType.Int).Value = OpcionSaldo ' 1. solo con saldo, -1. todos
+ .Add("@CveSubProyecto", SqlDbType.Int).Value = OpcionSaldo
End With
Try
SqlAdapter.Fill(Data)
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index c82c5ba22..65b176d49 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -6225,6 +6225,7 @@ Public Class ClsPaginas
Dim ObjInv As New ClsGenerales
Dim TelDestino As String = ""
Dim NombreUsuario As String = "" 'Persona que timbro
+ Dim LugarOrigen As String = ""
If ObjInv.GetGralTimbre(CveTimbre, "-1", MinFecha, MaxFecha, -1, UsuarioActual.CveEmpresa, -1) Then
If ObjInv.DtResultados.Rows.Count > 0 Then
@@ -6235,6 +6236,7 @@ Public Class ClsPaginas
TipoDocto = Dr("TipoDocto").ToString
TelDestino = Dr("TelDestino").ToString
NombreUsuario = Dr("NombreUsuario").ToString
+ LugarOrigen = Dr("LugarOrigen").ToString
If UsuarioActual.CveEmpresa = 13 Then
PermisoSCTR1 = Dr("PermisoSCTR1").ToString
@@ -6632,6 +6634,8 @@ Public Class ClsPaginas
params.Add(New ReportParameter("DomicilioFiscal", $"{UsuarioActual.Empresa.Direccion}, {UsuarioActual.Empresa.Colonia}, {UsuarioActual.Empresa.Localidad}, {UsuarioActual.Empresa.Estado}, Tel. {Telefono}"))
params.Add(New ReportParameter("SerieFolio", SerieFolio))
params.Add(New ReportParameter("NombreUsuario", NombreUsuario))
+ params.Add(New ReportParameter("LugarOrigen", LugarOrigen))
+
params.Add(New ReportParameter("RFC", UsuarioActual.Empresa.RFC))
params.Add(New ReportParameter("DomicilioExpedicion", LugarExpedicion))
'CLIENTE
diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index cc028f6c9..6d7ecde0c 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -3,9 +3,7 @@ Option Strict On
Imports System.Data
Imports System.Data.SqlClient
-Imports System.Runtime.CompilerServices
Imports Extensiones
-Imports Profact.TimbraCFDI40
Public Class ClsVentas
Implements IDisposable
@@ -7915,11 +7913,6 @@ Public Class ClsVentas
-
-
-
-
-
#Region "IDisposable Support"
diff --git a/App_Code/Timbrado.vb b/App_Code/Timbrado.vb
index 19b3bbb23..a0df85f43 100644
--- a/App_Code/Timbrado.vb
+++ b/App_Code/Timbrado.vb
@@ -964,9 +964,9 @@ Public Class Timbrado
If CvePACEspecial <> -1 Then tCvePAC = CvePACEspecial
'validación especial.
- If Ventas.TipoDocto.Contiene("Ing", "Dev") Then
+ If Ventas.TipoDocto.Contiene("Ing", "Dev") AndAlso UsuarioActual.Empresa.Funcionalidad(153) = "" Then ' funcionalidad para no filtrar por códigos 01010101
- Dim CodigoIncorrecto = (From c In Ventas.Timbre.Conceptos Where (c.ClaveProdServ = "01010101") OrElse (c.ClaveProdServ = "84111506" AndAlso Not UsuarioActual.CveEmpresa.Contiene(2, 70, 144))
+ Dim CodigoIncorrecto = (From c In Ventas.Timbre.Conceptos Where (c.ClaveProdServ = "01010101") OrElse (c.ClaveProdServ = "84111506")
Select c.ClaveProdServ, c.Descripcion)
Dim Str As New StringBuilder
Str.Append("Los siguientes productos tienen especificado un código no permitido por el SAT:
")
diff --git a/Bancos/DepositosCaja.aspx b/Bancos/DepositosCaja.aspx
index 0c2d9a41c..085d86b98 100644
--- a/Bancos/DepositosCaja.aspx
+++ b/Bancos/DepositosCaja.aspx
@@ -318,14 +318,14 @@
-
Function PageNumber() As String
Return Me.Report.Globals!OverallPageNumber
diff --git a/Empresas/Grales/Formatos/RepRembolsosComprobaciones.rdlc b/Empresas/Grales/Formatos/RepRembolsosComprobaciones.rdlc
index fe395548e..030db69cb 100644
--- a/Empresas/Grales/Formatos/RepRembolsosComprobaciones.rdlc
+++ b/Empresas/Grales/Formatos/RepRembolsosComprobaciones.rdlc
@@ -17,6 +17,14 @@
/* Local Query */
+
+ Gpo
+ System.String
+
+
+ CveCompra
+ System.Int32
+
Proveedor
System.String
@@ -77,10 +85,10 @@
1.79565cm
- 2.02289cm
+ 2.90517cm
- 2.54059cm
+ 1.65831cm
2.29435cm
@@ -440,6 +448,10 @@
=Fields!SerieFolio.Value
@@ -453,7 +465,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -474,6 +489,10 @@
=Fields!Proveedor.Value
@@ -487,7 +506,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -509,6 +531,10 @@
@@ -522,7 +548,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -544,6 +573,10 @@
@@ -557,7 +590,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -579,6 +615,10 @@
@@ -592,7 +632,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -614,6 +657,10 @@
@@ -627,7 +674,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -649,6 +699,10 @@
@@ -662,7 +716,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
@@ -684,6 +741,10 @@
@@ -697,7 +758,10 @@
- =IIF(Fields!SerieFolio.Value = "TOTAL", "#67809F", "No color")
+ =IIF(LEN(Fields!Gpo.Value) = 0
+ , "#9cacc1"
+ , IIF(LEN(Fields!Gpo.Value) > 0 AndAlso Fields!CveCompra.Value = 0, "#cccccc", "No color")
+ )
2pt
2pt
2pt
diff --git a/Inventarios/EntradasSalidas.aspx b/Inventarios/EntradasSalidas.aspx
index be49d534e..42612ffdd 100644
--- a/Inventarios/EntradasSalidas.aspx
+++ b/Inventarios/EntradasSalidas.aspx
@@ -432,6 +432,14 @@