Errores de impresion
This commit is contained in:
@@ -33,7 +33,7 @@ Partial Class PopUpVerFactura
|
||||
End Property
|
||||
Public Property DtDetalle() As DataTable
|
||||
Get
|
||||
Return CType(ViewState("DtDetalle"), DataTable)
|
||||
Return DirectCast(IfNull(ViewState("DtDetalle"), New DataTable, ViewState("DtDetalle")), DataTable)
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
ViewState("DtDetalle") = value
|
||||
@@ -807,7 +807,7 @@ Partial Class PopUpVerFactura
|
||||
DtCortesVentasResumen = ObjVenta.DtResultados
|
||||
|
||||
End If
|
||||
If ObjPuntoVenta.GetCortesDetalleVentas(CveCorte, UsuarioActual.CveEmpresa) Then
|
||||
If ObjPuntoVenta.GetCortesDetalleVentas(CveCorte, -1, UsuarioActual.CveEmpresa) Then
|
||||
DtCortesVentas = ObjPuntoVenta.DtResultados
|
||||
If DtCortesVentas.Rows.Count > 0 Then
|
||||
Dim RowInfo As DataRow = DtCortesVentas.FiltroPrimero("CveVenta > 0")
|
||||
@@ -5031,7 +5031,7 @@ Partial Class PopUpVerFactura
|
||||
params.Add(New ReportParameter("MsgError", ""))
|
||||
params.Add(New ReportParameter("FechaCancelacion", FechaCancelacion.ToString("dd/MM/yyyy HH:mm:ss")))
|
||||
|
||||
ImprimirPDF(Archivo.FullName, DtDetalle, params, "AcuseCancelacion" & CveVenta)
|
||||
ImprimirPDF(Archivo.FullName, New DataTable(), params, "AcuseCancelacion" & CveVenta)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user