diff --git a/Agropecuaria/RepPreciosVentaManifiesto.aspx b/Agropecuaria/RepPreciosVentaManifiesto.aspx
index 7aa2415ec..ef0b88763 100644
--- a/Agropecuaria/RepPreciosVentaManifiesto.aspx
+++ b/Agropecuaria/RepPreciosVentaManifiesto.aspx
@@ -128,7 +128,7 @@ font-size: 12px;
@@ -139,12 +139,11 @@ font-size: 12px;
+
-
-
-
-
+
+
diff --git a/Agropecuaria/RepPreciosVentaManifiesto.aspx.vb b/Agropecuaria/RepPreciosVentaManifiesto.aspx.vb
index e413df747..f3b8abb5b 100644
--- a/Agropecuaria/RepPreciosVentaManifiesto.aspx.vb
+++ b/Agropecuaria/RepPreciosVentaManifiesto.aspx.vb
@@ -25,10 +25,10 @@ Partial Class Agrupecuaria_RepPreciosVentaManifiesto
If Not IsPostBack Then
If UsuarioActual.CveEmpresa = 2 AndAlso UsuarioActual.CveUsuario.Contiene(77, 21) Then Response.Redirect("/Inicio.aspx")
- txtFechaI.Text = $"01/{Now.Month.ToString("0#")}/{Now.Year}"
+ txtFechaI.Text = Now.AddDays(-1).ToString("dd/MM/yyyy")
txtFechaF.Text = Now.ToString("dd/MM/yyyy")
- TxtModalFechaInicio.Text = $"01/{Now.Month.ToString("0#")}/{Now.Year}"
+ TxtModalFechaInicio.Text = Now.AddDays(-1).ToString("dd/MM/yyyy")
TxtModalFechaFin.Text = Now.ToString("dd/MM/yyyy")
CargaCombos()
@@ -120,6 +120,13 @@ Partial Class Agrupecuaria_RepPreciosVentaManifiesto
#Region " GV DATOS - ROW DATABOUND "
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
+ If e.Row.RowType = DataControlRowType.DataRow Then
+ Dim Dif As Decimal = e.Row.DataKey("Diferencia").ToDecimal
+ If Dif < 0 Then
+ e.Row.Cells(11).ForeColor = Drawing.Color.Red
+ e.Row.Cells(12).ForeColor = Drawing.Color.Red
+ End If
+ End If
End Sub
#End Region
diff --git a/App_Code/ClsGenerales.vb b/App_Code/ClsGenerales.vb
index 4e0ef922e..7b7617049 100644
--- a/App_Code/ClsGenerales.vb
+++ b/App_Code/ClsGenerales.vb
@@ -384,10 +384,32 @@ Public Class ClsGenerales
End Try
Return ds
- End Function
-
+ End Function
+
+ Public Function GetDashboardData(CveEmpresa As Integer) As DataSet
+ Dim ds As New DataSet
+ DataAdapter("PA_Gral_DashboardsGet")
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@Opcion", SqlDbType.Int).Value = 1
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@FechaInicio", SqlDbType.Date).Value = Date.Now.AddYears(-1)
+ .Add("@FechaFin", SqlDbType.Date).Value = Date.Now
+ End With
+
+ Try
+ SqlAdapter.Fill(ds)
+ ds.Tables(0).TableName = "Indicadores"
+ ds.Tables(1).TableName = "DetalleDia"
+ Return ds
+ Catch ex As Exception
+ ' Manejo de errores
+ Return Nothing
+ End Try
+ End Function
+
+
#End Region
-
+
#Region " D I A S I N H A B I L E S "
Public Function DiasInhabiles_Add(CveEmpresa As Integer, CveUsuario As Integer, DiaInhabil As String, Descripcion As String, Estatus As Integer, FechaInhabil As Date) As Boolean
Dim Retorno As Boolean = False
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/ClsNominas.vb b/App_Code/ClsNominas.vb
index 64f4f81e8..3a7756ca7 100644
--- a/App_Code/ClsNominas.vb
+++ b/App_Code/ClsNominas.vb
@@ -1568,7 +1568,7 @@ Public Class ClsNominas
End Function
Public Function UpdateConcepto(Codigo As String, Concepto As String, Tipo As String, Formula As String, Sistema As Boolean, Estado As Boolean, CveConceptoPadre As Integer, CveConcepto As Integer,
- EsRetencion As Boolean, CveClasificacion As Integer, CveTipoGasto As Integer, TipoCalculo As Boolean, CveConceptoContable As Integer, AplicaFiniquito As Integer,
+ EsRetencion As Boolean, CveClasificacion As Integer, CveTipoGasto As Integer, TipoCalculo As Boolean, CveConceptoContable As Integer, CveCuenta As Integer, AplicaFiniquito As Integer,
AutomaticoGlobal As Integer, Especie As Integer, Imprimir As Integer, CveSATConcepto As Integer, CveEmpresa As Integer, CveUsuario As Integer,
ctaImporteNegativoProv As Integer, contabiliza As Integer, CargoOAbono As Integer, cveConceptoContableB As Integer, CveCuentaB As Integer,
CveConceptoContablePasivo As Integer, Optional AplicaEfectivale As Integer = 0, Optional EsFormula As Integer = -1) As Boolean
@@ -1590,6 +1590,7 @@ Public Class ClsNominas
.Add("CveTipoGasto", SqlDbType.Int).Value = CveTipoGasto
.Add("TipoCalculo", SqlDbType.Bit).Value = TipoCalculo
.Add("CveConceptoContable", SqlDbType.Int).Value = CveConceptoContable
+ .Add("CveCuenta", SqlDbType.Int).Value = CveCuenta
.Add("AplicaFiniquito", SqlDbType.Bit).Value = AplicaFiniquito
.Add("AutomaticoGlobal", SqlDbType.Bit).Value = AutomaticoGlobal
.Add("Especie", SqlDbType.Bit).Value = Especie
diff --git a/App_Code/ClsOP.vb b/App_Code/ClsOP.vb
index eb34c60ee..624bb0a8a 100644
--- a/App_Code/ClsOP.vb
+++ b/App_Code/ClsOP.vb
@@ -481,15 +481,16 @@ Public Class ClsOP
Return Retorno
End Function
- Public Function GetEstatusOP(CveEmpresa As Integer, Optional CveEstatusOP As Integer = -1, Optional TipoEstatus As Integer = -1, Optional Estatus As Integer = -1) As Boolean
+ Public Function GetEstatusOP(CveEmpresa As Integer, Optional CveEstatusOP As Integer = -1, Optional TipoEstatus As Integer = -1, Optional Estatus As Integer = -1, Optional CveUsuario As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OP_EstatusOPGet")
With SqlAdapter.SelectCommand.Parameters
- .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
- .Add("@CveEstatusOP", SqlDbType.Int).Value = CveEstatusOP
- .Add("@TipoEstatus", SqlDbType.Int).Value = TipoEstatus
- .Add("@Estatus", SqlDbType.Int).Value = Estatus
+ .Add("@cveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@cveEstatusOP", SqlDbType.Int).Value = CveEstatusOP
+ .Add("@tipoEstatus", SqlDbType.Int).Value = TipoEstatus
+ .Add("@estatus", SqlDbType.Int).Value = Estatus
+ .Add("@cveUsuario", SqlDbType.Int).Value = CveUsuario
End With
Try
SqlAdapter.Fill(Data)
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index 2f9873a89..a89c07bd9 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -78,6 +78,7 @@ Public Class ClsPaginas
If Dominio.Contains("VYA".ToUpper()) Then Retorno = "VYA"
If Dominio.Contains("GRUPODIAZ".ToUpper()) Then Retorno = "GRUPODIAZ"
If Dominio.Contains("FERRETERA".ToUpper()) Then Retorno = "FERRETERA"
+ If Dominio.Contains("JUMBOLON".ToUpper()) Then Retorno = "JUMBOLON"
Return Retorno
End Get
End Property
@@ -6224,6 +6225,8 @@ Public Class ClsPaginas
Dim ConfATR2 As String = ""
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
@@ -6233,6 +6236,8 @@ Public Class ClsPaginas
Telefono = Dr("FiguraTelefono").ToString
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
@@ -6629,6 +6634,9 @@ Public Class ClsPaginas
params.Add(New ReportParameter("FechaImpresion", NowADS().ToDateTime.ToShortDateString))
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
@@ -10548,6 +10556,7 @@ Public Class ClsPaginas
PaginaDict.Add("/General/CatMedidaEquivalencia.aspx".ToUpper(), 773)
PaginaDict.Add("/General/RepIndicadorResumen.aspx".ToUpper(), 110)
PaginaDict.Add("/General/SaldosMenores.aspx".ToUpper(), -1)
+ PaginaDict.Add("/General/Dashboard.aspx".ToUpper(), 17)
#End Region
#Region "GPS"
PaginaDict.Add("/GPS/RepTemperatura.aspx".ToUpper(), 681)
@@ -11140,7 +11149,7 @@ Public Class ClsPaginas
PaginaDict.Add("/Contabilidad/OCDetalleAlmacen.aspx".ToUpper(), -1)
PaginaDict.Add("/Contabilidad/RepBalanceGeneralHorizontal.aspx".ToUpper(), -1)
PaginaDict.Add("/Agropecuaria/CierreCultivo.aspx".ToUpper(), 1326)
- PaginaDict.Add("/Agropecuaria/RepPreciosVentaManifiesto.aspx".ToUpper(), -1)
+ PaginaDict.Add("/Agropecuaria/RepPreciosVentaManifiesto.aspx".ToUpper(), 1353)
PaginaDict.Add("/Inventarios/RepRSCO.aspx".ToUpper(), 1328)
PaginaDict.Add("/testApi.aspx".ToUpper(), -1)
diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index f5df7ceeb..223f40d59 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
@@ -1643,7 +1641,7 @@ Public Class ClsVentas
Return Retorno
End Function
- Public Function UpdateVentaDetalleRemision(CveVenta As Integer, CvePS As Integer, Cantidad As Decimal, PU As Decimal, IEPS As Decimal, PorcentajeIEPS As Decimal, IVA As Decimal, PorcentajeIVA As Decimal, Descuento As Decimal, Observaciones As String, Optional CveUsuarioModifico As Integer = -1, Optional CvePromocionDetalle As Integer = -1) As Boolean
+ Public Function UpdateVentaDetalleRemision(CveVenta As Integer, CvePS As Integer, Cantidad As Decimal, PU As Decimal, IEPS As Decimal, PorcentajeIEPS As Decimal, IVA As Decimal, PorcentajeIVA As Decimal, Descuento As Decimal, Observaciones As String, Optional CveUsuarioModifico As Integer = -1, Optional CvePromocionDetalle As Integer = -1, Optional CantidadConversion As Decimal = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_VentasDetalleRemisionUpdate")
@@ -1660,6 +1658,7 @@ Public Class ClsVentas
.Add("@Observaciones", SqlDbType.VarChar).Value = Observaciones
.Add("@CveUsuarioModifico", SqlDbType.Int).Value = CveUsuarioModifico
.Add("@CvePromocionDetalle", SqlDbType.Int).Value = CvePromocionDetalle
+ .Add("@CantidadConversion", SqlDbType.Decimal).Value = CantidadConversion
End With
Try
@@ -7698,7 +7697,7 @@ Public Class ClsVentas
End Function
- Public Function GetSMSIndicadores(Opcion As Integer, FechaInicio As Date, FechaFin As Date, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
+ Public Function GetSMSIndicadores(Opcion As Integer, FechaInicio As Date, FechaFin As Date, CveUsuario As Integer, CveVendedor As Integer, CveGerenteVendedor As Integer, CveUsuarioTecnico As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_SMS_IndicadoresGet")
With SqlAdapter.SelectCommand.Parameters
@@ -7706,6 +7705,9 @@ Public Class ClsVentas
.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
+ .Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
+ .Add("@CveGerenteVendedor", SqlDbType.Int).Value = CveGerenteVendedor
+ .Add("@CveUsuarioTecnico", SqlDbType.Int).Value = CveUsuarioTecnico
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
End With
Try
@@ -7914,11 +7916,6 @@ Public Class ClsVentas
-
-
-
-
-
#Region "IDisposable Support"
diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb
index 53c73fd47..42765c4be 100644
--- a/App_Code/Modelos.vb
+++ b/App_Code/Modelos.vb
@@ -1307,6 +1307,7 @@ Namespace Modelos
TmpDT.Columns.Add("Descuento", GetType(Decimal))
TmpDT.Columns.Add("TipoDescuento", GetType(Integer))
TmpDT.Columns.Add("TotalImporte", GetType(Decimal))
+ TmpDT.Columns.Add("TotalConImpuestos", GetType(Decimal))
TmpDT.Columns.Add("Total", GetType(Decimal))
TmpDT.Columns.Add("RetIVA", GetType(Decimal))
TmpDT.Columns.Add("RetISR", GetType(Decimal))
@@ -1385,8 +1386,14 @@ Namespace Modelos
TmpDT.Columns.Add("CveViajePasajero", GetType(Integer))
TmpDT.Columns("CveViajePasajero").DefaultValue = -1
+ 'COLUMNAS DE Ventas.aspx
TmpDT.Columns.Add("CantidadConversion", GetType(Decimal))
TmpDT.Columns("CantidadConversion").DefaultValue = 0
+ TmpDT.Columns.Add("NumeroPedimento", GetType(String))
+ TmpDT.Columns.Add("CodigoAlterno", GetType(String))
+ TmpDT.Columns.Add("PSAlterno", GetType(String))
+ TmpDT.Columns.Add("Costo", GetType(Decimal))
+ TmpDT.Columns("Costo").DefaultValue = 0D
'COLUMNAS DE PV.aspx
TmpDT.Columns.Add("PUOriginal", GetType(Decimal))
@@ -3604,7 +3611,7 @@ Namespace Modelos
Exit Select
End If
- If ObjFactura.TipoDocto.Contiene("Ing", "Egs", "Ant") AndAlso ValorMultiplicador = -1 Then
+ If ObjFactura.TipoDocto.Contiene("Ing", "Egs") AndAlso ValorMultiplicador = -1 Then
For Each row2 As DataRow In ObjFactura.DtAnticipos.Rows
If row2("CveConceptoContable").ToString().ToEntero = 11 Then
importeMovimiento = row2("Importe").ToString().ToDecimal * ValorMultiplicador '- ((row2.FCTextBox("TxtAnticipo" & row2.RowIndex).Text.ToDecimal / row2.DataKey("TotalAnticipo").ToDecimal) * row2.DataKey("IVAAnticipo").ToDecimal)
@@ -5732,8 +5739,15 @@ Namespace Modelos
Return Retorno
End If
- If ObjFactura.TipoDocto = "Ant" AndAlso ObjFactura.SaldoAmortizado > 0 Then
- Retorno.Mensaje = "La factura no se puede cancelar debido a que el anticipo ha sido amortizado."
+ 'If ObjFactura.TipoDocto = "Ant" AndAlso ObjFactura.SaldoAmortizado > 0 Then
+ ' Retorno.Mensaje = "La factura no se puede cancelar debido a que el anticipo ha sido amortizado."
+ ' Retorno.TipoMensaje = TipoMensaje.MsgAdvertencia
+
+ ' Return Retorno
+ 'End If
+
+ If UsuarioActual.CveEmpresa <> 119 AndAlso ObjFactura.TipoDocto = "Ant" AndAlso ObjFactura.SaldoAnticipo.RoundSQL(2) <> ObjFactura.SubTotal.RoundSQL(2) Then
+ Retorno.Mensaje = "La factura no se puede cancelar debido a que el anticipo ha sido aplicado."
Retorno.TipoMensaje = TipoMensaje.MsgAdvertencia
Return Retorno
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/Ashx/E140.ashx b/Ashx/E140.ashx
index 1ad9449bc..2445fbc2c 100644
--- a/Ashx/E140.ashx
+++ b/Ashx/E140.ashx
@@ -132,7 +132,8 @@ Public Class E140 : Implements IHttpHandler, IRequiresSessionState
Dim data As New JArray
Dim dtt As New DataTable
Dim ObjVentas As New ClsVentas
- If ObjVentas.GetRepRemisionesSinFacturar(Now.AddYears(-2).ToShortDateString, Now.ToShortDateString, Now.ToShortDateString, CveSubProyecto, -1, -1, "-1", CveEmpresa, CveUsuarioConsulta:=100, PrimerProducto:=True) Then
+ Dim FechaInicio As String = Now.AddYears(-2).ToShortDateString
+ If ObjVentas.GetRepRemisionesSinFacturar(FechaInicio, Now.AddDays(1).ToShortDateString, Now.AddDays(1).ToShortDateString, CveSubProyecto, -1, -1, "-1", CveEmpresa, CveUsuarioConsulta:=100, PrimerProducto:=True) Then
dtt = ObjVentas.DtResultados.FiltraParametros("CveVenta > 0")
End If
ObjVentas.Dispose()
@@ -296,6 +297,7 @@ Public Class E140 : Implements IHttpHandler, IRequiresSessionState
End If
Else
TieneError = True
+ MsgError = "Falta información para completar la venta."
End If
End If
If Not TieneError Then
diff --git a/Ashx/E158.ashx b/Ashx/E158.ashx
index cc6b92bc6..6f4d581b9 100644
--- a/Ashx/E158.ashx
+++ b/Ashx/E158.ashx
@@ -209,17 +209,6 @@ Public Class E158 : Implements IHttpHandler, IReadOnlySessionState
ObjVentas.Dispose()
- 'For Each dRow As DataRow In DTresp.Rows
-
- 'Next
-
- 'Dim ObjVentas As New ClsVentas
-
- 'If ObjVentas.AddPreciosVentaManifiesto() Then
-
- 'End If
-
- 'ObjVentas.Dispose()
'DTresp.WriteXml("C:\temp\GrowerService\Sales.xml", XmlWriteMode.WriteSchema)
diff --git a/Bancos/DepositosCaja.aspx b/Bancos/DepositosCaja.aspx
index 0c2d9a41c..8df5dc3b2 100644
--- a/Bancos/DepositosCaja.aspx
+++ b/Bancos/DepositosCaja.aspx
@@ -224,7 +224,7 @@
-
-
+
-
+
-
+
Compra
diff --git a/Compras/RepRembolsoComprobaciones.aspx.vb b/Compras/RepRembolsoComprobaciones.aspx.vb
index edd6c6050..795ce312f 100644
--- a/Compras/RepRembolsoComprobaciones.aspx.vb
+++ b/Compras/RepRembolsoComprobaciones.aspx.vb
@@ -87,7 +87,9 @@ Partial Class Compras_RepRembolsoComprobaciones
DdlPersonal.DataSource = GlobalDTRHPersonal(UsuarioActual.CveEmpresa)
DdlPersonal.DataBind()
- txtFechaI.Text = NowADS.AddYears(-1).ToShortDateString
+ txtFechaI.Text = NowADS.AddMonths(-3).ToShortDateString
+
+ CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyecto, "Todos")
End If
End Sub
@@ -133,8 +135,17 @@ Partial Class Compras_RepRembolsoComprobaciones
Protected Sub GvCxP_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvCxP.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
- If e.Row.RowIndex = 0 Then
- e.Row.BackColor = Drawing.Color.LightGray
+
+ 'If e.Row.RowIndex = 0 Then
+ ' e.Row.BackColor = Drawing.Color.LightGray
+ 'End If
+
+ If e.Row.DataKey("Gpo").Trim.Length = 0 Then
+ e.Row.CssClass = "Totales"
+ End If
+
+ If e.Row.DataKey("Gpo").Trim.Length > 0 AndAlso e.Row.DataKey("CveCompra").ToEntero = 0 Then
+ e.Row.CssClass = "SubTotales"
End If
e.Row.Cells(5).HorizontalAlign = HorizontalAlign.Right
@@ -236,7 +247,8 @@ Partial Class Compras_RepRembolsoComprobaciones
If DdlTipoPago.SelectedValue = "2" Then ViewState("CvePersonal") = -2
- ObjMovtos.GetCxPPersonalCajaChica(UsuarioActual.CveEmpresa, CvePersonal, CveCajaChica, If(TxtNumeroReembolso.Text.Trim = "", "-1", TxtNumeroReembolso.Text.Trim), FechaI:=FechaI, FechaF:=FechaF, OpcionSaldo:=-1)
+ ObjMovtos.GetCxPPersonalCajaChica(UsuarioActual.CveEmpresa, CvePersonal, CveCajaChica, If(TxtNumeroReembolso.Text.Trim = "", "-1", TxtNumeroReembolso.Text.Trim), FechaI:=FechaI, FechaF:=FechaF, OpcionSaldo:=-1,
+ CveSubProyecto:=DdlSubProyecto.SelectedValue.ToEntero)
DtDatos = ObjMovtos.DtResultados
GvCxP.DataSource = DtDatos
diff --git a/Compras/eFacturas.aspx.vb b/Compras/eFacturas.aspx.vb
index 95591bce5..58af0d5ec 100644
--- a/Compras/eFacturas.aspx.vb
+++ b/Compras/eFacturas.aspx.vb
@@ -1168,7 +1168,7 @@ Partial Class Compras_eFacturas
'End If
Dim Funcionalidad123 As Integer = UsuarioActual.Empresa.Funcionalidad(123).ToEntero
- If Funcionalidad123 > 0 Then
+ If Funcionalidad123 > 0 AndAlso Not e.Row.DataKey("CveFactura").ToEntero.Contiene(1223188) Then
If NowADS().Day >= Funcionalidad123 Then
Dim FechaLimite As Date = New Date(NowADS().Year, NowADS().Month, 1)
If e.Row.DBCampo("FechaFactura").ToDate < FechaLimite Then
diff --git a/Contabilidad/DiarioPagos.aspx b/Contabilidad/DiarioPagos.aspx
index df56da6ec..640fd5901 100644
--- a/Contabilidad/DiarioPagos.aspx
+++ b/Contabilidad/DiarioPagos.aspx
@@ -1,4 +1,4 @@
-<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="DiarioPagos.aspx.vb" Inherits="Contabilidad_DiarioPagos" %>
+<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="DiarioPagos.aspx.vb" Inherits="Contabilidad_DiarioPagos" ValidateRequest="false" %>
<%@ Import Namespace="Extensiones" %>
diff --git a/Contabilidad/RegPrePolizaS.aspx.vb b/Contabilidad/RegPrePolizaS.aspx.vb
index caf9c6f53..3df41ca1e 100644
--- a/Contabilidad/RegPrePolizaS.aspx.vb
+++ b/Contabilidad/RegPrePolizaS.aspx.vb
@@ -1561,7 +1561,7 @@ Partial Class ContabilidadC_RegPrePolizaS
DdlProveedoresE.Items.Insert(0, New ListItem(" - ", "-1"))
End Sub
Private Sub CargaComprasE(CveProveedor As Integer, Optional tCveCompra As Integer = -1)
- If DdlConceptosContablesE.SelectedValue.ToEntero.Contiene(5, 17, 305, 308, 310, 311, 312) Then
+ If DdlConceptosContablesE.SelectedValue.ToEntero.Contiene(5, 6, 17, 305, 308, 310, 311, 312) Then
Dim ObjCompras As New ClsCompras
DdlComprasE.ClearSelection()
diff --git a/Contabilidad/RepGastosCC.aspx b/Contabilidad/RepGastosCC.aspx
index 46c288faa..9f918e6a6 100644
--- a/Contabilidad/RepGastosCC.aspx
+++ b/Contabilidad/RepGastosCC.aspx
@@ -223,8 +223,6 @@ table.adssigscroll {
-
-
diff --git a/Empresas/153/Formatos/Cotizacion.rdlc b/Empresas/153/Formatos/Cotizacion.rdlc
index 6a5cf12c3..47c8076a7 100644
--- a/Empresas/153/Formatos/Cotizacion.rdlc
+++ b/Empresas/153/Formatos/Cotizacion.rdlc
@@ -1217,8 +1217,8 @@
- CAMELIA No.Ext: 619, Col: Libertad,
-CP: 83130, Hermosillo,Sonora, México
+ SIMON BLEY No.Ext: 355, No.Int: A, Col: Olivares,
+CP: 83180, Hermosillo,Sonora, México
-
-
-
-
-
-
-
- HERMOSILLO SONORA CP 83180 MEXICO
+ SIMON BLEY No.Ext: 355, No.Int: A, Col: Olivares,
+CP: 83180, Hermosillo,Sonora, México
-
-
-
-
-
-
-
- HERMOSILLO SONORA CP 83130 MEXICO
+ SIMON BLEY No.Ext: 355, No.Int: A, Col: Olivares,
+CP: 83180, Hermosillo,Sonora, México
-
-
-
-
-
- Textbox28
-
-
-
- LightGrey
-
-
- LightGrey
-
-
- LightGrey
-
-
-
-
- LightGrey
- 1pt
-
-
-
-
-
-
-
-
-
-
- 3.42604cm
-
-
- 2.43119cm
-
-
- 3.94465cm
-
-
-
-
- 0.44125cm
-
-
-
-
- true
- true
-
-
-
-
- =Fields!FechaAplicado.Value
-
-
-
-
-
-
- FechaAplicado
-
-
- =IIF(Fields!TotalNC.Value < 0, "#e7505a","White")
- 0.5pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!Moneda.Value
-
-
-
-
-
-
- Moneda
-
-
- =IIF(Fields!TotalNC.Value < 0, "#e7505a","White")
- 0.5pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!TotalNC.Value
-
-
-
-
-
-
- TotalNC
-
-
- =IIF(Fields!TotalNC.Value < 0, "#e7505a","White")
- 0.5pt
-
-
-
-
-
-
-
-
-
-
-
-
- 0.44125cm
-
-
- true
- true
-
-
-
-
- Fecha
-
-
-
-
-
-
- Textbox19
-
-
- LightGrey
- 1pt
-
-
-
-
-
-
-
- 0.44125cm
-
-
- true
- true
-
-
-
-
- Moneda
-
-
-
-
-
-
- Textbox21
-
-
- LightGrey
- 1pt
-
-
-
-
-
-
-
- 0.44125cm
-
-
- true
- true
-
-
-
-
- Importe
-
-
-
-
-
-
- Textbox23
-
-
- LightGrey
- 1pt
-
-
-
-
-
-
-
-
-
-
-
-
- 6.69369cm
-
-
- true
- true
-
-
-
-
- =Fields!SerieFolioEstatus.Value
-
-
-
-
-
-
- SerieFolioEstatus
-
-
- =IIF(Fields!TotalNC.Value < 0, "#e7505a","White")
- 0.5pt
-
-
-
-
-
-
-
- true
- true
- DataSet1
- 0.12375cm
- 0.25664cm
- 0.8825cm
- 16.49557cm
-
-
-
-
-
- 0.39616in
-
-