Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

extended cost

(0) ShareShare
ReportReport
Posted on by 20

does anyone know where the code is located to modify the extended cost in the purchase order maintenance
I need to create code to calculate if value A is inputed than use that calculation otherwise calculate the original fomula for extended cost  which is quality * unitcost I cannot locate the original formula nowhere

*This post is locked for comments

  • Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: extended cost

    Sheryl

    You can sometimes do this sort of thing from the control's Default Event.

    In that event, if you want to override the system's own calculation, you can set the curiously named parameter OldValue to the value that you want to use.

    I just tried the code below, and it appeared to work - regardless of what Qty & Price I used, the extended cost was 123.45.

    My testing was VERY brief though !!

    Barry

    Option Explicit

    Private Sub cextcost_Default(OldValue As String, retval As Integer)

       OldValue = 123.45

    End Sub

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans