Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Getting the GL Account from Purchase Lines AL

Posted on by

Hi all,

I need to get the GL account from each of the existing purchase lines that have TYPE item. With this GL account, I will be able to sum the amount per GL Account.

Any idea in AL?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Getting the GL Account from Purchase Lines AL

    Hello,

    As Yun noted, I would create a Jet Report to search all Posted Purchase Invoices and report back only those Invoices with Type = Item and then show the Vendors - Gen. Bus. Posting Group and the Items Gen. Prod. Posting Group on the line. Then take the combination and lookup the General Posting Setup for the Purchase Account and show the G/L Account value.

    Hope this helps.

    Thanks,

    Steve

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    RE: Getting the GL Account from Purchase Lines AL

    Hi, no GL Account is included on the Item Master. But if you want to get Purch. Account in General Posting Setup, you can get Gen. Bus. Posting Group in Vendor master, and get Gen. Prod. Posting Group in Item Master, then using these two data, you can get the GL account here.

    pastedimage1639957202719v2.png

    Hope this will help.

    Thanks.

    ZHU

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans