diff --git a/App_Code/ClsVentas.vb b/App_Code/ClsVentas.vb
index abc48596e..0673bb5c0 100644
--- a/App_Code/ClsVentas.vb
+++ b/App_Code/ClsVentas.vb
@@ -6322,7 +6322,7 @@ Public Class ClsVentas
End Function
- Public Function GetLineasAdicionalesVencimientos(CveCliente As Integer, TipoLinea As Integer, FechaInicio As Date, FechaFin As Date, CveMoneda As Integer, CveEmpresa As Integer) As Boolean
+ Public Function GetLineasAdicionalesVencimientos(CveCliente As Integer, TipoLinea As Integer, FechaInicio As Date, FechaFin As Date, CveMoneda As Integer, CveSubProyecto As Integer, CveEmpresa As Integer) As Boolean
Dim Retorno As Boolean = False
DataAdapter("PA_Vta_LineasAdicionalesVencimientosGet")
@@ -6332,6 +6332,7 @@ Public Class ClsVentas
.Add("@FechaFin", SqlDbType.Date).Value = FechaFin
.Add("@TipoLinea", SqlDbType.Int).Value = TipoLinea
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
+ .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
End With
Try
diff --git a/Ventas/Clientes.aspx b/Ventas/Clientes.aspx
index ef7407d92..15d088193 100644
--- a/Ventas/Clientes.aspx
+++ b/Ventas/Clientes.aspx
@@ -1736,11 +1736,12 @@
- Parametros
+ Crédito
+
-
-
+
+
@@ -1836,7 +1837,7 @@
-
+
@@ -1864,6 +1865,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -1937,6 +1948,14 @@
+
+
+
+
+
+
+
+
@@ -4632,20 +4651,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
" style="display: inline-block; margin-right: -20px; width: 150px;" />
diff --git a/Ventas/Clientes.aspx.vb b/Ventas/Clientes.aspx.vb
index 814cd34a5..661750fb4 100644
--- a/Ventas/Clientes.aspx.vb
+++ b/Ventas/Clientes.aspx.vb
@@ -919,7 +919,9 @@ Partial Class Clientes
CargaCombosLineasAdicionales()
TabLineasAdicionales.Visible = True
LnkAgregarLineaAdicional.Visible = True
- GetLineasAdicionales()
+ GetLineasAdicionales()
+ divQuebranto1.Visible = True
+ divQuebranto2.Visible = True
End If
If UsuarioActual.Empresa.Funcionalidad(109) <> "1" Then
@@ -1689,8 +1691,6 @@ Partial Class Clientes
'Horario
TxtHorario.Text = ObjClientes.Horario
-
-
TxtObsDiasRevision.Text = ObjClientes.ObservacionRevision
TxtReferenciaFiscal.Text = ObjClientes.ReferenciaFiscal
TxtCelular.Text = ObjClientes.Celular
@@ -1705,6 +1705,9 @@ Partial Class Clientes
ChkEnDemanda.Checked = ObjClientes.EnDemanda
TxtNombreFirmas.Text = ObjClientes.CreditoRegistroFirmas
+ If ObjClientes.EnQuebranto Then LblAlertaQuebranto.Text = "En Quebranto"
+ If ObjClientes.EnDemanda Then LblAlertaQuebranto.Text &= "En Demanda"
+
'7eleven
TxtProveedor.Text = ObjClientes.SevenEleven_NumProveedor
@@ -1851,6 +1854,23 @@ Partial Class Clientes
GvCxCHistorial.DataSource = dt.AsEnumerable().Take(22).CopyToDataTable()
End If
Retorno = True
+ If UsuarioActual.CveEmpresa.Contiene(119, 158) Then
+ Dim tdtt As DataTable = DtCxCActivas.FiltraParametros("DiasVencidos > 0")
+ If tdtt.Rows.Count > 0 Then
+ Dim tstr As String = "Facturas con vencimiento: "
+ Dim tdtsaldo As DataTable = tdtt.FiltraParametros("CveMoneda = 1")
+ If tdtsaldo.Rows.Count > 0 Then
+ tstr &= tdtt.Rows.Count & $" - ${tdtsaldo.SUM("Saldo").FormatoNumero} Pesos. "
+ End If
+ tdtsaldo = tdtt.FiltraParametros("CveMoneda = 2")
+ If tdtsaldo.Rows.Count > 0 Then
+ tstr &= tdtsaldo.Rows.Count & $" - ${tdtsaldo.SUM("Saldo").FormatoNumero} Dólares. "
+ End If
+
+ Alert(tstr, TipoMensaje.MsgAdvertencia)
+ End If
+ End If
+
Else
GvCxC.DataSource = Nothing
DtCxCActivas = Nothing
diff --git a/Ventas/RepVencimientosCredito.aspx b/Ventas/RepVencimientosCredito.aspx
index c29f49f8f..3322ead8b 100644
--- a/Ventas/RepVencimientosCredito.aspx
+++ b/Ventas/RepVencimientosCredito.aspx
@@ -82,9 +82,11 @@
-
+
+