GDiaz - 2024.08.09, Compras registro 68 con descuento

This commit is contained in:
rakcsle
2024-08-15 10:36:20 -07:00
parent bc8f5f75d3
commit 551c6fbab5
8 changed files with 62259 additions and 16 deletions

View File

@@ -1266,7 +1266,7 @@
<asp:UpdatePanel ID="UpInv" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvInv" runat="server" DataKeyNames="Total,PU,Cantidad,CvePS" AutoGenerateColumns="false" GridLines="None" EmptyDataText="Aun no hay registros."
<asp:GridView ID="GvInv" runat="server" DataKeyNames="Total,PU,Cantidad,CvePS,Descuento" AutoGenerateColumns="false" GridLines="None" EmptyDataText="Aun no hay registros."
ShowHeaderWhenEmpty="True" CssClass="table table-striped table-hover Widthall mysmallbtn" Visible="false">
<Columns>
<asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
@@ -1340,7 +1340,7 @@
<ItemTemplate>
<asp:DropDownList runat="server" ID="Ddlnewps" DataTextField="PSCodigo" DataValueField="CvePS" CssClass="form-control input-sm select2me" Width="100%"></asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>--%>
</asp:TemplateField>--%>
</Columns>
</asp:GridView>

View File

@@ -6430,7 +6430,8 @@ Partial Class Compras_Compras
For Each gvRowInv As GridViewRow In GvInv.Rows
Dim gvCantidad As Decimal = gvRowInv.FCTextBox("TbCantidad").Text.ToDecimal
Dim gvPU As Decimal = gvRowInv.DataKey("PU").ToDecimal
ImpPrepoliza = ImpPrepoliza + (gvCantidad * gvPU)
Dim gvDescuento As Decimal = gvRowInv.DataKey("PU").ToDecimal
ImpPrepoliza = (ImpPrepoliza + (gvCantidad * gvPU)) - gvDescuento
Next
ImpPrepolizaMN = ImpPrepoliza * tipoCambioActual * Multiplicador