Filtro de pedidos en historial de ventas
This commit is contained in:
@@ -5547,8 +5547,15 @@ Partial Class Clientes
|
|||||||
Protected Sub RblTipo_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RblTipo.SelectedIndexChanged
|
Protected Sub RblTipo_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RblTipo.SelectedIndexChanged
|
||||||
If DTHistorialVentas IsNot Nothing AndAlso RblTipo.SelectedValue <> "-1" Then
|
If DTHistorialVentas IsNot Nothing AndAlso RblTipo.SelectedValue <> "-1" Then
|
||||||
|
|
||||||
Dim tmp As DataTable = DTHistorialVentas.FiltraParametros($"TipoDocto = '{RblTipo.SelectedValue}'")
|
Dim tmp As DataTable = Nothing
|
||||||
If tmp.Rows.Count > 0 Then
|
|
||||||
|
If RblTipo.SelectedValue.Contiene("Ped") Then
|
||||||
|
tmp = DTHistorialVentas.FiltraParametros($"TipoDocto IN('Ped','Pd2')")
|
||||||
|
Else
|
||||||
|
tmp = DTHistorialVentas.FiltraParametros($"TipoDocto = '{RblTipo.SelectedValue}'")
|
||||||
|
End If
|
||||||
|
|
||||||
|
If tmp IsNot Nothing AndAlso tmp.Rows.Count > 0 Then
|
||||||
Dim Totales As DataRow = tmp.NewRow
|
Dim Totales As DataRow = tmp.NewRow
|
||||||
Totales("SubTotal") = tmp.SUM("SubTotal")
|
Totales("SubTotal") = tmp.SUM("SubTotal")
|
||||||
Totales("Total") = tmp.SUM("Total")
|
Totales("Total") = tmp.SUM("Total")
|
||||||
|
|||||||
Reference in New Issue
Block a user