Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

AP History Extract

$
0
0

I have been asked to generate a file with the following information from AX 2009:

  1. Vendor Number
  2. Vendor Invoice Number
  3. Vendor Invoice Date
  4. Purchase Order ID
  5. Purchase Order Line
  6. AP Document Number (ie. Check number...)
  7. AP Document Date (ie. Date check was issued)
  8. Payment Amount

Has anyone else done something like this or come across a report that gives this information?

is It best to do something like this?

LedgerJournalTrans

innerjoin

VendTrans

on LedgerJournalTrans.dataAreaId = VendTrans.dataAreaId and

LedgerJournalTrans.VendTransId = VendTrans.RecId

innerjoin

VendTrans as VendTransOffset

on

VendTransOffset.OffsetRecId = VendTrans.RecId

innerjoin

VendInvoiceJour

on VendTransOffset.DATAAREAID = VendInvoiceJour.dataAreaId and

VendTransOffset.Voucher = VendInvoiceJour.LedgerVoucher

innerjoin

VendInvoiceTrans

on VendInvoiceJour.dataAreaId = VendInvoiceTrans.dataAreaId and

VendInvoiceJour.InvoiceId = VendInvoiceTrans.InvoiceId and

VendInvoiceJour.PurchId = VendInvoiceTrans.PurchId and

VendInvoiceJour.InvoiceDate = VendInvoiceTrans.InvoiceDate and

VendInvoiceJour.numberSequenceGroup = VendInvoiceTrans.numberSequenceGroup and

VendInvoiceJour.internalInvoiceId = VendInvoiceTrans.internalInvoiceId

where LedgerJournalTrans.TransactionType = 15 and

LedgerJournalTrans.AccountType = 2 and

VendInvoiceJour.PurchId <>''


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>