Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Sales Unit of Measure

Posted on by Microsoft Employee

Is there any way to create Sales Unit of Measure automatically when I create new item or if I can disable Sales Unit of measure for Sales Order creation?

pastedimage1650450345083v1.png 

Categories:
  • Guy McKenzie Profile Picture
    Guy McKenzie 1,330 on at
    RE: Sales Unit of Measure

    In your config template, add additional rows for both sales and purchase unit of measure.

    Set the default value for these to also be PCS.

    Any item created using that template will then have the required information.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sales Unit of Measure

    Thanks ZHU,

    Yes If I create a new Item from Business Central it automatically fills the Sales Unit of Measure (from base unit).

    But I am synching Items from Dataverse (Dynamics 365 Sales). I am using Item template, it populates the Base Unit of Measure but still Sales Unit of measure never gets populated. Any suggestions

    pastedimage1650521376880v1.png

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 70,124 Super User 2024 Season 2 on at
    RE: Sales Unit of Measure

    Hi, This is a bit strange, when I create a new Item, the Sales Unit of Measure is automatically filled in.

    My test version: W1 20.0 (Platform 20.0.37114.39096 + Application 20.0.37253.38055)

    pastedimage1650507683596v1.png

    You can find in the standard source code.

    pastedimage1650507838040v2.png

    If you don't like it being created automatically, try the following two lines of code. (for reference only)

    pastedimage1650508156148v3.png

    pastedimage1650508168761v4.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Brad_P Profile Picture
    Brad_P 1,542 on at
    RE: Sales Unit of Measure

    You can add the Sales Unit of Measure to the Item Template:

    Extend Table 1382 Item Templ. and Page 1384 Item Templ. Card to hold the field

    Subscribe to Codeunit 1336 Item Templ. Mgt. OnApplyTemplateOnBeforeItemModify and add your logic.

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Sales Unit of Measure

    We asked Developer to add that field into Item Template then make the field populate the field in Item Card. Looks like he added a new field to Item Template table (1382) and the page, the made sure that populate the UOM in item card.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sales Unit of Measure

    Any idea about the development you did to make it available on Item Template

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Sales Unit of Measure

    Sorry. You are right. I looked into our environment which we had minor development to add this to Item Template.

  • Suggested answer
    Dallefeld Profile Picture
    Dallefeld 11,423 User Group Leader on at
    RE: Sales Unit of Measure

    Like I said in the other post, when the base unit of measure is input the sales unit of measure should be automatically defaulted. If the sales unit of measure is empty, the culprit is the method of creating the items or so it would seem.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sales Unit of Measure

    Templates can not be used for Sales unit of Measure. Any work around to process sales order without proving sales unit of measure

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Sales Unit of Measure

    Hi

    You can try Item Template for this purpose. 

    usedynamics.com/.../

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

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... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans