Dynamics 365 Business Central – Detailed Ledger Entries – The Unsung Hero

Introduction

When I talk to users about Dynamics 365 Business Central we often discuss the ledger entries, such as Customer and Vendor Ledger Entries, but never really touch on Detailed Ledger Entries.

They kind of go under the radar, however in reality they perform a crucial function, and underpin lots of information shown on the Ledger Entries screen.

In this post I aim to give them some well deserved limelight as I go through just how important a role they play in business central.

Ledger Entries

If we first take a look at the “Customer Ledger Entries” page we can see this is showing all the various documents we have posted against our customers.

In fact, this is the main page that’s used when you want to see a full history of all the documents we have posted to our customers. Using this page we can quickly see outstanding invoices, payments and much more.

It also displays things like Posting Date, Document Type, Document Number, Customer No and then a variety of Amount columns.

What’s interesting to note is that all the amount columns are hyperlinks, which we can click to view more information on that amount. However before we do this let’s take a deep dive into the “Customer Ledger Entries” table to gather more information on those columns.

Lets get technical

To figure out why those amount columns have hyperlink drilldowns let’s first check what table the “Customer Ledger Entry” page is based on. We can do this by clicking “CTRL + ALT + F1” to view the Page Inspection. In here we can see its based on the “Cust. Ledger Entry (21)” table

Now let’s open that table in “VS Code” and take a look at a couple of those amount columns. Specifically we’ll look at the “Amount” and “Remaining Amount” columns

Here we can see that the “Amount” and “Remaining Amount” columns aren’t physically stored in the “Cust. Ledger Entry” table. They are in fact calculated fields (flowfields) based on data in the “Detailed Ledger Entry” table.

So, when we see those amounts on the “Customer Ledger Entry” page we are in fact seeing totals based on data in the “Detailed Ledger Entry” table. This is why they are showing as hyperlinks. Very cool!

** What’s even more cool is that to maintain high performance they are implemented using SQL indexed views on the Detailed Ledger Entry table (I explain more on how this works in this article)

Wrapping up

Armed with this information we can see why whenever we post a sales transaction we get “Detailed Ledger Entries”, as well as the more commonly known “Customer Ledger Entries”. The “Detailed Ledger Entries” are maintaining the “Amount” fields on the “Customer Ledger Entries” table and (therefore) page.

Therefore its now apparent just how much of a crucial role they are playing in maintaining the amounts and outstanding amounts on the “Customer Ledger Entry” page we use so often.

Its worth noting “Detailed Ledger Entries” are created for a whole manner of things that affect balances on transactions. The most obvious would be when we apply one transaction to another. For example if I apply the invoice to the cash receipt from my earlier screen shot I’ll get “Detailed Ledger Entries” to reflect this.

** The system will create two detailed ledger entries. One for the invoice and once for the payment and both will have a type of “Application”

If when I drill down on the “Remaining Amount” on the Invoice it takes me to the related “Detailed Ledger Entries” and if we sum the “Amount” column it comes back to 0.00 which is reflected on the “Customer Ledger Entry”

** Incidentally we can get a list of all the different types by looking at the “Entry Type” on the “Detailed Ledger Entries” table in VS code

Conclusion

In summary the “Detailed Ledger Entries” are there to keep track of changes to the amounts of the “Customer Ledger Entries”. This way the system doesn’t have to maintain summary running totals on the “Customer Ledger Entries”.

Thanks for reading!

Dynamics 365 Business Central – Add Dimensions to more than one entity using the Dimensions-Multiple function

Introduction

If you are just starting out with dimensions, or have created a new dimension, you may need to assign this to multiple Customer, Vendors, Items or GL Codes very quickly. To do this you can use the “Dimensions – Multiple” function.

An Example

In this example I have a dimension called “Department” that I want to assign as “Mandatory” to all my expense GL codes.

To do this I’ll go to “Chart of Accounts”, select all the GL expense codes, and then click “Related > Account > Dimensions > Dimensions – Multiple”

Then I’ll select that I want “Department” to be mandatory for these GL codes and click OK

Finally, I’ll check a GL code to confirm this has worked as expected:

Perfect, everything has worked as expected!

You can do this to customers, vendors and items via the relevant list page.

Thanks for reading!

Dynamics 365 Business Central – How to close reversed Bank Account Ledger Entries that have been automatically removed from the bank reconciliation

Introduction

I’ve noticed that when you reverse a bank account ledger entry its removed from the “Bank Account Ledger Entries” (right hand pane) in the Bank Account Reconciliation window however the entries remain “Open”.

To close the bank account ledger entries I’ve found you have to run the “Suggest Lines” function to populate the “Bank Statement Lines” (left hand pane) with the entries and reconcile them.

In this article I’ll walk through this whole process

The Scenario

Below I’ve posted a payment journal entry for ÂŁ50.00 which is correctly appearing on the “Bank Account Ledger Entries” side for reconciliation.

However I realised I’ve posted this incorrectly and therefore I navigate to G/L Registers, find the register, and select to reverse it:

Once this has all been reversed I return to the bank account reconciliation and the entry has disappeared, which is correct, as there won’t be a reconciling entry on the imported bank statement:

However when I check the “Bank Account Ledger Entries” both entries are showing as “Open”

So the question is, as these items will never be reconciled to a genuine imported bank statement entry, how do we close the bank account ledger entries?

The Fix

In order to close the bank account ledger entries I found I had to pull them into the “Bank Statement Lines” pane using the “Suggest Lines” function.

**Please note you would normally use the “Suggest Lines” function for your reconciliation if you don’t import a bank statement downloaded from your bank

To do this, from within the “Bank Account Reconciliation” page, I selected “Suggest Lines” as per below:

I then selected my date range and clicked OK which pulls all open bank account ledger entries into the “Bank Statement Lines” pane.

Now, along with other open bank account ledger entries which were also pulled through, I can see the incorrect payment and the corresponding reversal in the “Bank Statement Lines” pane.

So, in order to close these entries I need to reconcile them. To do this I first delete all other entries from the “Bank Statement Lines” pane. To do this I multi select them and click “Bank Statement Lines > Delete Line”

I’m now left with the two entries I wish to close in the “Bank Statement Lines” pane (and no other reconciled items):

Next I populate the “Bank Ending Balance” which is identical to the “Bank Last Statement” as nothing has changed with the balance, and post the reconciliation

Now, when I check the “Bank Account Ledger Entries” I can see both entries have been closed.

Conclusion

This does seem like a fairly long winded way of closing the bank account ledger entries that have been reversed. If anyone knows of a quicker way please let me know 🙂

Thanks for reading!