web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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
    IB-29041624-0 Profile Picture
    1,191 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 664 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 282 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans