Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

SQL tables to get the posted payment journals

(0) ShareShare
ReportReport
Posted on by 10

Hi,

Can anyone tell me what are the database tables that I should join to get the posted payment journals on a customer basis?

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,091 on at
    RE: SQL tables to get the posted payment journals

    Hi Nav2986,

    Invoices are also stored in CustTrans and original document can be found via voucher and InvoiceDate in CustInvoiceJour.

    CustSettlement table is used to keep settlement information between 2 CustTrans transaction (payment and invoice in your case). This table contains referenrce by RecId to CustTrans in fields TransRecId and OffsetRecId.

  • Nav2986 Profile Picture
    Nav2986 10 on at
    RE: SQL tables to get the posted payment journals

    Sergei, is there any other tables that should I join.

    I would like to pull the data  (payment journal, on which invoice the payment has made and customer detilas) from databases.

    Below are the tables that might be joined.

    LedgerJournalTrans

    CustInvoiceJour

    SalesTable

    SalesInvoiceJournalPost

    CustTrans

  • Nav2986 Profile Picture
    Nav2986 10 on at
    RE: SQL tables to get the posted payment journals

    Thanks, Blue Wang. But I would like to pull the data  (payment journal, on which invoice the payment has made and customer details) from databases.

    Below are the tables that might be joined.

    • LedgerJournalTrans
    • CustInvoiceJour
    • SalesTable
    • SalesInvoiceJournalPost
    • CustTrans
  • Nav2986 Profile Picture
    Nav2986 10 on at
    RE: SQL tables to get the posted payment journals

    Thanks for your help, Blue Wang.

  • Nav2986 Profile Picture
    Nav2986 10 on at
    RE: SQL tables to get the posted payment journals

    Thanks for your help, Sergei.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: SQL tables to get the posted payment journals

    HI Nav2986,

    There is a report called Customer posted payment journal. (CustPostPaymJournal).

    You can check its DP class there.

    86446.PNG

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,091 on at
    RE: SQL tables to get the posted payment journals

    Hi Nav2985,

    Posted payment information is stored in CustTrans table and it can be linked to customer by AccountNum field with filter by TransType = Payment.

    From CustTrans you can get related original journal line in LedgerJournalTrans by Voucher and TransDate relation.

    In all cases, DataAreaId and Parition should be included in the link as

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans