Skip to Content

Busqueda formateada en pagos recibidos


Deseo hacer una busqueda formateada que me lleve un nombre de cliente colocado en un campo de usuario en la tabla OINV (Facturas) a otro campo de usuario de la tabla ORCT (Pagos Recibidos), actualmente tengo esta pero sin el resultado esperado

 SELECT T0.[U_Nom_Clie] from OINV T0
where T0.[CardCode] = N'C00000' and T0.[DocNum] = $[$20.0.1] 

Según yo la segunda condición compara que el número de documento sea el mismo tanto en la tabla factura como en el detalle del pago recibido

agradezco su apoyo



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 27, 2011 at 10:40 PM

    Marco trata lo siguiente

    SELECT T0.U_Nom_Clie 
    WHERE T0.CardCode = $[ORCT.CardCode] AND T0.[DocNum] = $[$20.1.0] /*Tambien trata con $[$20.1.Number]*/ 


    Felipe Loyola

    Edited by: Floyola on May 27, 2011 6:40 PM

    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.