- sugiera la forma de pago, según la venta
This commit is contained in:
@@ -292,10 +292,10 @@
|
|||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" Width="100%"
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" Width="100%"
|
||||||
EmptyDataText="No se encontraron Ventas con los filtros especificados" data-sort="true" ToolTip="Listado de Ventas"
|
EmptyDataText="No se encontraron Ventas con los filtros especificados" data-sort="true" ToolTip="Listado de Ventas"
|
||||||
CssClass="ScrollAD table table-striped table-hover Widthall" data-heighterror="320" data-freezecols="0" data-freezerows="0" GridLines="None"
|
CssClass="ScrollAD table table-striped table-hover Widthall" data-heighterror="320" data-freezecols="0" data-freezerows="0" GridLines="None"
|
||||||
DataKeyNames="CveVenta,TipoDocto,Saldo,AtencionA">
|
DataKeyNames="CveVenta,TipoDocto,Saldo,AtencionA,CveFormaPago33">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Atención" DataField="AtencionA" />
|
<asp:BoundField HeaderText="Atención" DataField="AtencionA" />
|
||||||
<asp:BoundField HeaderText="Folio" DataField="SerieFolio" ItemStyle-HorizontalAlign="Center" />
|
<asp:HyperLinkField HeaderText="Folio" DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="/Ventas/Ventas.aspx?CveVenta={0}" DataTextField="SerieFolio" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField HeaderText="Fecha/Hora" DataField="Fecha" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Fecha/Hora" DataField="Fecha" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField HeaderText="Importe" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Importe" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Right">
|
<asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Right">
|
||||||
|
|||||||
@@ -246,7 +246,24 @@ Partial Class Ventas_PVCobranza
|
|||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
HdnCveVenta.Value = CveVenta.ToString
|
HdnCveVenta.Value = CveVenta.ToString
|
||||||
TxtImporteEfectivo.Text = GvRow.DataKey("Saldo").FormatoNumero
|
|
||||||
|
'según la forma de pago va a establecer el valor para pago.
|
||||||
|
Select Case GvRow.DataKey("CveFormaPago33")
|
||||||
|
Case "1"
|
||||||
|
TxtImporteEfectivo.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
|
Case "2"
|
||||||
|
TxtImporteCheque.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
|
Case "3"
|
||||||
|
TxtImporteTransferencia.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
|
Case "4"
|
||||||
|
TxtImporteCredito.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
|
Case "18"
|
||||||
|
TxtImporteDebito.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
|
Case Else
|
||||||
|
TxtImporteEfectivo.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
|
End Select
|
||||||
|
|
||||||
|
|
||||||
TxtImporteContado.Text = GvRow.DataKey("Saldo").FormatoNumero
|
TxtImporteContado.Text = GvRow.DataKey("Saldo").FormatoNumero
|
||||||
HdnTotal.Value = GvRow.DataKey("Saldo")
|
HdnTotal.Value = GvRow.DataKey("Saldo")
|
||||||
TxtImporteEfectivo.Focus()
|
TxtImporteEfectivo.Focus()
|
||||||
|
|||||||
Reference in New Issue
Block a user