Document Type vs Initial Document Type

Document Type vs Initial Document Type
Document Type vs Initial Document Type

The Document Type and Initial Document Type fields are available on the Detailed Customer/Vendor Ledger Entries tables. For background on applying entries, see Reconcile customer payments with the cash receipt journal or from customer ledger entries on Microsoft Learn.

Document Type

This field shows the document type of the detailed entry itself, at the moment that specific detailed line was created. If the detailed line came from a journal, it is copied from the Document Type on the journal line. If it came from a sales or purchase document, it is copied from the Document Type on that document header.

This means Document Type can change from one Detailed Ledger Entry to the next, even though they all belong to the same Ledger Entry, because each detailed line can be created by a different kind of transaction (an invoice, then later a payment applied to it, then later a refund).

Initial Document Type

This field always shows the document type of the very first, original entry that the Ledger Entry was created from. It is copied once, from the Document Type of the Initial Entry, and it stays the same on every Detailed Ledger Entry linked to that Ledger Entry afterward, no matter what later happens to it.

Example

Gulf Star Trading posts a sales invoice, Document No. 103311, for GBP 5,000 to Customer.

Posted sales invoice 103311 for Gulf Star Trading

Detailed Cust. Ledg. Entry created:

Detailed Cust. Ledg. Entry where Initial Document Type is Invoice
Entry TypeDocument TypeInitial Document Type
Initial EntryInvoiceInvoice

Here both fields are the same, because this is the first entry.

The customer later returns part of the order. A credit memo for GBP 5,000 is posted and applied against the invoice.

Three new Detailed Ledger Entries are created by this application:

Detailed ledger entries after applying the credit memo, showing Document Type and Initial Document Type
Entry TypeDocument TypeInitial Document Type
ApplicationCredit MemoInvoice

The first line’s Document Type is Credit Memo, because that detailed line represents the credit memo side of the application. The second line’s Initial Document Type is Invoice, because it represents the invoice side.

Why Initial Document Type Matters

If you filter or sum Detailed Ledger Entries by Document Type, you get a mixed picture, since it changes line by line depending on which side of an application created the entry. If you filter or sum by Initial Document Type, you get a clean grouping of all activity that belongs to the same original transaction, whether that activity came from applications, discounts, or adjustments.

This is the field to use when building a report that needs to answer, “show me everything that happened to this invoice,” rather than “show me every line of type Invoice.”

Conclusion

In short, Document Type tells you which transaction created each detailed line, while Initial Document Type always points back to the original entry. Therefore, use it when you need to group all activity that belongs to one invoice or payment.

Related Articles

If you want to go deeper into ledger entries, these related articles may help:

Hope so this is Helpful 😃

By Ahmad Subhani

Microsoft Dynamics 365 and Business Central consultant sharing practical insights, new features, product reviews, and real-world solutions for modern businesses.

Leave a Reply

Your email address will not be published. Required fields are marked *