diff --git a/Source/Modulos/Informe ventas por articulo/Servidor/srvInfVentasArticulo_Impl.pas b/Source/Modulos/Informe ventas por articulo/Servidor/srvInfVentasArticulo_Impl.pas index 9b0cc708..afbb8064 100644 --- a/Source/Modulos/Informe ventas por articulo/Servidor/srvInfVentasArticulo_Impl.pas +++ b/Source/Modulos/Informe ventas por articulo/Servidor/srvInfVentasArticulo_Impl.pas @@ -37,7 +37,9 @@ uses {Generated:} FactuGES_Invk, uSchemaUtilsServer, dialogs; const - CAMPOS_SUMA = '#IMPORTE_TOTAL_FACTURA#IMPORTE_UNIDAD_COSTE#IMPORTE_NETO_COSTE#IMPORTE_PORTE_COSTE#CANTIDAD#IMPORTE_UNIDAD_VENTA#IMPORTE_NETO_VENTA#IMPORTE_PORTE_VENTA#IMPORTE_TOTAL_VENTA#IMPORTE_COMISION_AGENTE#'; + CAMPOS_AVG = '#IMPORTE_NETO_VENTA#'; + + CAMPOS_SUMA = '#IMPORTE_TOTAL_FACTURA#IMPORTE_UNIDAD_COSTE#IMPORTE_NETO_COSTE#IMPORTE_PORTE_COSTE#CANTIDAD#IMPORTE_UNIDAD_VENTA#IMPORTE_PORTE_VENTA#IMPORTE_TOTAL_VENTA#IMPORTE_COMISION_AGENTE#'; procedure Create_srv_InfVentasArticulo(out anInstance : IUnknown); @@ -64,6 +66,7 @@ begin Service := Self; Columnas := Columns; ColumnasQueSuman := CAMPOS_SUMA; + ColumnasQueAVG := CAMPOS_AVG; try ds := GetNewDataSet; finally