D365 Business Central : Keep Description in General Journal Line

Here’s a trick when working with the General Journal Line in D365 Business Central. When dealing with General Journals and changing the Account Type, you might have noticed that the Description automatically resets to blank.

Description is reset to blank on changing Account Type

If you wish to preserve the Description, there’s a hidden field called “Keep Description”. This field, though hidden and non-editable, will allow you to preserve the Description.

Keep Description field

This field is used on Report 1497 during the transfer from Bank Reconciliation to General Journal Line.

Report 1497 “Trans. Bank Rec. to Gen. Jnl.”

Now, let’s expose this hidden field and make use of it.

pageextension 60271 "General Journal KeepDesc_TNG" extends "General Journal"
{
    layout
    {
        addafter(Description)
        {
            field("Keep Description_TNG"; Rec."Keep Description")
            {
                ApplicationArea = All;
                Caption = 'Keep Description';
                ToolTip = 'Prevent Description from being modified when updating the Account Type';
                Editable = true;
            }
        }
    }
}

Publish the app and let’s try it.

Description stays on changing Account Type

The “Keep Description” field ensures that the Description remains unaffected even when changing the Account Type.

That’s it. Hope you learn something new today.

GitHub

Download App

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

Leave a Reply

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