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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Added new field in Gen. Journal Line

(0) ShareShare
ReportReport
Posted on by 782

Hello,

I have added a new field in Gen. Journal Line. I am posting invoice using purchase journal and I have added one new field. I want when I post the invoice through purchase journal the new field value should move to vendor ledger entry also created the same field in the vendor ledger entry.

I have the same question (0)
  • Suggested answer
    Muhammad Arif Maseed Profile Picture
    782 on at

    Subscribe the following event and add your code this will work

     [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", 'OnAfterCopyVendLedgerEntryFromGenJnlLine', '', true, true)]

       local procedure new(var VendorLedgerEntry: Record "Vendor Ledger Entry"; GenJournalLine: Record "Gen. Journal Line")

       begin

            VendorLedgerEntry."Faktura-Boks Document Code" := GenJournalLine."Faktura-Boks Document Code";

        END;

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans