Skip to main content

Notifications

Business Central forum
Answered

Prepayment status update only daily

Posted on by 2,212

Hi All,

When creating prepayments - say purchase order, status changes to pending prepayment.  Once the actual payment is made status does not update till next day, by a scheduler.  Is it possible to get the system to change status immediately?

Thanks

Categories:
  • Samantha73 Profile Picture
    Samantha73 2,212 on at
    RE: Prepayment status update only daily

    Awesome..this is the easiest solution without any coding. I cannot seem to figure out why anyone doesn't want to instantaneously update prepayment status so cannot explain the logic around default system settings but for now its fixed

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Prepayment status update only daily

    Samantha,

    Adding to the replies above, in the Job Queue you can add one related too Codeunit 384 and set the run time to every minute or so. See my setup below:

    pastedimage1614951045446v1.png pastedimage1614951109297v2.png

    Hope this helps.

    Thanks,

    Steve

  • RE: Prepayment status update only daily

    You are right, so to achieve this, then a new event sub could also be required via GitHub.

    Or ask Microsoft via IDEAS to add this possibility.

    Thanks :)

  • Suggested answer
    RE: Prepayment status update only daily

    Hello Samantha73,

    There is a field in Purchases & Payables Setup (same for Sales) to control this: "Prepmt. Auto Update Frequency", but unfortunately it contains fixed values to: Never, Daily, Weekly

    pastedimage1614926930096v1.png

    I guess this could be achieved with a customization by adding a new option to that field in setup and checking the function UpdateFrequencyToNoOfMinutes in Codeunit 441 Prepayment Mgt., and all the references to UpdateFrequency in other functions like CreateAndStartJobQueueEntry, etc.

    pastedimage1614927470696v2.png

    I hope it helps,

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,141 on at
    RE: Prepayment status update only daily

    The prepayment mgt. codeunit just creates a job queue entry for codeunit Upd. Pending Prepmt. Purchase so you could have an entry on the job queue recurring. The function in the prepayment mgt. codeunit is a global but not event sub exists.

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans