diff --git a/Empresas/72/Formatos/Reembolso.rdlc b/Empresas/72/Formatos/Reembolso.rdlc
index 91c6883b3..e761b4240 100644
--- a/Empresas/72/Formatos/Reembolso.rdlc
+++ b/Empresas/72/Formatos/Reembolso.rdlc
@@ -1376,7 +1376,7 @@
11.24353in
- 4.88309cm
+ 5.51809cm
true
true
@@ -1789,6 +1789,92 @@
2pt
+
+ true
+ true
+
+
+
+
+ Fecha Inicio:
+
+
+
+ =Parameters!FechaInicio.Value
+
+
+
+
+
+
+ Textbox23
+ 4.85106cm
+ 0.127cm
+ 0.49417cm
+ 7.15118cm
+ 12
+
+ =Microsoft.VisualBasic.Interaction.IIF(Microsoft.VisualBasic.Strings.Len(Parameters!FechaInicio.Value) > 0 And Microsoft.VisualBasic.Strings.Len(Parameters!FechaFin.Value) > 0, True, False)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Fecha Fin:
+
+
+
+ =Parameters!FechaFin.Value
+
+
+
+
+
+
+ Textbox23
+ 4.85106cm
+ 7.27818cm
+ 0.49417cm
+ 7.15118cm
+ 13
+
+ =Microsoft.VisualBasic.Interaction.IIF(Microsoft.VisualBasic.Strings.Len(Parameters!FechaInicio.Value) > 0 And Microsoft.VisualBasic.Strings.Len(Parameters!FechaFin.Value) > 0, True, False)
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+ =Parameters!FechaInicio.Value
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Fecha Fin:
+
+
+
+ =Parameters!FechaFin.Value
+
+
+
+
+
+
+ Textbox23
+ 4.4021cm
+ 7.27818cm
+ 0.49417cm
+ 7.15118cm
+ 13
+
+ =IIF(Len(Parameters!FechaInicio.Value) > 0 and Len(Parameters!FechaFin.Value) > 0,TRUE,FALSE)
+
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index f0f39809c..362fa1fca 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -9426,15 +9426,20 @@ Partial Class Ventas
If factura.TipoDocto.Contiene("Dev", "Egs") Or DtVentasNC IsNot Nothing Then
If DtVentasNC IsNot Nothing Then
For Each row As DataRow In DtVentasNC.Rows
- If Not ObjVentas.AddVentasRelacionadas(ObjVentas.CveVenta, row("CveVenta").ToString.ToEntero) Then
- ErrorList.Add("Ocurrió un error al relacionar las ventas entre si comuníquese a Soporte Técnico")
+ If Not row("CveVenta").ToString.ToEntero = -1 Then
+ If Not ObjVentas.AddVentasRelacionadas(ObjVentas.CveVenta, row("CveVenta").ToString.ToEntero) Then
+ ErrorList.Add("Ocurrió un error al relacionar las ventas entre si comuníquese a Soporte Técnico")
+ End If
End If
Next
Else
- If Not ObjVentas.AddVentasRelacionadas(ObjVentas.CveVenta, CveVenta) Then
- ErrorList.Add("Ocurrió un error al relacionar las ventas entre si comuníquese a Soporte Técnico")
+ If Not CveVenta = -1 Then
+ If Not ObjVentas.AddVentasRelacionadas(ObjVentas.CveVenta, CveVenta) Then
+ ErrorList.Add("Ocurrió un error al relacionar las ventas entre si comuníquese a Soporte Técnico")
+ End If
End If
End If
+
End If
End If