Skip to main content

Notifications

Announcements

No record found.

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
    Inge M. Bruvik 993 Super User 2024 Season 1 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans