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

General Journal Payment: Amount not updating correctly after selecting Applies-to Doc. No.

(4) ShareShare
ReportReport
Posted on by 218
Hi All,
Amount doesn’t update on first Applies-to Doc. No. selection in payment journal; updates only after entering value manually.

Problem

  • The Amount does NOT update on first selection

  • I must select the Applies-to Doc. No. 2–3 times before the correct amount appears

  • Page refresh (CurrPage.Update) does not reliably fix it

  • Logic works correctly only after repeated interaction

 
 
 
Thank you in advance!
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    5,985 on at
    Hello ,
     
    Issue happens because code runs before the journal line is fully saved
    COMMIT inside validation breaks the UI flow → causes “works on 2nd/3rd try”
    You’re also reading from the wrong table (Purch. Inv. Line instead of Vendor Ledger Entry)
    Fix:
    Remove COMMIT
    Call CurrPage.SaveRecord() before recalculating
    Read amount from Vendor Ledger Entry
    Then Rec.Validate(Amount) + CurrPage.Update(false)
    That stabilizes the update on the first Applies-to Doc. No. selection.
     
    Regards,
    Oussama Sabbouh

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