From fdaf1688d89259085ff37e1ad6586d9c93fb78c0 Mon Sep 17 00:00:00 2001 From: rakcsle Date: Sat, 25 Jan 2025 14:08:46 -0700 Subject: [PATCH] 8 Validaciones de corte --- App_Code/ClsPuntoVenta.vb | 28 +++++++++++++++++++---- Ventas/PVCobranza.aspx | 47 +++++++++++++++++++++++++++++++++++++++ Ventas/PVCobranza.aspx.vb | 2 +- 3 files changed, 72 insertions(+), 5 deletions(-) diff --git a/App_Code/ClsPuntoVenta.vb b/App_Code/ClsPuntoVenta.vb index 729fc7426..a0d04f707 100644 --- a/App_Code/ClsPuntoVenta.vb +++ b/App_Code/ClsPuntoVenta.vb @@ -400,11 +400,31 @@ Public Class ClsPuntoVenta End Try Return Retorno - End Function + End Function + + Public Function GetVta_EstadoCajas(CveCuenta As Integer, CveEmpresa As Integer, FechaInicio As Date, FechaFin As Date) As Boolean + Dim Retorno As Boolean = False + DataAdapter("PA_Vta_VentasEstadoCajasGet") + + SqlAdapter.SelectCommand.Parameters.Add("@CveCuenta", SqlDbType.Int).Value = CveCuenta + SqlAdapter.SelectCommand.Parameters.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + SqlAdapter.SelectCommand.Parameters.Add("@FechaInicio", SqlDbType.Date).Value = FechaInicio + SqlAdapter.SelectCommand.Parameters.Add("@FechaFin", SqlDbType.Date).Value = FechaFin + + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch ex As Exception + OnError("Ocurrió un error al obtener los Cortes del Punto de Venta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End Try + + Return Retorno + End Function + #Region "IDisposable Support" - - - ' IDisposable + + + ' IDisposable Protected Overridable Sub Dispose(disposing As Boolean) If Not Me.disposedValue Then If disposing Then diff --git a/Ventas/PVCobranza.aspx b/Ventas/PVCobranza.aspx index 8283ede90..730699f32 100644 --- a/Ventas/PVCobranza.aspx +++ b/Ventas/PVCobranza.aspx @@ -203,6 +203,9 @@
  • Cobros en Transcurso
  • +
  • + Ver estados de las cajas +
  • @@ -1325,6 +1328,50 @@ + + + + + + + +