Skip to Content
author's profile photo Former Member
Former Member

Reporte de Proveedores

Hola buen día

mi consulta va referida a los reportes, muchas veces se crean pedidos a proveedores pero los proveedores no entregan competo el material y muchas veces hay que cerrar pedido pero las lineas pendientes las marca como entregadas, la pregunta es aun cerrando el pedido hay manera de que yo con un reporte pueda ver lo que el proveedor me entrego y lo que no

Saludos

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 11, 2016 at 07:39 AM

    Hola

    al cerrar el pedido de compra, la cantidad pendiente de recibir se pone a cero. Por lo tanto la consulta debe recorrer los documentos destino, en este caso busco en las entradas de mercancía, y resto de las cantidades pedidas las cantidades recibidas.

    select T2.DocNum AS PEDIDO, T0.ItemCode AS Articulo, T0.Quantity AS 'Cantidad Pedido', (isnull(T0.Quantity,0) - isnull(T1.cantidad,0)) AS Pendiente FROM ( select docentry, linenum, itemcode, quantity from POR1 ) T0, ( select baseentry, baseline, itemcode, sum(quantity) as cantidad from PDN1 group by baseentry, baseline, itemcode ) T1, (select docnum, docentry from OPOR ) T2 where T0.DocEntry = T1.BaseEntry and T0.LineNum = T1.BaseLine and T2.DocEntry = T0.DocEntry order by T2.DocNum, T0.ItemCode

    Si copias directamente del pedido a factura deberás modificar la consulta.

    Un saludo

    Agustín Marcos Cividanes

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.