GDiaz - 2024.08.09, Compras registro 68 con descuento
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user