web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Linking GeneralJournal to PurchaseReceipt

(0) ShareShare
ReportReport
Posted on by 2,463

I'm building a report in T-SQL, and trying to link the General Journal entries, against a specific GL account, to the Purchase Receipt number.

Is this possible?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ajit Profile Picture
    8,788 on at

    There are many Views are there to achieve these kind of requests.

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,
    Please use the below SQl to link General Journal entries with Purchase Receipt
    using voucher, ledger account and purchase receipt number

    -- Purchase order product receipt transactions
    select journalAccountEntry.LEDGERACCOUNT, vendPackingSlipJour.PACKINGSLIPID, * from GeneralJournalAccountEntry as journalAccountEntry

    inner join GeneralJournalEntry as generalJournalEntry
    on journalAccountEntry.GeneralJournalEntry = generalJournalEntry.RecId
    inner join SubledgerVoucherGeneralJournalEntry as subledgerVoucherGeneralJournalEntry
    on subledgerVoucherGeneralJournalEntry.GeneralJournalEntry = generalJournalEntry.RecId
    inner join VendPackingSlipVersion as vendPackingSlipVersion
    on (vendPackingSlipVersion.LedgerVoucher = subledgerVoucherGeneralJournalEntry.Voucher
    or vendPackingSlipVersion.CostLedgerVoucher = subledgerVoucherGeneralJournalEntry.Voucher)
    and vendPackingSlipVersion.AccountingDate = subledgerVoucherGeneralJournalEntry.AccountingDate
    and subledgerVoucherGeneralJournalEntry.Voucher = 'Voucher#1'
    inner join vendPackingSlipJour as VendPackingSlipJour
    on vendPackingSlipJour.RecId = vendPackingSlipVersion.VendPackingSlipJour
    inner join purchTable
    on purchTable.PurchId = vendPackingSlipJour.PurchId
    where journalAccountEntry.LEDGERACCOUNT = 'XYZ-123-123'
    and vendPackingSlipJour.PACKINGSLIPID = 'PurchReceipt#'

    Thanks,

    Chaitanya Golla

  • Verified answer
    SU-22040800-0 Profile Picture
    2,463 on at

    Hi everyone

    Thanks for the responses on this.

    The issue i'm facing on this, is that I have charges that are posted when matching the invoice, that i need to match to the receipt that is linked to the charge.

    For example, i have REC_1 for 50, and REC_2 for 150, and a 10% charge that is calculated on these when matching the invoice. When the invoice is matched, and posted, the charges post to the correct charge account at 5 and 15, as two separate lines.

    I need to link the receipt numbers (REC_1 & REC_2) with the charge amounts (5 & 15) and show that on a report.

    any ideas?

  • SU-22040800-0 Profile Picture
    2,463 on at

    Hi All

    I resolved this by posting the charges at receipt.

    2017_2D00_07_2D00_31_5F00_0909.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans