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...
Answered

Calculated field on Purchase Order

(1) ShareShare
ReportReport
Posted on by 30
Hi,
Need little advice, On purchase Order's at the moment we have got Item unit of measure set to cases to calculate the total quantity, I want to add another field next to Line Amount that will calculate the total amount of quantity in kilos using the net weight in the item card.
Field Line Amount Kg = Quantity * Net Weight
Can you please let me know the best way to do this? thanks in advance.
  • Verified answer
    YUN ZHU Profile Picture
    79,097 Super User 2025 Season 1 on at
    Calculated field on Purchase Order
    Hi, because the required fields are all on the Purchase Line, you can simply follow the code below.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,312 Super User 2025 Season 1 on at
    Calculated field on Purchase Order
    Hi,
     
    In summary here are steps -
     
    1. Add a new field via tableextension in the Purchase Line Table.
    2. Using page extension add that field into purchase order subform page.
    3. Using a codeunit subscribe to event OnAfterValidate for field quantity.
    4. Write your logic in the subscribed event.
     
    Regards,
    Saurav Dhyani
  • gdrenteria Profile Picture
    15,635 Most Valuable Professional on at

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans