{"title":"Design details: Cost adjustment","url":"https://jonas-paprotka.de/docs/design-details-cost-adjustment/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/design-details-cost-adjustment, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/design-details-cost-adjustment","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Cost adjustment forwards cost changes from cost sources to cost recipients according to an item’s costing method, to provide correct inventory valuation.","date":"2026-03-17","meta":{"topic":"article"},"outline":[{"level":2,"title":"Detecting the adjustment","slug":"detecting-the-adjustment","at":1044,"chars":1957},{"level":3,"title":"Item application entry","slug":"item-application-entry","at":1611,"chars":455},{"level":3,"title":"Average cost adjustment entry point","slug":"average-cost-adjustment-entry-point","at":2066,"chars":362},{"level":3,"title":"Order level","slug":"order-level","at":2428,"chars":573},{"level":2,"title":"Manual versus automatic cost adjustment","slug":"manual-versus-automatic-cost-adjustment","at":3001,"chars":2218},{"level":2,"title":"Adjust dost - Item Entries batch job","slug":"adjust-dost---item-entries-batch-job","at":5219,"chars":2281},{"level":3,"title":"Example","slug":"example","at":5592,"chars":1908},{"level":4,"title":"Value Entries (1)","slug":"value-entries-1","at":5888,"chars":194},{"level":4,"title":"Relation Entries in the G/L - Item Ledger Relation Table (1)","slug":"relation-entries-in-the-gl---item-ledger-relation-table-1","at":6082,"chars":137},{"level":4,"title":"General Ledger Entries (1)","slug":"general-ledger-entries-1","at":6219,"chars":667},{"level":4,"title":"Value Entries (2)","slug":"value-entries-2","at":6886,"chars":207},{"level":4,"title":"Relation Entries in the G/L - Item Ledger Relation Table (2)","slug":"relation-entries-in-the-gl---item-ledger-relation-table-2","at":7093,"chars":137},{"level":4,"title":"General Ledger Entries (2)","slug":"general-ledger-entries-2","at":7230,"chars":270},{"level":2,"title":"Automatic cost adjustment","slug":"automatic-cost-adjustment","at":7500,"chars":2359},{"level":3,"title":"Example","slug":"example-1","at":8899,"chars":960},{"level":2,"title":"Related information","slug":"related-information","at":9859,"chars":507}],"text":"The main purpose of cost adjustment is to forward cost changes from cost sources to cost recipients, according to an item's costing method, to provide correct inventory valuation.\nAn item can be sales invoiced before it has been purchase invoiced, so that the recorded inventory value of the sale does not match the actual purchase cost. Cost adjustment updates the cost of goods sold (COGS) for historic sales entries to ensure that they match the costs of the inbound transactions to which they are applied. See design-details-item-application.\nThe following are secondary purposes, or functions, of cost adjustment:\n Invoice finished production orders:\n   Change the status of value entries from Expected to Actual.\n   Clear WIP accounts. See design-details-production-order-posting.\n   Post variance. See design-details-variance.\n   Update the unit cost on the item card.\nInventory costs must be adjusted before the related value entries can be reconciled with the general ledger. See design-details-reconciliation-with-the-general-ledger.\n## Detecting the adjustment\nThe task of detecting if cost adjustment should occur is primarily performed by the Item Jnl.-Post Line routine, while the task of calculating and generating cost adjustment entries is performed by the Adjust Cost - Item Entries batch job.\nTo be able to forward costs, the detection mechanism determines which sources have changed in costs and to which destination these costs should be forwarded. The following three detection functions exist in Business Central:\n Item Application Entry\n Average Cost Adjustment Entry Point\n Order Level\n### Item application entry\nThis detection function is used for items that use FIFO, LIFO, Standard, and Specific costing methods and for fixed applications scenarios. The function works as follows:\n Cost adjustment is detected by marking the source item ledger entries as Applied Entry to Adjust whenever an item ledger entry or value entry is posted.\n Cost is forwarded according to the cost chains that are recorded in the Item Application Entry table.\n### Average cost adjustment entry point\nThis detection function is used for items that use the Average costing method. The function works as follows:\n Cost adjustment is detected by marking a record in the Avg. Cost Adjmt. Entry Point table whenever a value entry is posted.\n Cost is forwarded by applying the costs to value entries with a later valuation date.\n### Order level\nThis detection function is used in conversion scenarios, production and assembly. The function works as follows:\n Cost adjustment is detected by marking the order whenever a material/resource is posted as consumed/used.\n Cost is forwarding by applying the costs from material/resource to the output entries associated with the same order.\nThe Order Level function is used to detect adjustments in assembly posting. The following graphic shows the adjustment entry structure:\n![Flow of entries in cost adjustment.]\nSee design-details-assembly-order-posting.\n## Manual versus automatic cost adjustment\nCost adjustment can be performed in two ways:\n Manually, by running the Adjust Cost - Item Entries batch job. You can run this batch job either for all items or for only certain items or item categories. This batch job runs a cost adjustment for the items in inventory for which an inbound transaction has been made, such as a purchase. For items that use the average costing method, the batch job also makes an adjustment if any outbound transactions are created.\n Automatically, by adjusting costs every time that you post an inventory transaction, and when you finish a production order. The cost adjustment is only run for the specific item or items affected by the posting. This is set up when you select the Automatic Cost Adjustment check box on the Inventory Setup page.\nIt is good practice to run the cost adjustment automatically when you post because unit costs are more frequently updated and therefore more accurate. The disadvantage is that the performance of the database can be affected by running the cost adjustment so often.\nBecause it is important to keep the unit cost of an item up to date, it is recommend that you run the Adjust Cost - Item Entries batch job as often as possible, during nonworking hours. Alternatively, use automatic cost adjustment. This ensures that the unit cost is updated for items daily.\nRegardless if you run the cost adjustment manually or automatically, the adjustment process and its consequences are the same. Business Central calculates the value of the inbound transaction and forwards that cost to any outbound transactions, such as sales or consumptions, which have been applied to the inbound transaction. The cost adjustment creates value entries that contain adjustment amounts and amounts that compensate for rounding.\nThe new adjustment and rounding value entries have the posting date of the related invoice. Exceptions are if the value entries fall in a closed accounting period or inventory period or if the posting date is earlier than the date in the Allow Posting From field on the General Ledger Setup page. If this occurs, the batch job assigns the posting date as the first date of the next open period.\n## Adjust dost - Item Entries batch job\nWhen you run the Adjust Cost - Item Entries batch job, you have the option to run the batch job for all items or for only certain items or categories.\n> NOTE\n> We recommend that you always run the batch job for all items and only use the filtering option to reduce the runtime of the batch job, or to fix the cost of a certain item.\n### Example\nThe following example shows if you post a purchased item as received and invoiced on 01-01-20. You later post the sold item as shipped and invoiced on 01-15-20. Then, you run the Adjust Cost - Item Entries and Post Inventory Cost to G/L batch jobs. The following entries are created.\n#### Value Entries (1)\nPosting Date|Item Ledger Entry Type|Cost Amount (Actual)|Cost Posted to G/L|Invoiced Quantity|Entry No.\n01-01-20|Purchase|10.00|10.00|1|1\n01-15-20|Sale|-10.00|-10.00|-1|2\n#### Relation Entries in the G/L - Item Ledger Relation Table (1)\nG/L Entry No.|Value Entry No.|G/L Register No.\n1|1|1\n2|1|1\n3|2|1\n4|2|1\n#### General Ledger Entries (1)\nPosting Date|G/L Account|Account No. (En-US Demo)|Amount|Entry No.\n01-01-20|[Inventory Account]|2130|10.00|1\n01-01-20|[Direct Cost Applied Account]|7291|-10.00|2\n01-15-20|[Inventory Account]|2130|-10.00|3\n01-15-20|[COGS Account]|7290|10.00|4\nLater, you post a related purchase item charge for 2.00 LCY invoiced on 02-10-20. You run the Adjust Cost - Item Entries batch job and then run the Post Inventory Cost to G/L batch job. The cost adjustment batch job adjusts the cost of the sale by -2.00 LCY accordingly, and the Post Inventory Cost to G/L batch job posts the new value entries to the general ledger. The result is as follows.\n#### Value Entries (2)\nPosting Date|Item Ledger Entry Type|Cost Amount (Actual)|Cost Posted to G/L|Invoiced Quantity|Adjustment|Entry No.\n02-10-20|Purchase|2.00|2.00|0|No|3\n01-15-20|Sale|-2.00|-2.00|0|Yes|4\n#### Relation Entries in the G/L - Item Ledger Relation Table (2)\nG/L Entry No.|Value Entry No.|G/L Register No.\n5|3|2\n6|3|2\n7|4|2\n8|4|2\n#### General Ledger Entries (2)\nPosting Date|G/L Account|Account No. (En-US Demo)|Amount|Entry No.\n02-10-20|[Inventory Account]|2130|2.00|5\n02-10-20|[Direct Cost Applied Account]|7291|-2.00|6\n01-15-20|[Inventory Account]|2130|-2.00|7\n01-15-20|[COGS Account]|7290|2.00|8\n## Automatic cost adjustment\nTo set up cost adjustment to run automatically when you post an inventory transaction, use the Automatic Cost Adjustment field on the Inventory Setup page. This field enables you to select how far back in time from the current work date that you want automatic cost adjustment to be performed. The following options exist.\nOption|Description\nNever|Costs are not adjusted when you post.\nDay|Costs are adjusted if posting occurs within one day from the work date.\nWeek|Costs are adjusted if posting occurs within one week from the work date.\nMonth|Costs are adjusted if posting occurs within one month from the work date.\nQuarter|Costs are adjusted if posting occurs within one quarter from the work date.\nYear|Costs are adjusted if posting occurs within one year from the work date.\nAlways|Costs are always adjusted when you post, regardless of the posting date.\nThe selection that you make in the Automatic Cost Adjustment field is important for performance and the accuracy of your costs. Shorter time periods, such as Day or Week, affect system performance less, because they provide the stricter requirement that only costs posted in the last day or week can be automatically adjusted. This means that the automatic cost adjustment does not run as frequently and therefore affects system performance less. However, it also means that unit costs may be less accurate.\n### Example\nThe following example shows an automatic cost adjustment scenario:\n On January 10, you post a purchased item as received and invoiced.\n On January 15, you post a sales order for the item as shipped and invoiced.\n On February 5, you receive an invoice for a freight charge on the original purchase. You post this freight charge, applying it to the original purchase invoice, which increases the cost of the original purchase.\nIf you have set up the automatic cost adjustment to apply to postings that occur within a month or a quarter from the current work date, then the automatic cost adjustment runs and forwards the cost of the purchase to the sale.\nIf you have set up the automatic cost adjustment to apply to postings that occur within a day or a week from the current work date, then the automatic cost adjustment does not run, and the cost of the purchase is not forwarded to the sale until you run the Adjust Cost - Item Entries batch job.\n## Related information\ninventory-how-adjust-item-costs\ndesign-details-inventory-costing\ndesign-details-reconciliation-with-the-general-ledger\ndesign-details-inventory-posting\ndesign-details-variance\ndesign-details-assembly-order-posting\ndesign-details-production-order-posting\nManaging Inventory Costs<finance-manage-inventory-costs>\nfinance\nWork with Business Central<ui-work-product>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}