Skip to main content

Notifications

Announcements

No record found.

Business Central forum

Change Caption for Direct Unit Cost Excl. Tax

Posted on by 326

Does anyone know what field I need to target to modify the caption of the "Direct Unit Cost Excl. Tax" field on Purchase Order Lines? I've tried Direct Unit Cost and Unit Cost (LCY) on the Purchase Order Subform and no luck. Thanks!

7713.Capture.JPG

Categories:
  • dkkipfer Profile Picture
    dkkipfer 326 on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    For anyone else wondering how to accomplish this, I found the steps in this Licensing Guide from Microsoft. 

    "To take advantage of Dual Use rights, a Dynamics 365 Business Central cloud subscription needs to be activated via CSP. Once the subscription has been activated, a customer account will be created in PartnerSource Business Center (PSBC) with the equivalent user SLs. The customer can access their onpremises/dual use rights license key (flf. format) by signing in to CustomerSource, selecting the ‘My Products and Services’ link from the dropdown menu and then clicking on the ‘Registration Keys’ link beside the Microsoft Dynamics 365 Business Central product."

    1) Sign in to CustomerSource

    2) Click on your Name at the top right and select "Products & Services Summary"

    3) Under Registered Products click the link for "Please contact your partner for Keys" 

    4) Answer the questions in the dropdowns

    5) Click Display License Keys

    6) Download the License Keys in .flf format

    7) Open Nav Container Helper and use the Import-NavContainerLicense to point the container at the license file. 

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Yes obviously, a license file enabled for D365BC is the best option.

  • dkkipfer Profile Picture
    dkkipfer 326 on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Is it possible to use a Business Central license?

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Yes, you need a developer license. You can use a NAV 2018 license too for this.

  • dkkipfer Profile Picture
    dkkipfer 326 on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    No worries! I have a sandbox running on an Azure VM and access to C/SIDE, but when I try to design an object I get the following message:

    "You do not have permission to read the 'Purchase Line' Table. Contact your system administrator to have your permissions changed."

    Is a developer license required to access and inspect the standard objects?

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Sorry for the late reply. Always create a local sandbox with Docker. From here you’ve access to C/SIDE and you can inspect standard objects.

  • dkkipfer Profile Picture
    dkkipfer 326 on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Thank you for the help! Do you mind sharing how you were able to find that a Caption Class property applies to Direct Unit Cost? Knowing how to locate these in the future would be very helpful!

  • Verified answer
    Viki NTS Profile Picture
    Viki NTS 250 on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    "Direct Unit Cost Excl. Tax" Field on Purchase Sub Form uses Caption Class Property on Purchase Line Table using GetCaptionClass(FIELDNO("Direct Unit Cost")). so use CaptionClass property on Page level to override(Make sure that you are providing right caption to it :-) ).

    pageextension 50106 PurchLineExt extends "Purchase Order Subform"
    {
    layout
    {
    // Add changes to page layout here
    modify("Direct Unit Cost")
    {

    CaptionClass = 'Unit Cost';

    }
    }

    }
  • dkkipfer Profile Picture
    dkkipfer 326 on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Yes, but it does not seem to target the caption of that particular field. I've looked through the definitions of the PO and the PO Subform and the only cost related fields are the ones I mentioned above.

    Is it possible the system is adding a field from another table on the PO lines?

    Here's the code I tried:

    pageextension 50111 POSubform extends "Purchase Order Subform"
    {
        layout
        {
            modify("Location Code")
            {
                Visible = false;
            }
            modify("Reserved Quantity")
            {
                Visible = false;
            }
            modify("Direct Unit Cost")
            {
                Caption = 'Unit Cost';
            }
        }
    }
  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Change Caption for Direct Unit Cost Excl. Tax

    Have you created a pageextensionobject and then:

    Modify(yourfield)

    {

     Caption = ‘YourCaption’;

    }

    ?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans