diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index 13350f597..8058e13d5 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -2636,13 +2636,20 @@ Public Class ClsVentas
-#Region "Firmas"
-
- Public Function GetVentasRelacionadas(CveVenta As Integer, CveEmpresa As Integer) As Boolean
+#Region "Relacionadas"
+ '''
+ '''
+ '''
+ '''
+ '''
+ ''' 1. Relacion de Padres, 2. Relacion sobre hijos
+ '''
+ Public Function GetVentasRelacionadas(CveVenta As Integer, CveEmpresa As Integer, Optional TipoRelacion As Integer = 1) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_VentasRelacionadasGet")
With SqlAdapter.SelectCommand.Parameters
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
+ .Add("@TipoRelacion", SqlDbType.Int).Value = TipoRelacion
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
End With
Try