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.

  • Suggested answer
    Muhammad Arif Maseed Profile Picture
    782 on at
    RE: Added new field in Gen. Journal Line

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 732

#2
YUN ZHU Profile Picture

YUN ZHU 689 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 529

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans