diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index 34e8e1235..f5d08a7ca 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -3976,7 +3976,7 @@ Public Class ClsVentas
#Region " U S A D O S "
- Public Function AddVentaUsado(CveVenta As Integer, CvePS As Integer, Cantidad As Decimal, PU As Decimal) As Boolean
+ Public Function AddVentaUsado(CveVenta As Integer, CvePS As Integer, Cantidad As Decimal, PU As Decimal, Optional CveBCI As Integer = -1, Optional CveModeloAuto As Integer = -1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_VentasUsadosAdd", CommandType.StoredProcedure)
@@ -3986,6 +3986,8 @@ Public Class ClsVentas
.Add("@CvePS", SqlDbType.Int).Value = CvePS
.Add("@Cantidad", SqlDbType.Float).Value = Cantidad
.Add("@PU", SqlDbType.Money).Value = PU
+ .Add("@CveBCI", SqlDbType.Int).Value = CveBCI
+ .Add("@CveModeloAuto", SqlDbType.Int).Value = CveModeloAuto
End With
Try
diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb
index cf6f124e3..026c334aa 100644
--- a/App_Code/Modelos.vb
+++ b/App_Code/Modelos.vb
@@ -1808,7 +1808,7 @@ Namespace Modelos
If TipoDocto.Contiene("Rem") Then
If DtRecepcionUsados IsNot Nothing Then
For Each drow As DataRow In DtRecepcionUsados.Rows
- If Not ObjVentas.AddVentaUsado(CveVenta, drow("CvePS").ToString.ToEntero, drow("Cantidad").ToString.ToDecimal, drow("PU").ToString.ToDecimal) Then
+ If Not ObjVentas.AddVentaUsado(CveVenta, drow("CvePS").ToString.ToEntero, drow("Cantidad").ToString.ToDecimal, drow("PU").ToString.ToDecimal, drow("CveBCIUsado").ToString.ToEntero, drow("CveModeloAuto").ToString.ToEntero) Then
Resultado = False
Exit For
End If
diff --git a/Ventas/PV.aspx b/Ventas/PV.aspx
index e30c6fe9b..6255bb30d 100644
--- a/Ventas/PV.aspx
+++ b/Ventas/PV.aspx
@@ -2675,7 +2675,7 @@
-
+<%--