--Cambios en clientes abonar
This commit is contained in:
@@ -50,6 +50,7 @@
|
|||||||
table.adssigscroll tbody, table.adssigscroll thead {
|
table.adssigscroll tbody, table.adssigscroll thead {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.adssigscroll tr {
|
table.adssigscroll tr {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
}
|
}
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
background-color: inherit; /* Para que no se superponga con otros elementos */
|
background-color: inherit; /* Para que no se superponga con otros elementos */
|
||||||
z-index: 4; /* Asegura que esté sobre otros elementos */
|
z-index: 4; /* Asegura que esté sobre otros elementos */
|
||||||
}
|
}
|
||||||
|
|
||||||
table.adssigscroll tr:nth-child(1) th:nth-child(1), table.adssigscroll tr:nth-child(1) th:nth-child(2) {
|
table.adssigscroll tr:nth-child(1) th:nth-child(1), table.adssigscroll tr:nth-child(1) th:nth-child(2) {
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
@@ -225,22 +227,25 @@
|
|||||||
<asp:ListItem Selected="true" Value="Imp" Text="Importe Fijo" />
|
<asp:ListItem Selected="true" Value="Imp" Text="Importe Fijo" />
|
||||||
<asp:ListItem Value="Por" Text="Porcentaje" />
|
<asp:ListItem Value="Por" Text="Porcentaje" />
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
|
<asp:HiddenField ID="HdnTipo" runat="server" ClientIDMode="Static" Value="1" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-3">
|
||||||
<div runat="Server" id="ImporteFijo" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
<div runat="Server" id="ImporteFijo" class="form-group form-md-line-input input-iconright" style="width: 100%">
|
||||||
<asp:TextBox ID="TxtImporte" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtImporte" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtImporte" FilterType="Numbers, Custom" ValidChars="." />
|
<ajax:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxtImporte" FilterType="Numbers, Custom" ValidChars="." />
|
||||||
<label for="<%= TxtImporte.ClientID.ToString()%>">Importe Nuevo:</label>
|
<label for="<%= TxtImporte.ClientID.ToString()%>">
|
||||||
<i>$</i>
|
<asp:Literal ID="LtlImporte" runat="server" Text="Precio nuevo:"></asp:Literal></label>
|
||||||
|
<i>
|
||||||
|
<asp:Literal ID="LtlSimbolo" runat="server" Text="$"></asp:Literal></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<a class="btn btn-default" onclick="CambiaImporte();">Aplicar Importe</a>
|
<a class="btn btn-default" onclick="CambiaImporte();">Aplicar</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row" style="display: none;">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div runat="Server" id="Div1" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
<div runat="Server" id="Div1" class="form-group form-md-line-input input-iconright" style="width: 50%">
|
||||||
<asp:TextBox ID="TxtPrecio" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtPrecio" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
@@ -254,15 +259,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-12" style="display: flex; justify-content: center;">
|
||||||
<div class="form-group form-md-line-input input-iconright" >
|
|
||||||
|
|
||||||
<asp:TextBox ID="TxtPorcentaje" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
||||||
<ajax:FilteredTextBoxExtender ID="FTBSerie" runat="server" TargetControlID="TxtPorcentaje" FilterType="Numbers, Custom" ValidChars=".,-" />
|
|
||||||
<label for="<%= TxtPorcentaje.ClientID.ToString()%>">Porcentaje Nuevo:</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 text-right">
|
|
||||||
<asp:LinkButton ID="BtnGuardar" runat="server" AlternateText="Actualizar" CausesValidation="True" CssClass="btn btn-primary" Text="Actualizar Seleccionadas" ValidationGroup="GrpGuardar" />
|
<asp:LinkButton ID="BtnGuardar" runat="server" AlternateText="Actualizar" CausesValidation="True" CssClass="btn btn-primary" Text="Actualizar Seleccionadas" ValidationGroup="GrpGuardar" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -301,7 +298,7 @@
|
|||||||
<asp:BoundField DataField="Clasificacion" ItemStyle-Width="15%" HeaderText="Clasificación" />
|
<asp:BoundField DataField="Clasificacion" ItemStyle-Width="15%" HeaderText="Clasificación" />
|
||||||
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="Importe" ItemStyle-HorizontalAlign="Right">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtPrecio" runat="server" Text='<%# Eval("PrecioLista", "{0:0.00####}")%>' style="text-align:right;" CssClass="CssCamviaPrecio" MaxLength="39" Width="90px" onkeypress="return onlyNumberKey(event)"></asp:TextBox>
|
<asp:TextBox ID="TxtPrecio" runat="server" Text='<%# Eval("PrecioLista", "{0:0.00####}")%>' Style="text-align: right;" CssClass="CssCamviaPrecio" MaxLength="39" Width="90px" onkeypress="return onlyNumberKey(event)"></asp:TextBox>
|
||||||
<br />
|
<br />
|
||||||
<asp:Label ID="LtlPrecio" runat="server" Text='<%# Eval("PrecioLista", "$ {0:#,##0.00####}")%>' Font-Italic="true" Font-Size="8pt"></asp:Label>
|
<asp:Label ID="LtlPrecio" runat="server" Text='<%# Eval("PrecioLista", "$ {0:#,##0.00####}")%>' Font-Italic="true" Font-Size="8pt"></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -365,7 +362,9 @@
|
|||||||
Producto/Servicio
|
Producto/Servicio
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<div style="width:350px"><asp:Label ID="LblPS" runat="server" Text='<%# Eval("CodigoPS") %>' ></asp:Label></div>
|
<div style="width: 350px">
|
||||||
|
<asp:Label ID="LblPS" runat="server" Text='<%# Eval("CodigoPS") %>'></asp:Label>
|
||||||
|
</div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
<asp:TemplateField Visible="false" ItemStyle-Width="100px">
|
||||||
@@ -899,14 +898,27 @@
|
|||||||
|
|
||||||
for (var i = 0; i < checks.length; i++) {
|
for (var i = 0; i < checks.length; i++) {
|
||||||
if (checks[i].type == "checkbox") {
|
if (checks[i].type == "checkbox") {
|
||||||
debugger;
|
|
||||||
|
|
||||||
if (checks[i].checked) {
|
if (checks[i].checked) {
|
||||||
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '')
|
idd = checks[i].id.replace('C_GVPrecios_chkPS_', '');
|
||||||
if ($get('C_GVPrecios_TxtPrecio_' + idd) != null) {
|
if ($get('C_GVPrecios_TxtPrecio_' + idd) != null) {
|
||||||
|
let tipo = $get('HdnTipo').value;
|
||||||
|
|
||||||
|
//ASIGNAR PRECIO NUEVO
|
||||||
|
if (tipo == '1') {
|
||||||
$get('C_GVPrecios_TxtPrecio_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
$get('C_GVPrecios_TxtPrecio_' + idd).value = FormatoNumero(ToDouble(valor), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//AUMENTAR PRECIO POR PORCENTAJE
|
||||||
|
if (tipo == '2') {
|
||||||
|
let precioActual = ToDouble($get('C_GVPrecios_LtlPrecio_' + idd).innerText.replace(" ", "").replace("$", "").replace(",",""));
|
||||||
|
|
||||||
|
let precioNuevo = ToDouble(((valor / 100) * precioActual) + precioActual)
|
||||||
|
$get('C_GVPrecios_TxtPrecio_' + idd).value = FormatoNumero(precioNuevo, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -333,21 +333,25 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub RblTipo_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub RblTipo_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
If RblTipo.SelectedValue = "Imp" Then
|
If RblTipo.SelectedValue = "Imp" Then
|
||||||
ImporteFijo.Visible = True
|
LtlImporte.Text = "Precio nuevo:"
|
||||||
|
LtlSimbolo.Text = "$"
|
||||||
|
HdnTipo.Value = "1"
|
||||||
Else
|
Else
|
||||||
ImporteFijo.Visible = False
|
LtlImporte.Text = "Porcentaje a incrementar:"
|
||||||
|
LtlSimbolo.Text = "%"
|
||||||
|
HdnTipo.Value = "2"
|
||||||
End If
|
End If
|
||||||
UPPrecioLista.Update()
|
UPPrecioLista.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs) Handles BtnGuardar.Click
|
||||||
If RblTipo.SelectedIndex = 1 And TxtPorcentaje.Text.ToDecimal = 0 Then
|
'If RblTipo.SelectedIndex = 1 And TxtPorcentaje.Text.ToDecimal = 0 Then
|
||||||
Alert("Se debe de especificar un porcentaje.", TipoMensaje.MsgAdvertencia)
|
' Alert("Se debe de especificar un porcentaje.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
' Exit Sub
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Dim TieneError As Boolean = False
|
Dim TieneError As Boolean = False
|
||||||
'Dim Importe As Decimal = If(TxtImporte.Text = "", -1, TxtImporte.Text.ToDecimal)
|
'Dim Importe As Decimal = If(TxtImporte.Text = "", -1, TxtImporte.Text.ToDecimal)
|
||||||
Dim Porcentaje As Decimal = If(TxtPorcentaje.Text = "", -1, TxtPorcentaje.Text.ToDecimal)
|
Dim Porcentaje As Decimal = -1 ' If(TxtPorcentaje.Text = "", -1, TxtPorcentaje.Text.ToDecimal)
|
||||||
Dim MensajeAlert As New StringBuilder
|
Dim MensajeAlert As New StringBuilder
|
||||||
Dim sbProductos As New StringBuilder
|
Dim sbProductos As New StringBuilder
|
||||||
|
|
||||||
@@ -356,7 +360,7 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
Try
|
Try
|
||||||
For Each row As GridViewRow In GVPrecios.Rows
|
For Each row As GridViewRow In GVPrecios.Rows
|
||||||
If row.FCCheckBox("chkPS").Checked Then
|
If row.FCCheckBox("chkPS").Checked Then
|
||||||
TieneError = Not ObjPS.UpdatePSPreciosLista(row.FCTextBox("TxtPrecio").Text.ToDecimal, DdlPrecioLista.SelectedValue.ToEntero, Porcentaje, row.DataKey("CvePS").ToEntero, UsuarioActual.CveUsuario, NowADS(), If(RblTipo.SelectedValue = "Imp", True, False), PrecioMinimo:=row.FCTextBox("TxtPrecioMinimo").Text.ToDecimal)
|
TieneError = Not ObjPS.UpdatePSPreciosLista(row.FCTextBox("TxtPrecio").Text.ToDecimal, DdlPrecioLista.SelectedValue.ToEntero, Porcentaje, row.DataKey("CvePS").ToEntero, UsuarioActual.CveUsuario, NowADS(), True, PrecioMinimo:=row.FCTextBox("TxtPrecioMinimo").Text.ToDecimal)
|
||||||
If CBool(row.DataKey("ProductoExhibicion")) Then
|
If CBool(row.DataKey("ProductoExhibicion")) Then
|
||||||
sbProductos.AppendFormat("{0},", row.DataKey("CvePS").ToEntero)
|
sbProductos.AppendFormat("{0},", row.DataKey("CvePS").ToEntero)
|
||||||
End If
|
End If
|
||||||
@@ -396,7 +400,7 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
RegistraScript("$('#divAgregar').modal('hide')")
|
RegistraScript("$('#divAgregar').modal('hide')")
|
||||||
TxtImporte.Text = ""
|
TxtImporte.Text = ""
|
||||||
TxtPrecio.Text = ""
|
TxtPrecio.Text = ""
|
||||||
TxtPorcentaje.Text = ""
|
'TxtPorcentaje.Text = ""
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "MODAL PRECIOS MINIMOS"
|
#Region "MODAL PRECIOS MINIMOS"
|
||||||
@@ -679,7 +683,7 @@ Partial Class Ventas_ActualizarPrecios
|
|||||||
Dim StrMsgError As New StringBuilder
|
Dim StrMsgError As New StringBuilder
|
||||||
If FranquiciasStr <> "" Then
|
If FranquiciasStr <> "" Then
|
||||||
Dim Franquicias As String() = FranquiciasStr.Split(","c)
|
Dim Franquicias As String() = FranquiciasStr.Split(","c)
|
||||||
Dim Porcentaje As Decimal = If(TxtPorcentaje.Text = "", -1, TxtPorcentaje.Text.ToDecimal)
|
Dim Porcentaje As Decimal = -1 ' If(TxtPorcentaje.Text = "", -1, TxtPorcentaje.Text.ToDecimal)
|
||||||
|
|
||||||
For Each Franquicia As String In Franquicias
|
For Each Franquicia As String In Franquicias
|
||||||
Dim CveFranquicia As Integer = Franquicia.ToEntero
|
Dim CveFranquicia As Integer = Franquicia.ToEntero
|
||||||
|
|||||||
Reference in New Issue
Block a user