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

Community site session details

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

New Field Value is missing in Customer Ledger Entry

(0) ShareShare
ReportReport
Posted on by 114

I have added a new field in Gen. Journal Line and Cust. Ledger Entry tables with same Field ID. Also added this field in "Cash Receipt Journal" page and Customer Ledger Entries page.

Payment Type field value is provided in Cash receipt Journal and posted the entry. The value is blank in Customer Ledger Entries page.

Do we need to add some piece of code for passing the field value from Gen. Journal Line to Cust Ledger Entry ?

I have the same question (0)
  • Dynamics 635 Forum Profile Picture
    45 on at
    RE: New Field Value is missing in Customer Ledger Entry

    It worked. Thanks a lot.

  • YUN ZHU Profile Picture
    92,443 Super User 2025 Season 2 on at
    RE: New Field Value is missing in Customer Ledger Entry

    Hi, just to add some information.

    If the field is a field on the customer master data, you can also use FLowfield to display it.

    More details: https://yzhums.com/5802/

    Hope this helps.

    Thanks.

    ZHU

  • Inge M. Bruvik Profile Picture
    1,041 Moderator on at
    RE: New Field Value is missing in Customer Ledger Entry

    Yes, you need to do coding as Mohana suggest.

    This is because the posting routine does not use transferfield functionality when ledger entries are created.

    But if it was between the sales header and invoice header table. Defining the field with the same no. and data type in the two tables would be enough.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,949 Super User 2025 Season 2 on at
    RE: New Field Value is missing in Customer Ledger Entry

    Yes,

    You have to create a subscriber like below

       [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnPostCustOnAfterInitCustLedgEntry', '', false, false)]

       local procedure OnPostCustOnAfterInitCustLedgEntry(var Sender: Codeunit "Gen. Jnl.-Post Line"; var GenJournalLine: Record "Gen. Journal Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; Cust: Record Customer; CustPostingGr: Record "Customer Posting Group");

       begin

           CustLedgEntry."Send to CLE" := GenJournalLine."Send to CLE"; //Change to your fields

       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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,132

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,615

#3
Sumit Singh Profile Picture

Sumit Singh 2,912

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans