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...
Suggested Answer

Sales Order Total values not refresh when delete Sales Line OnBeforeReopenSalesDoc Event

(1) ShareShare
ReportReport
Posted on by
I am deleting Sales Order line OnBeforeReopenSalesDoc Event , Below are the coding using to delete the Sales Order line . After deleting the sales order line its not refresh the sales order /Total amount/ and /Total amount Incl GST/ fields. But actually value updated, when go back to Sales Order list and come back to Sales Order again, I can see the correct value in Total Value section. Problem is when click the ReOpen button delete the line , but can't see updated value in Total section, seems page not refresh 
 
Could you please help to sort out this issue ?
 
 
if SalesHeaderRec.GET(SalesHeader./Document Type/, SalesHeader./No./) then begin
 
            SalesLineRec.SETRANGE(/Document No./, SalesHeader./No./);
            if SalesLineRec.FINDSET() then begin
                repeat
 
                    if SalesLineRec./No./ = '8640' then begin
                        SalesLineRec.DELETE;
                    end;
                until SalesLineRec.NEXT = 0;
            end;

        end;
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at
    Maybe you can find some help in this YouTube viddeo ?
    Where Erik Hougaard discuss similar issues that what you experience.
     

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 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans