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;
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,029 Moderator on at
    Sales Order Total values not refresh when delete Sales Line OnBeforeReopenSalesDoc Event
    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans