Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Custom Field to add in Line Items

(0) ShareShare
ReportReport
Posted on by 150

how to to add custom field(column) to sales doc lines? We've been wanting to add another column for Shipping Cost, we tried the charge Item, but the shipping amount was equally distributed and we can't change it. So we think having a custom field would solve this.

  • Suggested answer
    YUN ZHU Profile Picture
    62,477 Moderator on at
    RE: Custom Field to add in Line Items

    Hi, As Kim said, this is not something that can be done simply by adding a column.

    But if you want to add columns, you can refer to the following example.

    pastedimage1649378554530v1.png

    pastedimage1649378560775v2.png

    TableExtension: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-table-ext-object

    PageExtension: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-page-ext-object

    Hope this also helps.

    Thanks.

    ZHU

  • Suggested answer
    MahGah Profile Picture
    15,407 on at
    RE: Custom Field to add in Line Items

    Hi

    As Kim mentioned the column will add a lot more complication to the whole process.  Kim asked a great question. That can help us to understand your view better. 

  • Dallefeld Profile Picture
    11,417 on at
    RE: Custom Field to add in Line Items

    It's really not going to work to have dollars in a column on the sales lines. You would have to program how these amounts would post, how they affect the total AR, etc.

    Item charge distributes to the individual lines but even then it does the dollar distribution upon posting at the value entry level not to the sales lines.

    Can I ask what you are trying to accomplish?

  • Kae Profile Picture
    150 on at
    RE: Custom Field to add in Line Items

    Hello MahGah,

    So instead of creating another line, is there any other option to do this by means of the column?

  • Suggested answer
    MahGah Profile Picture
    15,407 on at
    RE: Custom Field to add in Line Items

    Hi

    Just as a suggestion. Can you use G/L in SO and add the shipping charge? Like create one line as G/L in SO, select needed G/L (such as outbound shipping) , QTY 1,  then enter the shipping charge? When you ship that line it will add to invoice and selected G/L but will not distribute charge between items.

    If you have a warehouse I suggest you see Alfonso suggestion here

    community.dynamics.com/.../freight-charge-on-sales-order

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard 229,831 Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans