Ver Mensaje Individual
  #2  
Antiguo 28-09-2006
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is online now
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 19.437
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Puedes utilizar SQL para calcular el total ¿Qué tal se te da el SQL?
Algo así:

Código SQL [-]
select SUM(Importe) as TOTALIMPORTE from Ventas where "Lineas de la factura"

NOTA: La condición debe ser la que cumplen todos los artículos que quieres sumar; Supongo que son todas las líneas de esa factura

También puedes incluir la cantidad:

Código SQL [-]
select SUM(Importe * cantidad) as ...

Prueba y dinos qué tal...
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita