Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Issue on total validation

(1) ShareShare
ReportReport
Posted on by 477

Hi All,

We have a developed a BC extension with a lot of code that manipulates the sales lines. Everything works fine but one thing.

When leaving the line, the sales document total is not refreshed. For the sales document total line to be refreshed, you need to select another existing sales line in the document.

Any idea where I should be looking at? Any way to force the total to be refreshed?

Cheers

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    Issue on total validation
    Try checking the procedure SalesDeltaUpdateTotals on Codeunit Document Totals. This is used to update the totals.
     
    Check below post for reference.
     
  • CU08051537-0 Profile Picture
    CU08051537-0 2 on at
    Issue on total validation
    Did you have a solution?
    I have the same issue. Updatepropagation property is not for this case. It is not an issue between the host page and the subpage. It is in the same Subpage. A line is updated(validated) successfully by eventsubsciber or procedures in table level, but the Subpage has some summary field to display sum of amount or quantity of the lines like below.
     
    When Gen.Prod. Posting Group Changed, Line Discount % is changed, and the Line Amount is recalculated according to the discount rate. But the Subtotal Excl. Tax and the others in the summary are not refreshed. 
     
  • Hedi Daneels Profile Picture
    Hedi Daneels 477 on at
    RE: Issue on total validation

    I added a CurrPage.Update();, this now gives me an insuficient memory error

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: Issue on total validation

    Maybe this will help: docs.microsoft.com/.../devenv-updatepropagation-property

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

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans