on 12-29-2014 11:04 PM
HOLA FORUM BUEN DIA,
ALGUIEN TENDRA EL CODIGO DE LOS QUERYS DE ANALISIS DE VENTA: CLIENTE, ARTICULO Y EMPLEADO.
NECESITO AGREGARLA MAS CAMPOS EN EL MISMO REPORTE
ME PODRIAN AYUDAR POR FAVOR, MIL GRACIAS.
HE DESARROLLADO ALGUNOS PERO NO ME CUADRAN AL 100% CON ELLOS. : (
Que tal este, haber si te sirve??
salu2
SELECT
T0.[DocNum] as 'COD_FACT',
T0.[CardCode] as 'COD_CLIENTE',
T0.[CardName] as 'NOMBRE DE CLIENTE',
T0.[DocDate] AS ' FECHA DE FACTURA',
T1.[ItemCode] AS 'COD_ARTICULO',
T1.[Dscription] AS 'DESCRIPCION',
T1.[Quantity] AS ' CANTIDAD',
T1.[GrossBuyPr] AS ' PRECIO DE COSTO',
(T1.[Quantity]*T1.[GrossBuyPr])as 'TOTAL COSTO',
T1.[PriceBefDi] AS 'PRECIO UNITARIO',
T1.[Price] AS 'PRECIO TRAS EL DESCUENTO',
T1.[LineTotal] AS 'PRECIO TOTAL DE ARTICULO',
T2.[SlpName] AS 'NOM_EMPLEADO'
FROM OINV T0
INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
LEFT JOIN NNM1 T3 ON T0.Series = T3.Series
WHERE T0.[DocType]='I' AND (T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1])
Order by T0.DocNum DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Otra opción es:
ventas - Informes de Ventas- Análisis de ventas
en esta ventana tienes la opción de hacerlo por cliente, articulo, Empleado dpto.ventas
creo que te serviría mas el ultimo, después de que te arroje los empleados de ventas dando clic en el numero de partida del vendedor te abrirá una ventana nueva mas detallado
ojala te sirva
salu2
Cesar,
Me salieron muchas diferencias y todas estriban en que hubo un descuento (100%) y/o una factura de anticipo.
Como poder incluirlas para que cuadre, esto me bajo a un 60% la cuadratura!!!
Gracias.
Por otro lado si directamente ahi en el informe de ventas pero necesito agregarle varias cosas por ello necesito el codigo que me cuadre,
Gracias nuevamente
User | Count |
---|---|
99 | |
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.