|
| 1 | +--- |
| 2 | +title: Adjust Reconcile Cost with G/L using Job Queue |
| 3 | +description: Learn how you can use the job queue to move the tasks for adjusting inventory cost or reconciling it with the GL to the background. For example, if your company runs many tasks or processes many transactions. |
| 4 | +author: AndreiPanko |
| 5 | + |
| 6 | +ms.service: dynamics365-business-central |
| 7 | +ms.topic: article |
| 8 | +ms.devlang: na |
| 9 | +ms.tgt_pltfrm: na |
| 10 | +ms.workload: na |
| 11 | +ms.reviewer: edupont |
| 12 | +ms.date: 07/28/2021 |
| 13 | +ms.author: andreipa |
| 14 | + |
| 15 | +--- |
| 16 | +# Adjust and Reconcile Inventory Cost with General Ledger with Job Queue |
| 17 | + |
| 18 | +To optimize the experience, automatic cost adjustment and 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 is often helpful to use job queue entries to move tasks to run in the background. |
| 19 | + |
| 20 | +## Move the task of adjusting item costs to the background with the help of assisted setup |
| 21 | + |
| 22 | +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. |
| 23 | + |
| 24 | +1. Choose the  icon, enter **Inventory Setup**, and then choose the related link. |
| 25 | +2. On the **Inventory Setup** page, toggle the **Automatic Cost Posting** field, or specify **Never** in the **Automatic Cost Adjustment** field. |
| 26 | +3. In the notification that now displays at the top of the page, choose the **Schedule Job Queue Entry** link. |
| 27 | +4. Specify the task that you want to schedule. |
| 28 | + |
| 29 | + > [!NOTE] |
| 30 | + > You cannot create a new job queue entry if a job queue entry for the specified task already exists. |
| 31 | +5. Select the **View job queue entries when finished** field to review and adjust settings. For more information, see [Use Job Queues to Schedule Tasks](admin-job-queues-schedule-tasks.md). |
| 32 | + |
| 33 | +## To create a job queue entry for adjusting and reconciling inventory cost manually |
| 34 | + |
| 35 | +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. |
| 36 | + |
| 37 | +1. Choose the  icon, enter **Job Queue Entries**, and then choose the related link. |
| 38 | +2. Choose the **New** action. |
| 39 | +3. In the **Object Type to Run** field, choose *Report*. |
| 40 | +4. In the **Object ID to Run** field, choose *795*, **Adjust Cost - Item Entries**. |
| 41 | +5. In the **Next Run Date Formula** field, enter *1D*. |
| 42 | +6. In the **Starting Time** field, enter *2 AM*. |
| 43 | +7. Choose the **Set Status to Ready** action. |
| 44 | + |
| 45 | +Now, inventory cost will be updated every night. |
| 46 | + |
| 47 | +To schedule a task for reconciling inventory with the general ledger, choose Codeunit 2846 **Post Inventory Cost to G/L**. |
| 48 | + |
| 49 | + |
| 50 | +> [!NOTE] |
| 51 | +> 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, and make sure that they use same Job Queue Category. |
| 52 | +
|
| 53 | +## See Also |
| 54 | + |
| 55 | +[Adjust Item Costs](inventory-how-adjust-item-costs.md) |
| 56 | +[Reconcile Inventory Costs with the General Ledger](finance-how-to-post-inventory-costs-to-the-general-ledger.md) |
| 57 | +[Use Job Queues to Schedule Tasks](admin-job-queues-schedule-tasks.md) |
| 58 | +[Finding Pages and Information with Tell Me](ui-search.md) |
| 59 | +[Working with [!INCLUDE[d365fin](includes/d365fin_md.md)]](ui-work-product.md) |
0 commit comments