en el reporte de sabana de venta mostrar solo el año actual y 5 anteriores
This commit is contained in:
@@ -1197,7 +1197,7 @@ Public Class ClsAcumuladores
|
||||
|
||||
Public Function GetAñosVentas(CveEmprea As Integer) As Boolean
|
||||
Dim Retorno As Boolean = False
|
||||
SqlDataAdapter(String.Format("select year(Fecha) as Año from Ventas where CveEmpresa = {0} group by year(Fecha) Order by year(Fecha)", CveEmprea.ToString), CommandType.Text)
|
||||
SqlDataAdapter(String.Format("select top 6 year(Fecha) as Año from Ventas where CveEmpresa = {0} group by year(Fecha) Order by year(Fecha) desc", CveEmprea.ToString), CommandType.Text)
|
||||
|
||||
Try
|
||||
SqlAdapter.Fill(Data)
|
||||
|
||||
Reference in New Issue
Block a user