Schedule jobs to adjust and reconcile inventory cost
Schedule Jobs for automatic cost adjustment with the general ledger, posting to the general ledger are turned on by default. However, as data accumulates over time that might impact performance. To reduce the load on the application, it's often helpful to use job queue entries to move tasks to run in the background.
Move the task of adjusting item costs to the background with the help of assisted setup
Creating the job queue entries can be tricky, even for an experienced consultant, so we have an assisted setup guide to make the process easier for adjusting item costs.
- Choose the icon, enter Inventory Setup, and then choose the related link.
- On the Inventory Setup page, toggle the Automatic Cost Posting field, or specify Never in the Automatic Cost Adjustment field.
- In the notification that now displays at the top of the page, choose the Schedule Job Queue Entry link. This opens the Schedule Cost Adjustment and Posting assisted setup guide.
- Specify the task that you want to schedule.
Note
You cannot create a new job queue entry if a job queue entry for the specified task already exists.
- Select the View job queue entries when finished field to review and adjust settings. For more information, see Use Job Queues to Schedule Tasks.
To create a job queue entry for adjusting and reconciling inventory cost manually
Alternatively, you can create job queue entries manually. The following procedure shows how to set the Adjust Cost - Item Entries batch job to automatically run daily, but the same steps apply to the Post Inventory Cost to G/L batch job.
- Choose the icon, enter Job Queue Entries, and then choose the related link.
- Choose the New action.
- In the Object Type to Run field, choose Report.
- In the Object ID to Run field, choose 795, Adjust Cost - Item Entries.
- In the Next Run Date Formula field, enter 1D.
- In the Starting Time field, enter 2 AM.
- Choose the Set Status to Ready action.
Now, inventory cost will be updated every night.
To schedule a task for reconciling inventory with the general ledger, choose Codeunit 2846 Post Inventory Cost to G/L.
Tip
To avoid locking, do not schedule tasks for the Adjust Cost - Item Entries batch job, the Post Inventory Cost to G/L codeunit, and tasks for posting sales or purchasing transactions at the same time. Also, make sure that they use same job queue category.
See also
Adjust Item Costs
Reconcile Inventory Costs with the General Ledger
Use Job Queues to Schedule Tasks
Finding Pages and Information with Tell Me
Work with Business Central