Negative Inventory in Business Central: Why Cost of Goods Sold Swings and How to Get Out
What a sale without stock does to costing, an exit plan by item group with Prevent Negative Inventory, and the period controls that stop last month's margin changing.
When an item goes negative in Business Central, the sale posts before there is a receipt to take its cost from. The outbound entry stays open and is costed provisionally, often at zero or an out of date unit cost. When the receipt arrives, cost adjustment applies it to the old sale and moves the real cost into the period of the sale, so last month's cost of goods sold changes after you reported it. The way out is an exit plan by item group: find why each group goes negative, fix the posting order, then turn on Prevent Negative Inventory group by group. Close inventory periods and posting dates so adjustments can no longer reach a reported month.
What does negative inventory do to cost of goods sold in Business Central?
Business Central costs a sale by applying the outbound item ledger entry to an inbound entry: a purchase receipt, an output, a positive adjustment. If the quantity is not there when the sale is posted, the outbound entry has nothing to apply to. It is posted with a provisional cost, which depending on the costing method and the item's history can be the last known unit cost or zero, and it stays open.
When the receipt is posted later, Business Central applies it to the open outbound entry, and the next run of Adjust Cost - Item Entries corrects the cost of the sale. The correction is dated in the period of the original sale where that period is still open. So cost of goods sold for a month you already reported moves, margin per item swings, and items sold while negative can show a gross margin close to the full sales price until the adjustment runs.
Why does the cost sometimes stay at zero?
Because the open outbound entry has never been closed by an inbound entry, or because adjustment has not run since it was. Common causes are an item that is shipped from stock that was never received in the system, receipts posted against a different item number or variant, stock moved between locations without a transfer, and output posted after consumption in production. A sale posted from a location where the item was never received stays negative there even if the company has stock elsewhere.
If cost adjustment is not running on a schedule, or runs but cannot finish, provisional costs also linger. Slow or failing Adjust Cost - Item Entries is its own problem, covered on costing method cleanup and slow Adjust Cost.
Which processes usually drive items negative?
The posting order is wrong, not the costing engine. The usual suspects:
| Process | Why it goes negative | Where to look |
|---|---|---|
| Shipping before receiving | Goods arrive and leave the same day, but the warehouse posts the shipment before the purchase receipt | Purchase receipts posted later than the sales shipments for the same item and location |
| Backflushed production | Components are consumed on output before they are received or transferred to the production location | See backflushing and consumption |
| Transfers | Stock is shipped from the new location before the transfer is received | See transfer orders stuck in transit |
| Wrong location or variant | Stock is received in one location or variant and sold from another | Item ledger entries by location and variant for the negative items |
| Migration opening balances | Sales history loaded or opening stock posted after the first sales | The opening balance journal date against the first sales after go-live |
How do you get out of negative inventory by item group?
Not by switching the setting on for everything on a Monday. Work group by group, so each change is tested and each correction is posted deliberately.
- List items with negative quantity on hand by location and variant, and group them by item category or the process that drives them.
- For each group, find the cause in the table above and fix the process: post receipts before shipments, transfer components to the production location, correct the location or variant.
- Correct the current quantities with a physical inventory or item journal, dated in the open period, after the open outbound entries are known.
- Run Adjust Cost - Item Entries for the group, then post inventory cost to the general ledger, and check the cost of the affected sales.
- Set Prevent Negative Inventory on the item cards of that group, so a sale or consumption without stock is blocked instead of posted.
- When every group is clean, set Prevent Negative Inventory on Inventory Setup as the default, and keep it off only for documented exceptions.
What does Prevent Negative Inventory change for users?
Posting a shipment, consumption or negative adjustment that would take the item below zero at that location is refused, with an error that names the item. That is the point: the warehouse has to post the receipt or transfer first. The setting exists on Inventory Setup as the company default and on each item card, where the item setting can override the default, which is what makes the group by group exit possible.
Expect some friction in the first weeks. Warehouse staff who are used to shipping first will hit the error, and the fix is in the order of work, not in turning the setting back off. Agree a short escalation path with the warehouse lead for genuine same day cross docking.
How do you stop last month's margin changing after the close?
Close the period on both the general ledger and the inventory side, and run cost adjustment before you close, not after.
- Run Adjust Cost - Item Entries and post inventory cost to the general ledger as the last steps before the close, then reconcile inventory valuation to the inventory account.
- Close the inventory period for the month. Business Central then blocks item ledger postings dated in that period, and adjustments are posted in the next open period instead.
- Move Allow Posting From on General Ledger Setup to the first day of the new month, and set Allow Posting From and To on User Setup for the few users who may post into an earlier period.
- Where your version offers Adjust Cost Until Valuation Date or a similar setting, use it to keep adjustment runs from reaching back into a closed month.
- Keep the month end routine written down, so the order of adjust, post, reconcile and close does not depend on one person.
How should returns and corrections be posted so cost stays right?
With fixed application. A sales return should carry the original shipment's item ledger entry in Appl.-from Item Entry, so the returned goods come back at the cost they left at, rather than at whatever the current cost is. A purchase return should carry Appl.-to Item Entry for the original receipt. Corrective credit memos created from the posted document fill these fields for you; typed returns usually do not. Without fixed application, a return can create a new cost layer that moves margin on the original sale or on later sales.
When is the negative inventory problem really a costing method problem?
When negative stock has been allowed for years, average cost items with many back dated postings can take a long time to adjust, and the valuation report may not agree with the general ledger even after the negative quantities are cleared. At that point the work is a costing cleanup: checking costing methods, running adjustment item by item, and reconciling valuation. That is set out on costing method cleanup and slow Adjust Cost. Production orders that cannot be finished because entries are not fully applied are covered on production order cannot finish: not fully applied.
What should you tell the auditor?
What happened, what was corrected and which control now prevents it. A short note per item group: why it went negative, the date the process was changed, the correcting entries and their period, and the date Prevent Negative Inventory was set. Add the month end routine with the inventory period close. Auditors usually care less that cost moved than that the business now knows why and has a control that stops it moving after the period is reported.
What does Solzet deliver for negative inventory and costing problems?
Solzet analyses the item ledger to find which item groups go negative and why, works with the warehouse and finance on the posting order, posts the corrections, runs and verifies cost adjustment, sets Prevent Negative Inventory group by group, and writes the month end routine with inventory period and posting date controls. We test each step in a sandbox copy of your company before production and reconcile inventory valuation to the general ledger. Our own senior consultants and developers do the work. The service line is Dynamics 365 Business Central.
Businesses deciding between Business Central and a lighter stack beside a custom CRM get that advice too. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why is cost of goods sold zero for some sales in Business Central?
The item was negative when the sale was posted, so the outbound entry had no receipt to take its cost from and was costed provisionally. When a receipt is posted and cost adjustment runs, the real cost is applied to the sale.
Why did last month's cost of goods sold change after we reported it?
Cost adjustment corrects open outbound entries in the period of the original sale while that period is open. Closing the inventory period and moving the allowed posting dates stops adjustments reaching a reported month.
Should we turn on Prevent Negative Inventory for all items at once?
No. Fix the posting order and correct quantities group by group, then set it on the item cards of each clean group, and make it the default on Inventory Setup when every group is clean.
Does Prevent Negative Inventory stop warehouse work?
It stops posting a shipment or consumption before the stock is received at that location. The fix is to post receipts and transfers first, with an agreed escalation for genuine same day cross docking.
How do we stop returns changing cost?
Use fixed application: Appl.-from Item Entry on sales returns and Appl.-to Item Entry on purchase returns, filled automatically when you create corrective credit memos from the posted document.
Is negative inventory why Adjust Cost takes so long?
It contributes, especially on average cost items with many back dated postings. If adjustment stays slow after the negatives are cleared, treat it as a costing cleanup.
Can Solzet clean up negative inventory in Business Central?
Yes. We find the causes by item group, fix the posting order with your team, post and verify corrections, set Prevent Negative Inventory and write the month end controls, tested in a sandbox first.
Where should you go next?
Costing method cleanup and slow Adjust Cost
Mixed costing methods, slow adjustment and valuation against the G/L.
Production order cannot finish
Entries not fully applied and how to close the order.
Backflushing and consumption
Components consumed before they are on hand.
Transfer orders stuck in transit
Stock shipped from a location before it arrived.
Business Central implementation
Inventory, costing, month end and support on Business Central online.
Month end close in four days
The close routine the inventory steps fit into.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.