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

Notification of Price Change

(1) ShareShare
ReportReport
Posted on by 392
Hi:
 
In the "Prices & Sales" FastTab of the Item Card, you can choose "Price=Cost+Profit" for the Price/Profit Calculation.
 
If you make a change to "Profit %", "Unit Price" changes automatically.
 
Also, for the Item Card, you can click the link for the "Sales Prices & Discounts" field to set up special prices and discounts.
 
Is there a way to have Business Central notify or alert the end user in some form, when he or she changes the Profit % and causes the "Unit Price" to be different from the "Sales Price" for special prices and discounts?
 
Thanks!
 
John
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,763 Super User 2025 Season 2 on at
    Hi, As far as I know there is no standard feature for this. You could look for it in My Notifications, but I think this might need customization.
     
    Hope this helps.
    Thanks.
    ZHU
     
  • Verified answer
    Gerardo Rentería García Profile Picture
    25,390 Most Valuable Professional on at
  • Netjacker2097 Profile Picture
    286 on at
    Hi,
     
    this should work for what you need if you table extend on item table. Also add some control on the user setup with the boolean for ITNotify.
     
    I have not tested this so please try in SB enviroment and ensure it all works before you add the Live.
     
        trigger OnAfterModify()
        var
            RecEmailM: Codeunit "Email Message";
            RecEmail: Codeunit Email;
            Body: Text;
            Msg: Label 'Hello <br><br>The Item No. is <strong>%1</strong>.<br><br>The Profit Percentage has changed, causing the Unit Price to be different from the Sales Price.<br><br>Regards,<br>BC System Message';
            UserSetup: Record "User Setup";
            UserIdVar: Text[100];
            EmailCreated: Boolean;
        begin
            if (Rec."Profit %" <> xRec."Profit %") and (Rec."Unit Price" <> xRec."Unit Price") then begin
                UserSetup.SETRANGE(ITNotify, TRUE);
                if UserSetup.FINDSET THEN BEGIN
                    REPEAT
                        UserIdVar := FORMAT(UserSetup."User ID");
                        Body := StrSubstNo(Msg, Rec."No.");
     
                        RecEmailM.Create(UserSetup."E-Mail", 'Item - Email Notification', Body, true);
     
                        IF NOT RecEmail.Send(RecEmailM) THEN BEGIN
                            ERROR('Failed to send email to user: %1', UserIdVar);
                        END;
                    UNTIL UserSetup.NEXT = 0;
                END;
                Message('Profit % has changed for item %1, causing the Unit Price to be different from the Sales Price.', rec."No.");
            end;
        end;

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,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans