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

archivos adjuntos OPCH

hola a todos, tengo un detalle en una empresa en la cual desean revisar los archivos adjuntos cargados en cada factura de proveedor ya que necesitan validar que se haya cargado el xml correcto a cada factura, revisando la tabla que guarda el nombre de los adjuntos ATC1 encontré que no tiene relación con la OPCH, de hecho no tiene relación con ninguna otra tabla. Mi duda es si es posible sacar un listado que me indique el archivo cargado a cada factura.

agradezco de antemano cualquier aporte.

saludos.

archivo adjunto.jpg (174.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2015 at 08:44 PM

    ya encontré la relación, copio query por si lo requieren

    select T0.[DocNum] , T0.[NumAtCard] as 'Numero factura', T0.[U_ADP_UUID],T1.[FileName], T1.[FileExt],T0.[CardCode] as 'Codigo SN', T0.[CardName] as 'Nombre SN', T0.[DocTotal] as 'Total Factura', T0.[DocDate] from opch t0

    inner join atc1 t1

    on T0.AtcEntry=T1.AbsEntry

    saludos.

    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.