From 8db21330ae804ef6b14a50825c759ee3a594cfa0 Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Mon, 23 Dec 2019 14:43:22 -0700 Subject: [PATCH] se agrego un contador de series --- Ventas/Ventas.aspx | 24 +++++++++++++----------- Ventas/Ventas.aspx.vb | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx index ab26b65a5..30bad6dd9 100644 --- a/Ventas/Ventas.aspx +++ b/Ventas/Ventas.aspx @@ -5337,7 +5337,7 @@ - +
@@ -5347,6 +5347,9 @@ + + Series total: 0 + @@ -7544,8 +7547,7 @@ } var ValidarRNC = false; - function AplicarValidarRNC(Valor) - { + function AplicarValidarRNC(Valor) { ValidarRNC = Valor; } function CompararNC() { @@ -7565,16 +7567,16 @@ document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.color = "#ff0000"; document.getElementById('<%= TxtNCImporte.ClientID %>').style.color = "#ff0000"; } - } - } - - function CerrarModalRemNC() { - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { - AplicarValidarRNC(true); - CompararNC(); } - $('#ModalAplicarRemisionesNC').modal('hide'); } + function CerrarModalRemNC() { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { + AplicarValidarRNC(true); + CompararNC(); + } + $('#ModalAplicarRemisionesNC').modal('hide'); + } + diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index dc97f5068..85e6d39d2 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -19513,7 +19513,7 @@ Partial Class Ventas GvSerie.DataSource = DtContratosSerieDetalle.FiltraParametros(String.Format("ConsecId = {0}", CveConsecSerieLote), "Consec DESC") GvSerie.DataBind() - + lblSerieTotal.Text = GvSerie.Rows.Count.ToString 'VALIDA QUE SIGA AGREGANDO If DtContratosSerieDetalle.FiltraParametros(String.Format("ConsecId = {0}", CveConsecSerieLote)).Rows.Count = LbCantidad.Text.ToEntero And LimitaCantidadSerieLote = 1 Then BtnAgregarPS.Enabled = False