on 10-28-2013 11:15 PM
Buenas, me pueden ayudar con un query, que me muestre el número de pedido, la fecha del pedido y el número de factura y la fecha de la factura? De antemano gracias por la colaboración.
Si en tu proceso no pasas por la remision, puedes usar este:
SELECT Distinct T0.DocNum 'No. Pedido', T0.DocDate 'Fecha Pedido',T2.DocDate 'Fecha Factura',T2.DocNum 'No factura'
FROM ORDR T0
INNER JOIN INV1 T1 ON T1.BaseEntry=T0.DocEntry AND T1.BaseType='17'
INNER JOIN OINV T2 ON T2.DocEntry=T1.DocEntry
Saludos.
Alessandro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.