Skip to main content

Notifications

Dynamics Business Central migration forum
Unanswered

Extending Employee Posting Group

editSubscribe (1) ShareShare
ReportReport
Posted on by 2
I have added a new field in the /Employee Posting Group/ table(Table 5221) with the following details:
Field No.            Field Name                    Data Type     Length       Description
50000                 Receivables Account    Code             20
There is a journal that I automatically generate from a custom built application that uses this
new field so that when posting the journal instead using the default account field in the
/Employee Posting Group/, it uses the newly defined account field(Receivables Account);
This was done to satisfy the request of a client who wanted to generate and post receivables for
employees.
 
This is a sample of the modification I did to the function /PostDtldEmplLedgEntries/ found in coudeunit 12 in version 14 of
the D 365 BC On Premise.
 
IF GenJnlLine./Employee Receivables/ THEN
  CreateGLEntriesForTotalAmounts(
    GenJnlLine,TempInvPostBuf,DummyAdjAmount,SaveEntryNo,EmplPostingGr.GetReceivablesAccount,LedgEntryInserted)
ELSE
  CreateGLEntriesForTotalAmounts(
    GenJnlLine,TempInvPostBuf,DummyAdjAmount,SaveEntryNo,EmplPostingGr.GetPayablesAccount,LedgEntryInserted);
 
Please I need some help on how best to transition this to the version 23 wave 2. On Premise
  • gdrenteria Profile Picture
    gdrenteria 3,092 Super User on at
    Extending Employee Posting Group
    Hi
    I hope this can help you and give you some hints.
    You should analyze the code and see what event you subscribe to and what helps you do what you want.
    BR
    GR

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,373 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,212 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans