diff --git a/App_Code/ClsContPAQi.vb b/App_Code/ClsContPAQi.vb
index 5a6526ea1..4899c1242 100644
--- a/App_Code/ClsContPAQi.vb
+++ b/App_Code/ClsContPAQi.vb
@@ -1162,6 +1162,8 @@ Public Class ClsContPAQi
StrSQL.AppendLine("")
StrSQL.AppendLine(" BEGIN TRY")
StrSQL.AppendLine("")
+ StrSQL.AppendLine(" SET ARITHABORT ON; ")
+ StrSQL.AppendLine("")
StrSQL.AppendLine(" CREATE TABLE #TablaContable (")
StrSQL.AppendLine(" Id INT,")
StrSQL.AppendLine(" IdPoliza INT,")
diff --git a/App_Code/ClsMovimientos.vb b/App_Code/ClsMovimientos.vb
index 03ccd11b5..813d87af3 100644
--- a/App_Code/ClsMovimientos.vb
+++ b/App_Code/ClsMovimientos.vb
@@ -723,7 +723,8 @@ Public Class ClsMovimientos
Public Function GetCxPPeriodo(CveProveedor As Integer, CveSubProyecto As Integer, CveClasificacion As Integer, CveUsuarioResponsable As Integer,
CveUsuarioRegistro As Integer, CveEstatus As Integer, CveEmpresa As Integer, Gpo As Integer, CveSucursal As Integer,
- TipoCambio As Integer, TCEspecifico As Double, FechaCorte As Date, CveUsuarioConsulta As Integer, CveTipoProveedor As Integer) As Boolean
+ TipoCambio As Integer, TCEspecifico As Double, FechaCorte As Date, CveUsuarioConsulta As Integer, CveTipoProveedor As Integer,
+ Optional TipoDocto As String = "-1", Optional CveMoneda As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Comp_RepCxPPeriodo")
With SqlAdapter.SelectCommand.Parameters
@@ -740,6 +741,8 @@ Public Class ClsMovimientos
.Add("@FechaCorte", SqlDbType.Date).Value = FechaCorte
.Add("@CveUsuarioConsulta", SqlDbType.Int).Value = CveUsuarioConsulta
.Add("@CveTipoProveedor", SqlDbType.Int).Value = CveTipoProveedor
+ .Add("@TipoDocto", SqlDbType.VarChar).Value = TipoDocto
+ .Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
End With
Try
SqlAdapter.Fill(Data)
diff --git a/App_Code/ClsNominas.vb b/App_Code/ClsNominas.vb
index 73bf24f1a..aa5b2d3d0 100644
--- a/App_Code/ClsNominas.vb
+++ b/App_Code/ClsNominas.vb
@@ -3238,6 +3238,27 @@ Public Class ClsNominas
End Function
#End Region
#End Region
+
+
+
+ Public Function GetLayoutAltaBanorte(CvePeriodo As Integer, CveEmpresa As Integer) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_Dispersionnomina", CommandType.StoredProcedure)
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ End With
+ Try
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al obtener el layout de nominas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+
+
+
#Region "IDisposable Support"
' IDisposable
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
diff --git a/App_Code/ClsOC.vb b/App_Code/ClsOC.vb
index a2a007864..628310288 100644
--- a/App_Code/ClsOC.vb
+++ b/App_Code/ClsOC.vb
@@ -33,7 +33,7 @@ Public Class ClsOC
Public Property CveIEAnticipo As Integer
Public Property CveProveedorAnticipo As Integer
Public Property FolioIEAnticipo As Integer
- Public Property ImporteAnticipo As Double
+ Public Property ImporteAnticipo As Decimal
Public Property FolioAdicional As String
Public Property EntregaDirecta As Boolean
@@ -79,16 +79,16 @@ Public Class ClsOC
Public Property RFC As String
Public Property LugarEntrega As String
Public Property Cancelacion As String
- Public Property PorcentajeIVA As Double
+ Public Property PorcentajeIVA As Decimal
Public Property CveCliente As Integer
Public Property CveVendedor As Integer
Public Property PrioridadObservacion As String
- Public Property SubTotal As Double
- Public Property IVA As Double
- Public Property RetIVA As Double
- Public Property RetISR As Double
- Public Property IEPS As Double
- Public Property Total As Double
+ Public Property SubTotal As Decimal
+ Public Property IVA As Decimal
+ Public Property RetIVA As Decimal
+ Public Property RetISR As Decimal
+ Public Property IEPS As Decimal
+ Public Property Total As Decimal
Public Property CvePresupuestoEgreso As Integer
Public Property RequiereCotizacion As Boolean
Public Property CveActivoFijo As Integer
@@ -98,8 +98,8 @@ Public Class ClsOC
Public Property SubProyecto As String
Public Property UsuarioSolicito As String
Public Property UsuarioAutorizo As String
- Public Property Descuento As Double
- Public Property Pendiente As Double
+ Public Property Descuento As Decimal
+ Public Property Pendiente As Decimal
Public Property NombreCliente As String
Public Property SucCalle As String
Public Property SucNoExt As String
@@ -274,7 +274,7 @@ Public Class ClsOC
Extension = Data.Rows(0)("Extension").ToString
Usuario = Data.Rows(0)("Usuario").ToString
Me.CveUsuario = Data.Rows(0)("CveUsuario").ToString.ToEntero
- Me.Total = Data.Rows(0)("Total").ToString.ToDouble
+ Me.Total = Data.Rows(0)("Total").ToString.ToDecimal
Me.CveEmpresa = Data.Rows(0)("CveEmpresa").ToString.ToEntero
@@ -416,7 +416,7 @@ Public Class ClsOC
Return Retorno
End Function
- Public Function AddCotizacionDetalle(pCveCotizacion As Integer, pCvePS As Integer, pPrecioUnitario As Double, pCantidad As Double, pCveUM As Integer, pCantidadSurtir As Double, pFechaEntrega As String, pObservacion As String, pCveOrdenCompraDetalle As Integer) As Boolean
+ Public Function AddCotizacionDetalle(pCveCotizacion As Integer, pCvePS As Integer, pPrecioUnitario As Decimal, pCantidad As Decimal, pCveUM As Integer, pCantidadSurtir As Decimal, pFechaEntrega As String, pObservacion As String, pCveOrdenCompraDetalle As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_CotizacionesDetalleAdd")
@@ -425,9 +425,9 @@ Public Class ClsOC
.Add("@CveCotizacion", SqlDbType.Int).Value = pCveCotizacion
.Add("@CvePS", SqlDbType.Int).Value = pCvePS
.Add("@PU", SqlDbType.Money).Value = pPrecioUnitario
- .Add("@Cantidad", SqlDbType.Float).Value = pCantidad
+ .Add("@Cantidad", SqlDbType.Decimal).Value = pCantidad
.Add("@CveUM", SqlDbType.Int).Value = pCveUM
- .Add("@CantidadSurtir", SqlDbType.Float).Value = pCantidadSurtir
+ .Add("@CantidadSurtir", SqlDbType.Decimal).Value = pCantidadSurtir
.Add("@FechaEntrega", SqlDbType.VarChar).Value = pFechaEntrega
.Add("@Observacion", SqlDbType.VarChar).Value = pObservacion
.Add("@CveOrdenCompraDetalle", SqlDbType.Int).Value = pCveOrdenCompraDetalle
@@ -452,14 +452,14 @@ Public Class ClsOC
Return Retorno
End Function
- Public Function UpdateCotizacionDetalle(pCveCotizacionDetalle As Integer, pPrecioUnitario As Double, pCantidadSurtir As Double, pFechaEntrega As String, pObservacion As String) As Boolean
+ Public Function UpdateCotizacionDetalle(pCveCotizacionDetalle As Integer, pPrecioUnitario As Decimal, pCantidadSurtir As Decimal, pFechaEntrega As String, pObservacion As String) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_CotizacionesDetalleUpdate")
With SqlAdapter.SelectCommand.Parameters
.Add("@PU", SqlDbType.Money).Value = pPrecioUnitario
- .Add("@CantidadSurtir", SqlDbType.Float).Value = pCantidadSurtir
+ .Add("@CantidadSurtir", SqlDbType.Decimal).Value = pCantidadSurtir
.Add("@FechaEntrega", SqlDbType.VarChar).Value = pFechaEntrega
.Add("@Observacion", SqlDbType.VarChar).Value = pObservacion
.Add("@CveCotizacionDetalle", SqlDbType.Int).Value = pCveCotizacionDetalle
@@ -546,107 +546,6 @@ Public Class ClsOC
End Function
#End Region
- 'Public Function GetEstatusCompra(ByVal CveEstatusCompra As Integer, ByVal EstatusCompra As String) As Boolean
- ' Dim Retorno As Boolean = False
-
- ' DataAdapter("PA_OC_EstatusOrdenCompraGet")
- ' Try
- ' SqlAdapter.Fill(Data)
-
- ' If Data.Rows.Count = 1 Then
- ' _CveEstatusCompra = Data.Rows(0)("CveEstatusCompra").ToString().ToEntero()
- ' _EstatusCompra = Data.Rows(0)("EstatusCompra").ToString()
- ' _Estatus = Data.Rows(0)("Estatus").ToString = "True"
- ' _FechaIng = Data.Rows(0)("FechaIng").ToString().ToDate()
- ' _CveUsuario = Data.Rows(0)("CveUsuario").ToString().ToEntero()
- ' _NombreUsuario = Data.Rows(0)("Nombre").ToString()
- ' End If
-
- ' Retorno = True
- ' Catch ex As Exception
- ' OnError("Ocurrió un error al obtener el Catálogo de Estatus de compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- ' End Try
-
- ' Return Retorno
- 'End Function
-
- 'Public Function AddEstatusCompra(ByVal Descripcion As String, Estatus As Boolean, ByVal CveUsuario As Integer) As Boolean
- ' Dim Retorno As Boolean = False
-
- ' DataAdapter("PA_OC_EstatusOrdenCompraAdd")
-
- ' With SqlAdapter.SelectCommand.Parameters
- ' .Add("@EstatusOrdenCompra", SqlDbType.VarChar).Value = Descripcion
- ' .Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
- ' End With
-
- ' Try
- ' SqlAdapter.Fill(Data)
-
- ' Retorno = True
- ' Catch ex As SqlException
- ' If ex.Number = 2627 Then
- ' Alert("La Clave o Descripción del EstatusCompra ya existe.", TipoMensaje.MsgAdvertencia)
- ' Else
- ' OnError("Ocurrió un error al guardar el nuevo estatus de compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- ' End If
- ' Catch ex As Exception
- ' OnError("Ocurrió un error al guardar el nuevo estatus de compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- ' End Try
-
- ' Return Retorno
- 'End Function
-
- 'Public Function UpdateEstatusCompra(ByVal Descripcion As String, Estatus As Boolean, ByVal CveEstatusCompra As Integer, ByVal CveUsuario As Integer) As Boolean
- ' Dim Retorno As Boolean = False
-
- ' DataAdapter("PA_OC_EstatusOrdenCompraUpdate")
-
- ' With SqlAdapter.SelectCommand.Parameters
- ' .Add("@EstatusOrdenCompra", SqlDbType.VarChar).Value = Descripcion
- ' '.Add("@pCveUsuario", SqlDbType.Int).Value = CveUsuario
- ' .Add("@Estatus", SqlDbType.Bit).Value = Estatus
- ' .Add("@CveEstatusOrdenCompra", SqlDbType.Int).Value = CveEstatusCompra
- ' End With
-
- ' Try
- ' SqlAdapter.Fill(Data)
-
- ' Retorno = True
- ' Catch ex As SqlException
- ' If ex.Number = 2627 Then
- ' Alert("La Clave o Descripción del Estatus de Compra ya existe.", TipoMensaje.MsgAdvertencia)
- ' Else
- ' OnError("Ocurrió un error al guardar los cambios en el estatus de compra", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- ' End If
- ' Catch ex As Exception
- ' OnError("Ocurrió un error al guardar los cambios en el estatus de compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- ' End Try
-
- ' Return Retorno
- 'End Function
-
- 'Public Function RemoveEstatusCompra(ByVal CveEstatusCompra As Integer) As Boolean
- ' Dim Retorno As Boolean = False
-
- ' DataAdapter("PA_OC_EstatusOrdenCompraRemove")
-
- ' With SqlAdapter.SelectCommand.Parameters
- ' .Add("@CveEstatusOrdenCompra", SqlDbType.Int).Value = CveEstatusCompra
- ' End With
-
- ' Try
- ' SqlAdapter.Fill(Data)
-
- ' Retorno = True
- ' Catch ex As Exception
- ' OnError("Ocurrió un error al eliminar el estatus de compra.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
- ' End Try
-
- ' Return Retorno
- 'End Function
-
-
#Region "O R D E N E S - D E - C O M P R A S"
Public Function GetOC(ObjOrdenCompra As Modelos.OrdenCompra) As Boolean
@@ -707,7 +606,7 @@ Public Class ClsOC
_Folio = dr("Folio").ToString.ToEntero
_CveIEAnticipo = dr("CveIEAnticipo").ToString.ToEntero
_FolioIEAnticipo = dr("FolioIEAnticipo").ToString.ToEntero
- _ImporteAnticipo = dr("ImporteAnticipo").ToString.ToDouble
+ _ImporteAnticipo = dr("ImporteAnticipo").ToString.ToDecimal
_CveProveedorAnticipo = dr("CveProveedorAnticipo").ToString.ToEntero
_CveEmpresa = dr("CveEmpresa").ToString.ToEntero
_CveProyecto = dr("CveProyecto").ToString.ToEntero
@@ -752,32 +651,15 @@ Public Class ClsOC
Me.SucursalTelefono = If(Not IsDBNull(dr("TelefonoSucursal")), dr("TelefonoSucursal").ToString, "")
ProveedorContacto = dr("ContactoNombre").ToString
- PorcentajeIVA = dr("PorcentajeIVA").ToString.ToDouble
- SubTotal = dr("SubTotal").ToString.ToDouble
- Descuento = dr("Descuento").ToString.ToDouble
- IVA = dr("IVA").ToString.ToDouble
- RetIVA = dr("RetIVA").ToString.ToDouble
- RetISR = dr("RetISR").ToString.ToDouble
- IEPS = dr("IEPS").ToString.ToDouble
- Total = dr("Total").ToString.ToDouble
- Pendiente = dr("Pendiente").ToString.ToDouble
- 'If Not IsDBNull(dr("SubTotal")) Then
- ' SubTotal = dr("SubTotal").ToString.ToDouble
- ' If IVA <= 0 Then
- ' _IVA = _SubTotal * dr("PorcentajeIVA").ToString.ToDouble
- ' End If
- ' _Total = _SubTotal + _IVA - _Descuento - _RetIVA - _RetISR
- 'End If
-
- '_CveSupervisara = dr("CveSupervisara").ToString.ToEntero
- '_CveAutoriza = dr("CveAutoriza").ToString.ToEntero
- '_CveAutorizara = dr("CveAutorizara").ToString.ToEntero
-
- '_NombreSupervisa = dr("NombreSupervisa").ToString
-
- '_NombreAutoriza = dr("NombreAutoriza").ToString
- '_FechaSupervisa = dr("FechaSupervisa").ToString.ToDate
- '_FechaAutoriza = dr("FechaAutoriza").ToString.ToDate
+ PorcentajeIVA = dr("PorcentajeIVA").ToString.ToDecimal
+ SubTotal = dr("SubTotal").ToString.ToDecimal
+ Descuento = dr("Descuento").ToString.ToDecimal
+ IVA = dr("IVA").ToString.ToDecimal
+ RetIVA = dr("RetIVA").ToString.ToDecimal
+ RetISR = dr("RetISR").ToString.ToDecimal
+ IEPS = dr("IEPS").ToString.ToDecimal
+ Total = dr("Total").ToString.ToDecimal
+ Pendiente = dr("Pendiente").ToString.ToDecimal
'RequiereCotizacion = CType(dr("RequiereCotizacion"), Boolean)
SubProyecto = dr("SubProyecto").ToString
@@ -820,9 +702,9 @@ Public Class ClsOC
pFechaEstimadaEntrega As String, pLugarEntrega As String, pCveUsuario As Integer, pCveEmpresa As Integer, pCvePresupuestoEgreso As Integer,
Optional pCveProveedor As Integer = -1, Optional pCveProveedorSucursal As Integer = -1, Optional IDPoliza As Integer = -1, Optional RequiereCotizacion As Boolean = False, Optional CveUsuarioAsignado As Integer = -1,
Optional CveCliente As Integer = -1, Optional CveVendedor As Integer = -1, Optional PrioridadObservacion As String = "",
- Optional PorcentajeIVA As Double = 0.16, Optional IVA As Decimal = 0, Optional RetIVA As Decimal = 0, Optional RetISR As Decimal = 0, Optional FechaExpiracion As Date = Nothing, Optional CveCotizacion As Integer = -1,
+ Optional PorcentajeIVA As Decimal = 0.16, Optional IVA As Decimal = 0, Optional RetIVA As Decimal = 0, Optional RetISR As Decimal = 0, Optional FechaExpiracion As Date = Nothing, Optional CveCotizacion As Integer = -1,
Optional FolioAdicional As String = "", Optional EntregaDirecta As Integer = -1, Optional CveDireccionEnvio As Integer = -1, Optional Guia As String = "-1", Optional IEPS As Decimal = -1,
- Optional CveIEAnticipo As Integer = -1, Optional ImporteAnticipo As Double = 0, Optional UsoCFDI As Integer = -1, Optional Promocion As String = "-1", Optional CveProveedorContacto As Integer = -1) As Boolean
+ Optional CveIEAnticipo As Integer = -1, Optional ImporteAnticipo As Decimal = 0, Optional UsoCFDI As Integer = -1, Optional Promocion As String = "-1", Optional CveProveedorContacto As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_OrdenesCompraAdd")
@@ -971,7 +853,7 @@ Public Class ClsOC
Return Retorno
End Function
- Public Function UpdateOrdenCompraDetalleAjuste(CveOrdenCompra As Integer, CveOrdenCompraDetalle As Integer, Diferencia As Double, CveUsuarioModifico As Integer) As Boolean
+ Public Function UpdateOrdenCompraDetalleAjuste(CveOrdenCompra As Integer, CveOrdenCompraDetalle As Integer, Diferencia As Decimal, CveUsuarioModifico As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_OrdenesCompraDetalleAjusteUpdate")
With SqlAdapter.SelectCommand.Parameters
@@ -1028,7 +910,7 @@ Public Class ClsOC
pCveProveedor As Integer, pCveOrdenCompra As Integer, pCveUsuarioModifico As Integer, Optional CveCliente As Integer = -1, Optional CveVendedor As Integer = -1, Optional PrioridadObservacion As String = "",
Optional IVA As Decimal = 0, Optional RetIVA As Decimal = 0, Optional RetISR As Decimal = 0, Optional IDPoliza As Integer = -1, Optional FechaExpiracion As Date = Nothing, Optional FolioAdicional As String = "",
Optional EntregaDirecta As Integer = -1, Optional CveDireccionEnvio As Integer = -1, Optional Guia As String = "-1", Optional IEPS As Decimal = -1, Optional UsoCFDI As Integer = -1, Optional Promocion As String = "-1",
- Optional pCveProveedorSucursal As Integer = -1, Optional CveProveedorContacto As Integer = -1, Optional PorcentajeIVA As Double = 0.16) As Boolean
+ Optional pCveProveedorSucursal As Integer = -1, Optional CveProveedorContacto As Integer = -1, Optional PorcentajeIVA As Decimal = 0.16) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_OrdenesCompraUpdate")
@@ -1266,18 +1148,18 @@ Public Class ClsOC
Return Retorno
End Function
- Public Function AddOrdenCompraDetalle(pCveOrdenCompra As Integer, pCantidad As Double, pCveUnidadMedida As Integer, pCvePS As Integer, pImporte As Double, pCveSubProyecto As Integer, pCveActivoFijo As Integer,
- pObservacion As String, pCveUsuario As Integer, Optional pCveOrdenCompraPadre As Integer = -1, Optional CvePresupuestoEgreso As Integer = -1, Optional Descuento As Double = 0,
- Optional IEPSPS As Double = 0, Optional IEPSPSIVA As Double = 0, Optional IVA As Double = 0, Optional RetIVA As Double = 0, Optional RetISR As Double = 0, Optional Total As Double = 0,
- Optional CveContratoDetalle As Integer = -1, Optional IVAPorcentaje As Double = 0, Optional RetIVAPorcentaje As Double = 0, Optional RetISRPorcentaje As Double = 0, Optional IEPSPSPorcentaje As Double = 0,
- Optional IEPSPSIVAPorcentaje As Double = 0, Optional CveVentaDetalleCotizacion As Integer = -1, Optional CveTipoGastoObra As Integer = -1, Optional CveCultivoCuadroDetalle As Integer = -1) As Boolean
+ Public Function AddOrdenCompraDetalle(pCveOrdenCompra As Integer, pCantidad As Decimal, pCveUnidadMedida As Integer, pCvePS As Integer, pImporte As Decimal, pCveSubProyecto As Integer, pCveActivoFijo As Integer,
+ pObservacion As String, pCveUsuario As Integer, Optional pCveOrdenCompraPadre As Integer = -1, Optional CvePresupuestoEgreso As Integer = -1, Optional Descuento As Decimal = 0,
+ Optional IEPSPS As Decimal = 0, Optional IEPSPSIVA As Decimal = 0, Optional IVA As Decimal = 0, Optional RetIVA As Decimal = 0, Optional RetISR As Decimal = 0, Optional Total As Decimal = 0,
+ Optional CveContratoDetalle As Integer = -1, Optional IVAPorcentaje As Decimal = 0, Optional RetIVAPorcentaje As Decimal = 0, Optional RetISRPorcentaje As Decimal = 0, Optional IEPSPSPorcentaje As Decimal = 0,
+ Optional IEPSPSIVAPorcentaje As Decimal = 0, Optional CveVentaDetalleCotizacion As Integer = -1, Optional CveTipoGastoObra As Integer = -1, Optional CveCultivoCuadroDetalle As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_OrdenesCompraDetalleAdd")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveOrdenCompra", SqlDbType.Int).Value = pCveOrdenCompra
- .Add("@Cantidad", SqlDbType.Float).Value = pCantidad
- .Add("@Descuento", SqlDbType.Float).Value = Descuento
+ .Add("@Cantidad", SqlDbType.Decimal).Value = pCantidad
+ .Add("@Descuento", SqlDbType.Decimal).Value = Descuento
.Add("@Importe", SqlDbType.Float).Value = pImporte
.Add("@CveUnidadMedida", SqlDbType.Int).Value = pCveUnidadMedida
.Add("@CvePS", SqlDbType.Int).Value = pCvePS
@@ -1290,16 +1172,16 @@ Public Class ClsOC
.Add("@vCveOrdenCompraDetalle", SqlDbType.Int).Direction = ParameterDirection.Output
.Add("@IEPSPS", SqlDbType.Money).Value = IEPSPS
.Add("@IEPSPSIVA", SqlDbType.Money).Value = IEPSPSIVA
- .Add("@IVA", SqlDbType.Float).Value = IVA
- .Add("@RetIVA", SqlDbType.Float).Value = RetIVA
- .Add("@RetISR", SqlDbType.Float).Value = RetISR
- .Add("@Total", SqlDbType.Float).Value = Total
+ .Add("@IVA", SqlDbType.Decimal).Value = IVA
+ .Add("@RetIVA", SqlDbType.Decimal).Value = RetIVA
+ .Add("@RetISR", SqlDbType.Decimal).Value = RetISR
+ .Add("@Total", SqlDbType.Decimal).Value = Total
.Add("@CveContratoDetalle", SqlDbType.Int).Value = CveContratoDetalle
- .Add("@IVAPorcentaje", SqlDbType.Float).Value = IVAPorcentaje
- .Add("@RetIVAPorcentaje", SqlDbType.Float).Value = RetIVAPorcentaje
- .Add("@RetISRPorcentaje", SqlDbType.Float).Value = RetISRPorcentaje
- .Add("@IEPSPSPorcentaje", SqlDbType.Float).Value = IEPSPSPorcentaje
- .Add("@IEPSPSIVAPorcentaje", SqlDbType.Float).Value = IEPSPSIVAPorcentaje
+ .Add("@IVAPorcentaje", SqlDbType.Decimal).Value = IVAPorcentaje
+ .Add("@RetIVAPorcentaje", SqlDbType.Decimal).Value = RetIVAPorcentaje
+ .Add("@RetISRPorcentaje", SqlDbType.Decimal).Value = RetISRPorcentaje
+ .Add("@IEPSPSPorcentaje", SqlDbType.Decimal).Value = IEPSPSPorcentaje
+ .Add("@IEPSPSIVAPorcentaje", SqlDbType.Decimal).Value = IEPSPSIVAPorcentaje
.Add("@CveVentaDetalleCotizacion", SqlDbType.Int).Value = CveVentaDetalleCotizacion
.Add("@CveTipoGastoObra", SqlDbType.Int).Value = CveTipoGastoObra
.Add("@CveCultivoCuadroDetalle", SqlDbType.Int).Value = CveCultivoCuadroDetalle
@@ -1322,11 +1204,11 @@ Public Class ClsOC
Return Retorno
End Function
- Public Function UpdateOrdenCompraDetalle(pCantidad As Double, pCveUnidadMedida As Integer, pCvePS As Integer, pImporte As Double, pCveSubProyecto As Integer, pCveActivoFijo As Integer,
- pObservacion As String, pCveUsuario As Integer, pCveOrdenCompraDetalle As Integer, Optional CvePresupuestoEgreso As Integer = -1, Optional Descuento As Double = 0,
- Optional IEPSPS As Double = 0, Optional IEPSPSIVA As Double = 0, Optional IVA As Double = 0, Optional RetIVA As Double = 0, Optional RetISR As Double = 0, Optional Total As Double = 0,
- Optional CveContratoDetalle As Integer = -1, Optional IVAPorcentaje As Double = 0, Optional RetIVAPorcentaje As Double = 0, Optional RetISRPorcentaje As Double = 0, Optional IEPSPSPorcentaje As Double = 0,
- Optional IEPSPSIVAPorcentaje As Double = 0, Optional CveTipoGastoObra As Integer = -1) As Integer
+ Public Function UpdateOrdenCompraDetalle(pCantidad As Decimal, pCveUnidadMedida As Integer, pCvePS As Integer, pImporte As Decimal, pCveSubProyecto As Integer, pCveActivoFijo As Integer,
+ pObservacion As String, pCveUsuario As Integer, pCveOrdenCompraDetalle As Integer, Optional CvePresupuestoEgreso As Integer = -1, Optional Descuento As Decimal = 0,
+ Optional IEPSPS As Decimal = 0, Optional IEPSPSIVA As Decimal = 0, Optional IVA As Decimal = 0, Optional RetIVA As Decimal = 0, Optional RetISR As Decimal = 0, Optional Total As Decimal = 0,
+ Optional CveContratoDetalle As Integer = -1, Optional IVAPorcentaje As Decimal = 0, Optional RetIVAPorcentaje As Decimal = 0, Optional RetISRPorcentaje As Decimal = 0, Optional IEPSPSPorcentaje As Decimal = 0,
+ Optional IEPSPSIVAPorcentaje As Decimal = 0, Optional CveTipoGastoObra As Integer = -1) As Integer
Dim Retorno As Integer = -1
DataAdapter("PA_OC_OrdenesCompraDetalleUpdate")
@@ -1336,8 +1218,8 @@ Public Class ClsOC
.Add("@Cantidad", SqlDbType.Float).Value = pCantidad
.Add("@CveUnidadMedida", SqlDbType.Int).Value = pCveUnidadMedida
.Add("@CvePS", SqlDbType.Int).Value = pCvePS
- .Add("@Descuento", SqlDbType.Float).Value = Descuento
- .Add("@Importe", SqlDbType.Float).Value = pImporte
+ .Add("@Descuento", SqlDbType.Decimal).Value = Descuento
+ .Add("@Importe", SqlDbType.Decimal).Value = pImporte
.Add("@CveSubProyecto", SqlDbType.Int).Value = pCveSubProyecto
.Add("@CveOrdenCompraDetalle", SqlDbType.Int).Value = pCveOrdenCompraDetalle
.Add("@CveActivoFijo", SqlDbType.Int).Value = pCveActivoFijo
@@ -1346,16 +1228,16 @@ Public Class ClsOC
.Add("@CveUsuario", SqlDbType.Int).Value = pCveUsuario
.Add("@IEPSPS", SqlDbType.Money).Value = IEPSPS
.Add("@IEPSPSIVA", SqlDbType.Money).Value = IEPSPSIVA
- .Add("@IVA", SqlDbType.Float).Value = IVA
- .Add("@RetIVA", SqlDbType.Float).Value = RetIVA
- .Add("@RetISR", SqlDbType.Float).Value = RetISR
- .Add("@Total", SqlDbType.Float).Value = Total
+ .Add("@IVA", SqlDbType.Decimal).Value = IVA
+ .Add("@RetIVA", SqlDbType.Decimal).Value = RetIVA
+ .Add("@RetISR", SqlDbType.Decimal).Value = RetISR
+ .Add("@Total", SqlDbType.Decimal).Value = Total
.Add("@CveContratoDetalle", SqlDbType.Int).Value = CveContratoDetalle
- .Add("@IVAPorcentaje", SqlDbType.Float).Value = IVAPorcentaje
- .Add("@RetIVAPorcentaje", SqlDbType.Float).Value = RetIVAPorcentaje
- .Add("@RetISRPorcentaje", SqlDbType.Float).Value = RetISRPorcentaje
- .Add("@IEPSPSPorcentaje", SqlDbType.Float).Value = IEPSPSPorcentaje
- .Add("@IEPSPSIVAPorcentaje", SqlDbType.Float).Value = IEPSPSIVAPorcentaje
+ .Add("@IVAPorcentaje", SqlDbType.Decimal).Value = IVAPorcentaje
+ .Add("@RetIVAPorcentaje", SqlDbType.Decimal).Value = RetIVAPorcentaje
+ .Add("@RetISRPorcentaje", SqlDbType.Decimal).Value = RetISRPorcentaje
+ .Add("@IEPSPSPorcentaje", SqlDbType.Decimal).Value = IEPSPSPorcentaje
+ .Add("@IEPSPSIVAPorcentaje", SqlDbType.Decimal).Value = IEPSPSIVAPorcentaje
.Add("@CveTipoGastoObra", SqlDbType.Int).Value = CveTipoGastoObra
End With
@@ -2412,7 +2294,7 @@ Public Class ClsOC
Return Retorno
End Function
- Public Function AddSolicitudAnticipo(CveOrdenCompra As Integer, Importe As Double, CveEmpresa As Integer) As Boolean
+ Public Function AddSolicitudAnticipo(CveOrdenCompra As Integer, Importe As Decimal, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_OC_SolicitudAnticipoAdd")
@@ -2496,16 +2378,16 @@ Public Class ClsOC
End Function
#Region " OC DETALLE - SALDOS [ SURTIDO INV | VINCULADO COMP ]"
- Public Function OrdenesCompraDetalleSaldosInvCompraAdd(CveOCDetalle As Integer, CveInvDetalle As Integer, CantidadSurtida As Double, CveCompraDetalle As Integer, CantidadVinculada As Double) As Boolean
+ Public Function OrdenesCompraDetalleSaldosInvCompraAdd(CveOCDetalle As Integer, CveInvDetalle As Integer, CantidadSurtida As Decimal, CveCompraDetalle As Integer, CantidadVinculada As Decimal) As Boolean
Dim Retorno As Boolean = False
DataAdapter("OC_OrdenesCompraDetalleSaldosInvCompraAdd")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveOCDetalle", SqlDbType.Int).Value = CveOCDetalle
.Add("@CveInvDetalle", SqlDbType.Int).Value = CveInvDetalle
- .Add("@CantidadSurtida", SqlDbType.Float).Value = CantidadSurtida
+ .Add("@CantidadSurtida", SqlDbType.Decimal).Value = CantidadSurtida
.Add("@CveCompraDetalle", SqlDbType.Int).Value = CveCompraDetalle
- .Add("@CantidadVinculada", SqlDbType.Float).Value = CantidadVinculada
+ .Add("@CantidadVinculada", SqlDbType.Decimal).Value = CantidadVinculada
End With
Try
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index d1103d1dc..928349284 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -7153,8 +7153,11 @@ Public Class ClsPaginas
'DATOS GENERALES
+ If UsuarioActual.CveEmpresa.Contiene(15) Then
+ params.Add(New ReportParameter("CP", UsuarioActual.Empresa.CP.ToString))
+ End If
+
- 'params.Add(New ReportParameter("CP", UsuarioActual.Empresa.CP.ToString))
params.Add(New ReportParameter("Observaciones", Vta.Observaciones))
params.Add(New ReportParameter("CveVendedor", Vta.CveVendedor.ToString))
params.Add(New ReportParameter("Status", Vta.EstatusFactura))
diff --git a/Ashx/SIGWeb.ashx b/Ashx/SIGWeb.ashx
index 248704414..6a595d10c 100644
--- a/Ashx/SIGWeb.ashx
+++ b/Ashx/SIGWeb.ashx
@@ -761,6 +761,8 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
Dim EsDistribuidor As Integer = IfNull(context.Request("esdistribuidor"), "-1").ToString.ToEntero
+ Dim cveclienteclasificacion = IfNull(context.Request("cveclienteclasificacion"), "-1").ToString.ToEntero
+
Dim usuario As Usuario = UsuarioActual(context)
Dim CveEmpresa As String
If IsNothing(usuario) Then
@@ -772,7 +774,7 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
'sino existe, recarga los datos
If context.Application(AppNombre) Is Nothing Then
Dim ObjClientes As New ClsClientes
- If ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, CveEmpresa, Estatus:=-1) Then
+ If ObjClientes.GetClientes(-1, "-1", "-1", "-1", "-1", "-1", "-1", -1, CveEmpresa, Estatus:=-1, CveClienteClasificacion:=cveclienteclasificacion) Then
context.Application(AppNombre) = ObjClientes.DtResultados
End If
ObjClientes.Dispose()
diff --git a/Bancos/DepositosCaja.aspx b/Bancos/DepositosCaja.aspx
index 959d3de1b..028df676e 100644
--- a/Bancos/DepositosCaja.aspx
+++ b/Bancos/DepositosCaja.aspx
@@ -104,7 +104,8 @@
-
+
+
@@ -281,9 +282,10 @@
+
-
+
@@ -560,8 +562,8 @@
function txtSumaTntermediario(txt) {
var comision2 = ToDouble($('#C_TxtComisionIntermediario').val());
if (comision2 > ValorTotalSeleccionado) {
- $('#C_TxtComisionIntermediario').val(ComisionIntermediario);
- alert("No es posible poner un importe superior a lo seleccionado");
+ //$('#C_TxtComisionIntermediario').val(ComisionIntermediario);
+ //alert("No es posible poner un importe superior a lo seleccionado");
} else {
saldo = ValorTotalSeleccionado - descuento + comision - comision2 - IVA;
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
@@ -653,6 +655,32 @@
ComisionIntermediario = 0;
}
+
+
+ function SelectorNotas(Chk) {
+
+
+ $(`.CssSelector input[type=checkbox]`).each(function () {
+
+ if (Chk.checked) {
+
+ if (! $(this).prop('checked')) {
+ $(this).click();
+ }
+
+
+ } else {
+
+ if ($(this).prop('checked')) {
+ $(this).click();
+ }
+ }
+
+
+ });
+
+ }
+
diff --git a/Bancos/IE.aspx b/Bancos/IE.aspx
index 4ed0fa810..60a92a6c8 100644
--- a/Bancos/IE.aspx
+++ b/Bancos/IE.aspx
@@ -215,6 +215,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb
index 03f75a6a1..eb50c7db8 100644
--- a/Bancos/IE.aspx.vb
+++ b/Bancos/IE.aspx.vb
@@ -843,6 +843,9 @@ Partial Class Bancos_IE
DdlMotivoCancelacion.DataBind()
DdlMotivoCancelacion.Items.Insert(0, New ListItem("Seleccione uno", "-1"))
+ If UsuarioActual.Empresa.UsaAC Then
+ DvFolioACCondiciones.Visible = True
+ End If
End If
End Sub
@@ -861,6 +864,8 @@ Partial Class Bancos_IE
End Try
+
+
CveIEDeposito = ObjIE.DtResultados(0)("CveIEDepositoPadre").ToString.ToEntero
CuentaDepositoPadre = ObjIE.DtResultados(0)("CuentaDepositoPadre").ToString
Cuenta = ObjIE.DtResultados(0)("NumCuenta").ToString
diff --git a/Bancos/RepIngresosPorComprobar.aspx b/Bancos/RepIngresosPorComprobar.aspx
index 3bbaeab4d..f3f6b3b13 100644
--- a/Bancos/RepIngresosPorComprobar.aspx
+++ b/Bancos/RepIngresosPorComprobar.aspx
@@ -32,9 +32,10 @@
Cliente:
-
+ <%--
-
+ --%>
+
F.I.:
diff --git a/Bancos/RepIngresosPorComprobar.aspx.vb b/Bancos/RepIngresosPorComprobar.aspx.vb
index fbafecc6f..ad3c68233 100644
--- a/Bancos/RepIngresosPorComprobar.aspx.vb
+++ b/Bancos/RepIngresosPorComprobar.aspx.vb
@@ -27,8 +27,17 @@ Partial Class Bancos_RepIngresosPorComprobar
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
- 'DdlProveedores.DataSource = GlobalDTCompProveedores(UsuarioActual.CveEmpresa)
- 'DdlProveedores.DataBind()
+
+
+ Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False)
+ If EsWS Then
+ DdlClientes.setEsWebService(True)
+ Else
+ DdlClientes.setEsWebService(False)
+ DdlClientes.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa, -1)
+ DdlClientes.DataBind()
+ DdlClientes.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
+ End If
If UsuarioActual.TienePermisoProceso(91) Then
@@ -58,15 +67,16 @@ Partial Class Bancos_RepIngresosPorComprobar
If txtFechaI.Text <> "" Then FechaI = txtFechaI.Text Else FechaI = "-1"
If txtFechaF.Text <> "" Then FechaF = txtFechaF.Text Else FechaF = "-1"
+ Dim CveCliente As Integer = If(DdlClientes.SelectedValue = "", -1, DdlClientes.SelectedValue.ToEntero)
- If Mov.GetIngresosPorComprobar(FechaI, FechaF, DdlClientes.SelectedValue.ToEntero, DdlUsuarioRegistro.SelectedValue.ToEntero, DdlMoneda.SelectedValue.ToEntero, If(ChkSaldo.Checked, 1, 0), UsuarioActual.CveEmpresa) Then
+ If Mov.GetIngresosPorComprobar(FechaI, FechaF, CveCliente, DdlUsuarioRegistro.SelectedValue.ToEntero, DdlMoneda.SelectedValue.ToEntero, If(ChkSaldo.Checked, 1, 0), UsuarioActual.CveEmpresa) Then
DtDatos = Mov.DtResultados
CargaGrid("")
UPDatos.Update()
End If
- If Mov.GetIngresosAnticiposPorComprobar(FechaI, FechaF, DdlClientes.SelectedValue.ToEntero, DdlUsuarioRegistro.SelectedValue.ToEntero, DdlMoneda.SelectedValue.ToEntero, If(ChkSaldo.Checked, 1, 0), UsuarioActual.CveEmpresa) Then
+ If Mov.GetIngresosAnticiposPorComprobar(FechaI, FechaF, CveCliente, DdlUsuarioRegistro.SelectedValue.ToEntero, DdlMoneda.SelectedValue.ToEntero, If(ChkSaldo.Checked, 1, 0), UsuarioActual.CveEmpresa) Then
DtAnticipos = Mov.DtResultados
CargaGrid("")
UpAnt.Update()
@@ -77,13 +87,26 @@ Partial Class Bancos_RepIngresosPorComprobar
End Sub
Protected Sub BtnCargarProveedores_Click(sender As Object, e As System.EventArgs) Handles BtnCargarClientes.Click
- DdlClientes.CssClass += " select2me"
- DdlClientes.Items.Clear()
- DdlClientes.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa)
- DdlClientes.DataBind()
- DdlClientes.Items.Insert(0, New ListItem("Todos", "-1"))
- DdlClientes.Attributes.Remove("onclick")
+
+ Dim EsWS = If(UsuarioActual.Empresa.Funcionalidad(105) = "1" Or UsuarioActual.Empresa.Funcionalidad(141) = "1", True, False)
+ If EsWS Then
+ DdlClientes.setEsWebService(True)
+ Else
+ DdlClientes.setEsWebService(False)
+ DdlClientes.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa, -1)
+ DdlClientes.DataBind()
+ DdlClientes.ddl.Items.Insert(0, New ListItem("Todos", "-1"))
+ End If
+
+
+ 'DdlClientes.CssClass += " select2me"
+ 'DdlClientes.Items.Clear()
+ 'DdlClientes.DataSource = GlobalDTCliente(UsuarioActual.CveEmpresa)
+
+ 'DdlClientes.DataBind()
+ 'DdlClientes.Items.Insert(0, New ListItem("Todos", "-1"))
+ 'DdlClientes.Attributes.Remove("onclick")
End Sub
diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb
index f3fd68e1b..3c67875f7 100644
--- a/Compras/Compras.aspx.vb
+++ b/Compras/Compras.aspx.vb
@@ -2149,18 +2149,8 @@ Partial Class Compras_Compras
Private Sub CargaRetIVAConcepto(Optional Cambio As Boolean = False)
-
-
-
-
If TrRetIVA.Visible Then
TdRetIVAConcepto.Visible = True
-
-
-
-
-
-
End If
If Cambio Then
@@ -2174,15 +2164,12 @@ Partial Class Compras_Compras
End If
DdlRetIVAConcepto.Items.Add(New ListItem("Arrendamiento", "4"))
-
- 'If UsuarioActual.Empresa.Funcionalidad(577).ToEntero = 1 Then
- DdlRetIVAConcepto.Items.Add(New ListItem("Ret IVA Servicios", "5"))
- 'End If
-
+ ''If UsuarioActual.Empresa.Funcionalidad(577).ToEntero = 1 Then
+ 'DdlRetIVAConcepto.Items.Add(New ListItem("Ret IVA Servicios", "5"))
+ ''End If
End If
-
UpPS.Update()
End Sub
@@ -3380,6 +3367,47 @@ Partial Class Compras_Compras
DdlRetIVAConcepto.SelectedValueExist("2") ' flete pf
DdlRetIVAConcepto.SelectedValueExist("3") ' fletes pm
DdlRetISRConcepto.SelectedValueExist("1") ' honorarios
+ ElseIf ObjProveedor.DIOTCveTipoOperacion = 0 Then
+
+
+ If CveFactura > 0 Then
+
+ If RetIVAOriginal > 0 Then
+ Dim CalRetIVAPor As Decimal = (RetIVAOriginal * 1 / SubTotal2Original).RoundAD(6).ToDecimal
+
+ If (CalRetIVAPor).RoundAD(6) = 0.106667 Then
+ DdlRetIVAConcepto.SelectedValueExist("1") '10.66 servicios profecionales
+ End If
+
+ If (CalRetIVAPor).RoundAD(2) = 0.04 Then '4 Fletes
+
+ If RFCProv.Length = 13 Then
+ DdlRetIVAConcepto.SelectedValueExist("2")
+ Else
+ DdlRetIVAConcepto.SelectedValueExist("3")
+ End If
+
+
+ End If
+
+ End If
+
+ If RetISROriginal > 0 Then
+
+ Dim CalRetISRPor As Decimal = (RetISROriginal * 1 / SubTotal2Original).RoundAD(5).ToDecimal
+
+ If (CalRetISRPor).RoundAD(1) = 0.1 Then '10 Sercviios profecionales
+ DdlRetISRConcepto.SelectedValueExist("1")
+ End If
+
+ If (CalRetISRPor).RoundAD(4) = 0.0125 Then '1.25 Recico regimen simplificado confianza
+ DdlRetISRConcepto.SelectedValueExist("3")
+ End If
+
+ End If
+
+ End If
+
End If
LbAgregar.Enabled = True
@@ -5219,7 +5247,7 @@ Partial Class Compras_Compras
'QUEMA SALDOS DE INV-COMPRA | MERCANCIA RECIBIDA POR ADELANTADO (OC) | PP 176
If OCVinculada And Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") And Not UsuarioActual.Empresa.Funcionalidad(126) = "1" Then
For Each Row As DataRow In TmpDT.FiltraParametros("CveTipoPS = 2").Rows
- If Not ObjOC.OrdenesCompraDetalleSaldosInvCompraAdd(Row("CveOrdenCompraDetalle").ToString.ToEntero, -1, -1, Row("CveCompraDetalle").ToString.ToEntero, Row("Cantidad").ToString.ToDouble) Then
+ If Not ObjOC.OrdenesCompraDetalleSaldosInvCompraAdd(Row("CveOrdenCompraDetalle").ToString.ToEntero, -1, -1, Row("CveCompraDetalle").ToString.ToEntero, Row("Cantidad").ToString.ToDecimal) Then
ErrorSaldosInvComp = True
Exit For
End If
@@ -10775,7 +10803,7 @@ Partial Class Compras_Compras
'End If
'AGREGA MOVIMIENTO
- If importeMovimiento <> 0 Then
+ If importeMovimiento <> 0 AndAlso Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
Concepto = $"{NombreProveedor} {TxtSerie.Text} - {TxtFolio.Text}"
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, 6, Concepto, FechaMovimiento, IdCtaContable, IdSegmentoNegocio, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveIE:=CveIE, CveCreditoDetalle:=CveCreditoDetalle, CveClasificacion:=Row2("CveClasificacion").ToString.ToEntero, CveSubProyecto:=Row2("CveSubProyecto").ToString.ToEntero, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveTipoGasto:=Row2("CveTipoGasto").ToString.ToEntero) Then
ErrorPrepoliza = True
diff --git a/Compras/PopUpVerFactura.aspx.vb b/Compras/PopUpVerFactura.aspx.vb
index 6a96df63a..e18d8db03 100644
--- a/Compras/PopUpVerFactura.aspx.vb
+++ b/Compras/PopUpVerFactura.aspx.vb
@@ -205,9 +205,13 @@ Partial Class PopUpVerFactura
If Request("onlyPrint").ToString() = "PalletCaja" Then
imprimirpallet(Request("CvePallet").ToString.ToEntero())
End If
+
If Request("onlyPrint").ToString() = "manifiesto" Then
imprimirManifiesto(Request("cveEmbarqueManifiesto").ToString.ToEntero())
End If
+ If Request("onlyPrint").ToString() = "manifiestoRemision" Then
+ imprimirManifiestoRemision(Request("cveEmbarqueManifiesto").ToString.ToEntero())
+ End If
End If
End If
@@ -330,6 +334,150 @@ Partial Class PopUpVerFactura
'"D:\\ADSistemas\\Proyectos\\SIG\\SIGIT\\GPS\\PalletEtiqueta.rdlc"
ImprimirPDF("GPS/EmbarqueManifiesto.rdlc", lrds, params, "Manifesto")
End Sub
+
+
+ Private Sub imprimirManifiestoRemisionRemision(cveEmbarqueManifiesto As Integer)
+ Dim NoEmbarque As String = ""
+ Dim Fecha As String = ""
+ Dim SubProyecto As String = ""
+ Dim AgenciaAduanalUSA As String = ""
+ Dim AgenciaAduanalMEX As String = ""
+ Dim Temperatura As String = ""
+ Dim Hora As String = ""
+ Dim Chofer As String = ""
+ Dim CamPlaca As String = ""
+ Dim Camion As String = ""
+ Dim Rem1Placa As String = ""
+ Dim Remolque1 As String = ""
+ Dim NoPallets As String = ""
+ Dim NoBultos As String = ""
+ Dim NoKgManifiesto As String = ""
+ Dim Mercado As String = ""
+ Dim NoFactura As String = ""
+ Dim DivisoresdeCarton As String = ""
+ Dim BolsasdePlastico As String = ""
+ Dim TapaderasdeCarton As String = ""
+ Dim CAJASDECARTON As String = ""
+ Dim RPC As String = ""
+ Dim BINSDECARTON As String = ""
+ Dim TotalDlls As String = ""
+
+
+
+ Dim LongitudCaja As String = ""
+ Dim LineaTransportacion As String = ""
+ Dim SCAC As String = ""
+ Dim CAAT As String = ""
+ Dim NumeroTrailer As String = ""
+
+
+ Dim tablaReporte As New DataTable
+
+ 'Envase = "1 1/9"
+ 'Tamano = "Small"
+ 'Cultivo = "Tomate"
+ 'noPallet = "000001"
+ 'Variedad = "Golden"
+ Using objnom As New ClsNominas
+ If objnom.PA_AGRO_Embarque_ManifiestoGet(-1, -1, -1, cveEmbarqueManifiesto) And objnom.DtResultados.Rows.Count > 0 Then
+ Dim row As DataRow = objnom.DtResultados.Rows(0)
+ NoEmbarque = row("NoEmbarque").ToString()
+ Fecha = String.Format("{0:dd/MM/yyyy}", row("Fecha"))
+ DivisoresdeCarton = String.Format("{0:N0}", row("DivisoresdeCarton"))
+ BolsasdePlastico = String.Format("{0:N0}", row("BolsasdePlastico"))
+ TapaderasdeCarton = String.Format("{0:N0}", row("TapaderasdeCarton"))
+ CAJASDECARTON = String.Format("{0:N0}", row("CAJASDECARTON"))
+ RPC = String.Format("{0:N0}", row("RPC"))
+ BINSDECARTON = String.Format("{0:N0}", row("BINSDECARTON"))
+
+
+
+ SubProyecto = row("SubProyecto").ToString()
+ AgenciaAduanalUSA = row("AgenciaAduanalUSA").ToString()
+ AgenciaAduanalMEX = row("AgenciaAduanalMEX").ToString()
+ Temperatura = row("Temperatura").ToString()
+ Hora = String.Format("{0:hh }:{0:mm }:{0:ss tt}:", row("FechaIng"))
+ Chofer = row("Chofer").ToString()
+ CamPlaca = row("CamPlaca").ToString()
+ Camion = String.Format("{0} {1}", row("CamEspecificacion"), row("CamAnio"))
+ Rem1Placa = row("Rem1Placa").ToString()
+ NoFactura = row("NoFactura").ToString()
+ Remolque1 = String.Format("{0} ", row("NumeroTrailer"), row("Rem1Anio"))
+ Mercado = If(row("CveDestino").ToString() = "2", "Extranjero", "Nacional")
+
+ NumeroTrailer = String.Format("No. {0}", row("NumeroTrailer").ToString())
+
+ LongitudCaja = row("LongitudCaja").ToString()
+ LineaTransportacion = row("LineaTransportacion").ToString()
+ SCAC = row("SCAC").ToString()
+ CAAT = row("CAAT").ToString()
+
+ 'If row("CveCamionRemolque1").ToString() = "1" Then
+ ' Rem1Placa = "12-TF-5E"
+ ' Remolque1 = "Remolque 1"
+ 'Else
+ ' Rem1Placa = "15-TF-7f"
+ ' Remolque1 = "Remolque 2"
+
+ 'End If
+
+ If objnom.PA_Agro_Embarque_PalletGet(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, cveEmbarqueManifiesto, -1) And objnom.DtResultados.Rows.Count > 0 Then
+ NoPallets = objnom.DtResultados.Rows.Count.ToString()
+ NoKgManifiesto = objnom.DtResultados.SUM("Peso").ToString("N2")
+ NoBultos = objnom.DtResultados.SUM("NoCajas").ToString("N0")
+ tablaReporte = objnom.DtResultados
+ End If
+ End If
+ 'Remolque 1 12-TF-5E' }, { cveCamion: 2, placa: 'Remolque 2 15-TF-7f
+ End Using
+ Dim params As New List(Of ReportParameter)
+ params.Add(New ReportParameter("NoEmbarque", NoEmbarque))
+ params.Add(New ReportParameter("Fecha", Fecha))
+ params.Add(New ReportParameter("SubProyecto", SubProyecto))
+ params.Add(New ReportParameter("AgenciaAduanalUSA", AgenciaAduanalUSA))
+ params.Add(New ReportParameter("AgenciaAduanalMEX", AgenciaAduanalMEX))
+ params.Add(New ReportParameter("Temperatura", Temperatura))
+ params.Add(New ReportParameter("Hora", Hora))
+ params.Add(New ReportParameter("Chofer", Chofer))
+ params.Add(New ReportParameter("CamPlaca", CamPlaca))
+ params.Add(New ReportParameter("Camion", Camion))
+ params.Add(New ReportParameter("Rem1Placa", Rem1Placa))
+ params.Add(New ReportParameter("Remolque1", Remolque1))
+
+
+ params.Add(New ReportParameter("LongitudCaja", LongitudCaja))
+ params.Add(New ReportParameter("LineaTransportacion", LineaTransportacion))
+ params.Add(New ReportParameter("SCAC", SCAC))
+ params.Add(New ReportParameter("CAAT", CAAT))
+ params.Add(New ReportParameter("NumeroTrailer", NumeroTrailer))
+
+
+ params.Add(New ReportParameter("NoFactura", NoFactura))
+ params.Add(New ReportParameter("Mercado", Mercado))
+ params.Add(New ReportParameter("NoBultos", NoBultos))
+ params.Add(New ReportParameter("NoPallets", NoPallets))
+ params.Add(New ReportParameter("NoKgManifiesto", NoKgManifiesto))
+
+
+ params.Add(New ReportParameter("DivisoresdeCarton", DivisoresdeCarton))
+ params.Add(New ReportParameter("BolsasdePlastico", BolsasdePlastico))
+ params.Add(New ReportParameter("TapaderasdeCarton", TapaderasdeCarton))
+ params.Add(New ReportParameter("CAJASDECARTON", CAJASDECARTON))
+ params.Add(New ReportParameter("RPC", RPC))
+ params.Add(New ReportParameter("BINSDECARTON", BINSDECARTON))
+ params.Add(New ReportParameter("TotalDlls", TotalDlls))
+
+
+
+
+
+ Dim lrds As New List(Of ReportDataSource)
+ Dim rds As New ReportDataSource With {.Name = "DataSet1", .Value = tablaReporte}
+ lrds.Add(rds)
+ '"Empresas/Grales/Formatos/EquiposGPS.rdlc"
+ '"D:\\ADSistemas\\Proyectos\\SIG\\SIGIT\\GPS\\PalletEtiqueta.rdlc"
+ ImprimirPDF("GPS/EmbarqueManifiestoRemision.rdlc", lrds, params, "Manifesto")
+ End Sub
Private Sub imprimirpallet2(cvePallet As Integer)
Dim Envase As String = ""
Dim Tamano As String = ""
diff --git a/Compras/RepCxPPeriodo.aspx b/Compras/RepCxPPeriodo.aspx
index 397894da3..0f4881bb5 100644
--- a/Compras/RepCxPPeriodo.aspx
+++ b/Compras/RepCxPPeriodo.aspx
@@ -48,9 +48,7 @@
Proveedor:
-
-
-
+
Clasificación:
@@ -126,6 +124,16 @@
+
Tipo Docto:
+
+
+
+
+
+
+
+
+
diff --git a/Compras/RepCxPPeriodo.aspx.cs b/Compras/RepCxPPeriodo.aspx.cs
index 5b9f2a458..49054ae32 100644
--- a/Compras/RepCxPPeriodo.aspx.cs
+++ b/Compras/RepCxPPeriodo.aspx.cs
@@ -44,8 +44,28 @@ public partial class Compras_RepCxPPeriodo : ClsPaginas
TipoCambio = 1;
TCEspecifico = -1;
- DdlProveedor.DataSource = get_GlobalDTCompProveedores(UsuarioActual.CveEmpresa);
- DdlProveedor.DataBind();
+
+
+
+ //DdlProveedor.DataSource = get_GlobalDTCompProveedores(UsuarioActual.CveEmpresa);
+ //DdlProveedor.DataBind();
+
+
+
+ if (UsuarioActual.Empresa.Funcionalidad(105) == "1") {
+ DdlProveedor.setEsWebService(true);
+ DdlProveedor.Attributes.Add("data-metodo", "getproveedores");
+ DdlProveedor.SelectedText = "Todos";
+ DdlProveedor.SelectedValue = "-1";
+ }
+ else {
+ DdlProveedor.setEsWebService(false);
+ DdlProveedor.ddl.DataSource = get_GlobalDTCompProveedores(UsuarioActual.CveEmpresa);
+ DdlProveedor.ddl.DataBind();
+ DdlProveedor.ddl.Items.Insert(0, new ListItem("Todos", "-1"));
+ }
+
+
DdlUsuarioResponsable.DataSource = GlobalDTUsuarioResponsable.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}").FiltraParametros("ProveedoresResponsables > 0");
DdlUsuarioResponsable.DataBind();
@@ -72,10 +92,16 @@ public partial class Compras_RepCxPPeriodo : ClsPaginas
{
if (RblTipoCambio.SelectedValue.ToEntero() == 3 && TxtEspecifico.Text != "") { TCEspecifico = TxtEspecifico.Text.ToDouble(); } else { TCEspecifico = -1; }
+
+ int CveProveedor = DdlProveedor.SelectedValue.ToEntero() > 0 ? DdlProveedor.SelectedValue.ToEntero() : -1;
+
+ string TipoDocto = (DdlTipoDocto.GetSelectedValuesM() == "") ? "-1" : DdlTipoDocto.GetSelectedValuesM();
+
ClsMovimientos ObjMov = new ClsMovimientos();
- if (ObjMov.GetCxPPeriodo(DdlProveedor.SelectedValue.ToEntero(),DdlSubProyecto.SelectedValue.ToEntero(),DdlProveedoresClasificaciones.SelectedValue.ToEntero(),
+ if (ObjMov.GetCxPPeriodo(CveProveedor, DdlSubProyecto.SelectedValue.ToEntero(),DdlProveedoresClasificaciones.SelectedValue.ToEntero(),
DdlUsuarioResponsable.SelectedValue.ToEntero(),DdlUsuarioRegistro.SelectedValue.ToEntero(),DdlEstatusCompra.SelectedValue.ToEntero(),UsuarioActual.CveEmpresa,
- DdlGrupo.SelectedValue.ToEntero(),DdlSubProyecto.SelectedValue.ToEntero(),TipoCambio,TCEspecifico,txtCorteA.Text.ToDate(),UsuarioActual.CveUsuario,DdlTipoProveedor.SelectedValue.ToEntero()))
+ DdlGrupo.SelectedValue.ToEntero(),DdlSubProyecto.SelectedValue.ToEntero(),TipoCambio,TCEspecifico,txtCorteA.Text.ToDate(),UsuarioActual.CveUsuario,
+ DdlTipoProveedor.SelectedValue.ToEntero(), TipoDocto: TipoDocto))
{
GvDatos.DataSource = ObjMov.DtResultados;
DtDatos = ObjMov.DtResultados;
@@ -234,7 +260,7 @@ public partial class Compras_RepCxPPeriodo : ClsPaginas
if (DdlGrupo.SelectedValue != "-1")
StrFiltro.AppendFormat(" Grupo: {0}", DdlGrupo.SelectedItem.Text);
if (DdlProveedor.SelectedValue != "-1")
- StrFiltro.AppendFormat(" Proveedor: {0}", DdlProveedor.SelectedItem.Text);
+ StrFiltro.AppendFormat(" Proveedor: {0}", DdlProveedor.ddl.SelectedItem.Text);
if (DdlProveedoresClasificaciones.SelectedValue != "-1")
StrFiltro.AppendFormat(" Clasificación Proveedor: {0}", DdlProveedoresClasificaciones.SelectedItem.Text);
if (DdlTipoProveedor.SelectedValue != "-1")
diff --git a/Compras/eFacturas.aspx.vb b/Compras/eFacturas.aspx.vb
index bb3a00671..ca77c2250 100644
--- a/Compras/eFacturas.aspx.vb
+++ b/Compras/eFacturas.aspx.vb
@@ -1581,7 +1581,10 @@ Partial Class Compras_eFacturas
swTiempo.AppendFormat("espera: ({0}) {1} ", sw.ElapsedMilliseconds - swmili, sw.ElapsedMilliseconds)
swmili = sw.ElapsedMilliseconds
sw.Start()
- VerificaCorreo(True)
+
+ If VerificaCorreo(True) Then
+ CargaDatos()
+ End If
sw.Stop()
swTiempo.AppendFormat("Verifica En la app: ({0}) {1} ", sw.ElapsedMilliseconds - swmili, sw.ElapsedMilliseconds)
@@ -1695,6 +1698,9 @@ Partial Class Compras_eFacturas
RegistraScript(String.Format("$('#{0}').modal('hide');", "ModalFacturas"))
+
+
+ asdasd
'Alert(String.Format("Se cargaron {0} Facturas", Arreglo.Count), TipoMensaje.MsgInformacion)
End Sub
@@ -2847,6 +2853,37 @@ Partial Class Compras_eFacturas
Dim Archivo As String = String.Format("{0}Compras\{1}\{2}", UsuarioActual.Empresa.Ruta, gvRow.DataKey("RFCDe"), gvRow.DataKey("XML"))
Dim Prefijo As String = ""
+
+
+
+
+ Dim DTDocumentosRelacionados As New DataTable
+ DTDocumentosRelacionados.Columns.Add("Serie")
+ DTDocumentosRelacionados.Columns.Add("SerieFolio")
+
+ DTDocumentosRelacionados.Columns.Add("IdDocumento")
+ DTDocumentosRelacionados.Columns.Add("Folio", GetType(Integer))
+ DTDocumentosRelacionados.Columns.Add("MonedaDR")
+ DTDocumentosRelacionados.Columns.Add("MetodoDePagoDR")
+ DTDocumentosRelacionados.Columns.Add("ImpPagado", GetType(Decimal))
+
+ DTDocumentosRelacionados.Columns.Add("CveFactura", GetType(Integer))
+ DTDocumentosRelacionados.Columns.Add("CveCompra", GetType(Integer))
+ DTDocumentosRelacionados.Columns.Add("CveIE", GetType(Integer))
+ DTDocumentosRelacionados.Columns.Add("Fecha", GetType(Date))
+
+ DTDocumentosRelacionados.Columns.Add("FolioPago")
+ DTDocumentosRelacionados.Columns.Add("ImportePago", GetType(Decimal))
+ DTDocumentosRelacionados.Columns.Add("FechaPago", GetType(Date))
+ DTDocumentosRelacionados.Columns.Add("CveMetodoPago", GetType(Integer))
+ DTDocumentosRelacionados.Columns.Add("SerieFolioCompra")
+ DTDocumentosRelacionados.Columns.Add("CvePrePolizaDetalle", GetType(Integer))
+
+ DTDocumentosRelacionados.Columns.Add("Tipo", GetType(String))
+ DTDocumentosRelacionados.Columns.Add("Manual", GetType(Boolean))
+
+
+
If IO.File.Exists(Archivo) Then
@@ -2913,30 +2950,7 @@ Partial Class Compras_eFacturas
UUIDPago = ValorXML(nodeTFD, "UUID")
LblUUID.Text = UUIDPago
- Dim DTDocumentosRelacionados As New DataTable
- DTDocumentosRelacionados.Columns.Add("Serie")
- DTDocumentosRelacionados.Columns.Add("SerieFolio")
- DTDocumentosRelacionados.Columns.Add("IdDocumento")
- DTDocumentosRelacionados.Columns.Add("Folio", GetType(Integer))
- DTDocumentosRelacionados.Columns.Add("MonedaDR")
- DTDocumentosRelacionados.Columns.Add("MetodoDePagoDR")
- DTDocumentosRelacionados.Columns.Add("ImpPagado", GetType(Decimal))
-
- DTDocumentosRelacionados.Columns.Add("CveFactura", GetType(Integer))
- DTDocumentosRelacionados.Columns.Add("CveCompra", GetType(Integer))
- DTDocumentosRelacionados.Columns.Add("CveIE", GetType(Integer))
- DTDocumentosRelacionados.Columns.Add("Fecha", GetType(Date))
-
- DTDocumentosRelacionados.Columns.Add("FolioPago")
- DTDocumentosRelacionados.Columns.Add("ImportePago", GetType(Decimal))
- DTDocumentosRelacionados.Columns.Add("FechaPago", GetType(Date))
- DTDocumentosRelacionados.Columns.Add("CveMetodoPago", GetType(Integer))
- DTDocumentosRelacionados.Columns.Add("SerieFolioCompra")
- DTDocumentosRelacionados.Columns.Add("CvePrePolizaDetalle", GetType(Integer))
-
- DTDocumentosRelacionados.Columns.Add("Tipo", GetType(String))
- DTDocumentosRelacionados.Columns.Add("Manual", GetType(Boolean))
Dim nodePagosN As XmlNodeList
@@ -3140,7 +3154,9 @@ Partial Class Compras_eFacturas
'saco la información de lo vinculado en el ie
- ImporteIES = ObjCompras.DtResultados.FiltraParametros("CveIE > 0").SUM("Importe")
+ 'ImporteIES = ObjCompras.DtResultados.FiltraParametros("CveIE > 0").SUM("Importe")
+ ImporteIES = DTDocumentosRelacionados.FiltraParametros("CveIE > 0").SUM("ImportePago")
+
DiferenciaImportes = Monto - ImporteIES
ObjCompras.Dispose()
diff --git a/Contabilidad/RegPrePolizaS.aspx.vb b/Contabilidad/RegPrePolizaS.aspx.vb
index 44944955e..bbb576de3 100644
--- a/Contabilidad/RegPrePolizaS.aspx.vb
+++ b/Contabilidad/RegPrePolizaS.aspx.vb
@@ -1164,38 +1164,38 @@ Partial Class ContabilidadC_RegPrePolizaS
If MsgError = "" Then
- 'MENSAJE IE
+ 'MENSAJE IE
- 'If CveIE Then
- ' Alert(MensajeAlert.ToString, ModExtensiones.TipoMensaje.MsgInformacion, "window.location.reload()")
- 'Else
- ' Alert(If(MensajeAlert.ToString = "", "Se registro con exito.", MensajeAlert.ToString), TipoMensaje.MsgInformacion, "window.location.reload()")
- 'End If
+ 'If CveIE Then
+ ' Alert(MensajeAlert.ToString, ModExtensiones.TipoMensaje.MsgInformacion, "window.location.reload()")
+ 'Else
+ ' Alert(If(MensajeAlert.ToString = "", "Se registro con exito.", MensajeAlert.ToString), TipoMensaje.MsgInformacion, "window.location.reload()")
+ 'End If
- Alert(If(MensajeAlert.ToString = "", $"Se registro con exito {If(FolioPoliza > 0, " Folio " & FolioPoliza & ".", "")}", $"Se registro con exito {If(FolioPoliza > 0, " Folio " & FolioPoliza & ".", "")} " & MensajeAlert.ToString), TipoMensaje.MsgInformacion, $"window.location.href=""./RegPrePolizaS.aspx?CvePrePoliza={CvePrePolizaInsertada}""")
+ Alert(If(MensajeAlert.ToString = "", $"Se registro con exito {If(FolioPoliza > 0, " Folio " & FolioPoliza & ".", "")}", $"Se registro con exito {If(FolioPoliza > 0, " Folio " & FolioPoliza & ".", "")} " & MensajeAlert.ToString), TipoMensaje.MsgInformacion, $"window.location.href=""./RegPrePolizaS.aspx?CvePrePoliza={CvePrePolizaInsertada}""")
- ObjIE.Commit()
- If Conta IsNot Nothing Then Conta.Commit()
+ ObjIE.Commit()
+ If Conta IsNot Nothing Then Conta.Commit()
- UPPDocumento.Update()
+ UPPDocumento.Update()
- TxtConcepto.Text = ""
- 'GvMov.DataBind()
- DdlPlantilla_SelectedIndexChanged(Nothing, Nothing)
+ TxtConcepto.Text = ""
+ 'GvMov.DataBind()
+ DdlPlantilla_SelectedIndexChanged(Nothing, Nothing)
- TxtFechaDocumento.Text = ""
+ TxtFechaDocumento.Text = ""
- Else
- Alert(MsgError.ToString, ModExtensiones.TipoMensaje.MsgError)
- ObjIE.RollBack()
- If Conta IsNot Nothing Then Conta.RollBack()
- End If
-
- ObjIE.Dispose()
- ObjMov.Dispose()
- If Conta IsNot Nothing Then Conta.Dispose()
+ Else
+ Alert(MsgError.ToString, ModExtensiones.TipoMensaje.MsgError)
+ ObjIE.RollBack()
+ If Conta IsNot Nothing Then Conta.RollBack()
End If
+
+ ObjIE.Dispose()
+ ObjMov.Dispose()
+ If Conta IsNot Nothing Then Conta.Dispose()
+ End If
End Sub
Private Sub ActualizarPrePoliza()
@@ -1297,6 +1297,7 @@ Partial Class ContabilidadC_RegPrePolizaS
Dim Cargo As Double = GvPrePoliza.Rows(IndiceGrid).FCLiteral("TxtCargo").Text.ToDouble
Dim Abono As Double = GvPrePoliza.Rows(IndiceGrid).FCLiteral("TxtAbono").Text.ToDouble
Dim PorcentajeImpuesto As Double = GvPrePoliza.Rows(IndiceGrid).DataKey("PorcentajeImpuesto").ToEntero
+ Dim CveClasificacion As Integer = GvPrePoliza.Rows(IndiceGrid).DataKey("CveClasificacion").ToEntero
'CargaConceptosContablesE()
'CargaModalConceptoCuentas()
@@ -1338,6 +1339,9 @@ Partial Class ContabilidadC_RegPrePolizaS
End If
DdlVentasE.SelectedValueExist(CveVenta)
+ If CveClasificacion > 0 Then
+ DdlClasificacionesE.SelectedValue = CveClasificacion
+ End If
TxtConceptoE.Text = Concepto
TxtReferenciaE.Text = Referencia
diff --git a/Contabilidad/RepBalanzaComprobacion.aspx b/Contabilidad/RepBalanzaComprobacion.aspx
index 9d91861d0..5986fd478 100644
--- a/Contabilidad/RepBalanzaComprobacion.aspx
+++ b/Contabilidad/RepBalanzaComprobacion.aspx
@@ -3,16 +3,28 @@
-
- Exporta Excel
- <%-- --%>
-
-
- Imprimir
- <%-- --%>
-
-
+
+
+
+
+
+ Exporta Excel
+ <%-- --%>
+
+
+ Imprimir
+ <%-- --%>
+
+
+
+
+
+
+
+
+
+
Balanza de Comprobación
diff --git a/Contabilidad/RepBalanzaComprobacion.aspx.vb b/Contabilidad/RepBalanzaComprobacion.aspx.vb
index 04f9191b3..f9bbddfb3 100644
--- a/Contabilidad/RepBalanzaComprobacion.aspx.vb
+++ b/Contabilidad/RepBalanzaComprobacion.aspx.vb
@@ -228,10 +228,15 @@ Partial Class Contabilidad_RepBalanzaComprobacion
GenerarPDFCrystal("EXCEL")
End Sub
Private Sub GenerarPDFCrystal(Optional Formato As String = "PDF")
- Dim Archivo As New System.IO.FileInfo(String.Format("{0}Contabilidad/Reportes/RepBalanzaComprobacion.rpt", UsuarioActual.Empresa.Ruta))
+ Dim Archivo As New System.IO.FileInfo(String.Format("{0}Contabilidad/Reportes/RepBalanzaComprobacion.rpt", Server.MapPath("~")))
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
+ 'If UsuarioActual.CveUsuario = 100 Then
+ ' Alert(String.Format("{0}Contabilidad/Reportes/RepBalanzaComprobacion.rpt", Server.MapPath("~")))
+ ' End If
+ ' Exit Sub
+
If Not IsNothing(DtDatos) Then
'Dim dr As DataRow = DtCxC.Rows(0)
Dim lista = New List(Of CrystalParametro)
@@ -245,7 +250,9 @@ Partial Class Contabilidad_RepBalanzaComprobacion
lista.Add(New CrystalParametro("pImg", ""))
End If
- ImprimirbytesPDF(ImprimirPDFCrystal(Server.MapPath("~/Contabilidad/Reportes/RepBalanzaComprobacion.rpt"), DtDatos, lista, "Balanza de Comprobación", Formato), "Balanza de Comprobación", Formato)
+ Dim DTTemp As DataTable = DtDatos.Copy
+
+ ImprimirbytesPDF(ImprimirPDFCrystal(Server.MapPath("~/Contabilidad/Reportes/RepBalanzaComprobacion.rpt"), DTTemp, lista, "Balanza de Comprobación", Formato), "Balanza de Comprobación", Formato)
Else
Alert("No se tienen registrados movimientos", TipoMensaje.MsgAdvertencia)
diff --git a/Contabilidad/Reportes/RepBalanzaComprobacion.rpt b/Contabilidad/Reportes/RepBalanzaComprobacion.rpt
index 2b98edb34..b9c06261a 100644
Binary files a/Contabilidad/Reportes/RepBalanzaComprobacion.rpt and b/Contabilidad/Reportes/RepBalanzaComprobacion.rpt differ
diff --git a/CxC/RepCxCPeriodo.aspx b/CxC/RepCxCPeriodo.aspx
index e210ecc1b..a7089fb86 100644
--- a/CxC/RepCxCPeriodo.aspx
+++ b/CxC/RepCxCPeriodo.aspx
@@ -117,7 +117,8 @@
-
+
+