web
You’re offline. This is a read only version of the page.
close
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.
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,369 Most Valuable Professional on at
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at
    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
  • Verified answer
    YUN ZHU Profile Picture
    95,741 Super User 2025 Season 2 on at
    Hi, because the required fields are all on the Purchase Line, you can simply follow the code below.
     
    Hope this helps.
    Thanks.
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans