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