--FIX depositos e impresiones en cortes
This commit is contained in:
@@ -1586,19 +1586,7 @@ Partial Class PopUpVerFactura
|
||||
DtCortesVentasResumen = DsDatos.Tables(1)
|
||||
End If
|
||||
End If
|
||||
' If ObjVenta.GetCortesDetalleVentasResumen(CveCorte, CveSubProyecto, UsuarioActual.CveEmpresa) Then
|
||||
' DtCortesVentasResumen = ObjVenta.DtResultados.Copy()
|
||||
'End If
|
||||
|
||||
'If ObjPuntoVenta.GetCortesDetalleVentas(CveCorte, CveSubProyecto, UsuarioActual.CveEmpresa, OpcionDetallado) Then
|
||||
' DtCortesVentas = ObjPuntoVenta.DtResultados.Copy()
|
||||
' If DtCortesVentas.Rows.Count > 0 Then
|
||||
' Dim RowInfo As DataRow = DtCortesVentas.FiltroPrimero("CveVenta > 0")
|
||||
|
||||
' Fecha = RowInfo("FechaInicial").ToString
|
||||
' Nombre = RowInfo("Nombre").ToString
|
||||
' End If
|
||||
'End If
|
||||
|
||||
If DtCortesVentas.Rows.Count > 0 Then
|
||||
Dim RowInfo As DataRow = DtCortesVentas.FiltroPrimero("CveVenta > 0")
|
||||
@@ -1611,21 +1599,23 @@ Partial Class PopUpVerFactura
|
||||
End If
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(109) = "1" OrElse UsuarioActual.CveEmpresa = 197 Then
|
||||
If ObjVenta.GetVta_ReporteCortes(UsuarioActual.CveEmpresa, FechaConsulta, FechaConsulta, CveSubProyecto, CveCorte:=CveCorte) Then
|
||||
If ConsultaPorSucursal Then
|
||||
If ConsultaPorSucursal Then
|
||||
If ObjVenta.GetVta_ReporteCortes(UsuarioActual.CveEmpresa, FechaConsulta, FechaConsulta, CveSubProyecto) Then
|
||||
DtReporteCorte = ObjVenta.DtResultados.FiltraParametros("FechaInicial IS NOT NULL")
|
||||
Fecha = FechaConsulta.ToString("dd/MM/yyyy")
|
||||
Else
|
||||
End If
|
||||
Else
|
||||
If ObjVenta.GetVta_ReporteCortes(UsuarioActual.CveEmpresa, MinFecha, MaxFecha, CveSubProyecto, CveCorte:=CveCorte) Then
|
||||
DtReporteCorte = ObjVenta.DtResultados.FiltraParametros("CveCorte > 0")
|
||||
Fecha = DtReporteCorte.FiltroPrimeroValor("FechaInicial", "")
|
||||
End If
|
||||
End If
|
||||
|
||||
If ObjVenta.GetVta_MovimientosCajas(CveCorte, -1) Then
|
||||
If ObjVenta.GetVta_MovimientosCajas(CveCorte, -1, CveSubProyecto:=CveSubProyecto, FechaConsulta:=FechaConsulta) Then
|
||||
DtIngresosRetiros = ObjVenta.DtResultados.Copy()
|
||||
End If
|
||||
|
||||
If Not UsuarioActual.CveEmpresa.Contiene(140, 141) AndAlso ObjVenta.GetCortesDetalleDepositosCaja(CveCorte, CveSubProyecto, UsuarioActual.CveEmpresa) Then
|
||||
If Not UsuarioActual.CveEmpresa.Contiene(140, 141) AndAlso ObjVenta.GetCortesDetalleDepositosCaja(CveCorte, CveSubProyecto, UsuarioActual.CveEmpresa, FechaConsulta:=FechaConsulta) Then
|
||||
DtDepositos = ObjVenta.DtResultados.Copy()
|
||||
End If
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user