Source Code Setup
Principles
When you post journals, orders, invoices, or credit memos, and when you perform various batch jobs, entries are created in the financial statements.
In some cases, you need to see how an item was created, such as whether it came from a general journal posting or a purchase invoice. To do this, use the code from the dial pad Source Code (Source Code), which you set for each area and task in the Source Code Setup table.
MS regularly updates the documentation for this setting area. Documentation valid for BC22 is available at the following link:
Set Up Codes for Audit Trails - Business Central | Microsoft Learn
Source Code Setup
To assign an Origin Code to an item, you need to set up two tables.
Table Source codes (Source Codes) is a code list containing all origin codes.
Table Set Up Origin Codes (Source Code Setup) then contains all posting methods (e.g. from a general journal, from a purchase invoice) and all tasks that create entries (e.g. VAT settlement, Exchange rate adjustment). For each billing method and task, it is necessary to assign the appropriate Source Code from the code list.
For OCs, the following fields have been added to set the Origin Code:
On the General tab, in the Financing field
On the Fixed Assets tab, in the FA Jobs field.
If you are posting a document or running a batch job, the program will automatically attach the source code to the created entry according to the settings. For example, if you post from a general journal, the program stores a FINDEN code on the entry. If you post a sales invoice, the program assigns the code SALES to the item.
To see where an item came from, you can go to the relevant item table—such as General Ledger Entry, Customer Ledger Entry, Vendor Ledger Entry, or Item Ledger Entry—and look at the contents of the Source Code field. If a field is not displayed on the page, it can be added by the user.
The entry in the General Ledger Entries (items of the accounts of the chart of accounts) then looks like this: