Announcements
No record found.
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
There are many Views are there to achieve these kind of requests.
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
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?
Hi All
I resolved this by posting the charges at receipt.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader