Skip to main content

Notifications

Community site session details

Community site session details

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

I want to get the custom entries through post button on sales invoice to the gl entries

(1) ShareShare
ReportReport
Posted on by 188
I want to get the custom entries through post button on sales invoice to the gl entries and customer ledger entries but couldnot find any codeunit on find entries .
How can I get the custom entries on find entries of posted sales invoice?
  • Alina Fahim Ibrahim Profile Picture
    188 on at
    I want to get the custom entries through post button on sales invoice to the gl entries
    I want to add some tax entries from sales line to gl ledger entries through sales invoice post button and I also used cu 80 but didnot get the entries in gl ledger entries.
     
  • Suggested answer
    YUN ZHU Profile Picture
    84,557 Super User 2025 Season 1 on at
    I want to get the custom entries through post button on sales invoice to the gl entries
    What are the custom entries you mentioned? Are they entries added by customization?
    If so, I suggest you modify the custom function and add a status when inserting custom entries, such as "Custom = Yes", which will facilitate filtering.
     
    Hope this helps.
    Thanks.
    ZHU
  • Mustafa Omerbegović Profile Picture
    1,420 Super User 2025 Season 1 on at
    I want to get the custom entries through post button on sales invoice to the gl entries
    Hello Alina,
     
    Any CU related to posting is one of the hardest things to modify in BC because these CU have a lot of code in the background and are connected to other CU that are triggered when posting is started.
    If you really want to modify these CU best way is to find appropriate subscriber in on of these CU , probably (80,81 or 82 CU if it is posting of sales documents, or CU 12 since all CU related to posting needs to go through CU 12) and then subscribe on your CU that will create your custom entries.
     
    Maybe it is better option to create functionality that will trigger automatically or manually after the native posting of document be completed. Then, based on posted entries of that document, you can post additional general journal line with same Document No. and Posting Dates as Posted Sales Invoice.
     
    Greetings

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans