on 06-24-2010 4:40 PM
Hola! buenos días!
Necesito por favor de su ayuda, estoy creando un query que me enliste todas las facturas pero no se como mostrar el subtotal.
Estoy trayendo los datos de la tabla OINV y obtengo el numero de factura, la fecha de contabilización, el cliente, el iva y total, pero me falta el subtotal ¿Como puedo incluirlo?
gracias!
Hola..
Me parece que este campo no está disponible,
puedes calcularla con la diferencia entre DocTotal y VatSum.
SELECT T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, ((T0.DocTotal + T0.WTSum )- T0.VatSum) AS 'SubTotal', T0.VatSum, T0.DocTotal FROM OINV T0
Saludos Cordiales,
Edited by: Paul Ponce on Jun 24, 2010 6:03 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Buenas tardes, necesito realizar un query que sume todas la facturas de un cliente en especifico sap b1 9.3?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Excelente! muchas gracias esto es lo que necesitaba. Gracias por la pronta respuesta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola Cecilia,
Debes obtenerlo con una operacion, tomar el total sumar retenciones, restar gastos adicionales e impuestos.
(T0.(DocTotal)+T0.(WTSumSC)-T0.[VatSum]-T0.(TotalExpns))
saludos
JAMS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.