No warning when a Debit Note / Sales Invoice takes inventory below zero (and cost is deducted twice)

Manager version: [26.10.11.0] – Cloud

Steps to reproduce:

  1. Purchase Invoice dated 02/09 – Item A, qty 200, cost 792.00
  2. Debit Note dated 08/09, linked to that purchase invoice – Item A, qty 200 (return to supplier)
  3. Sales Invoice dated 08/09 – Item A, qty 200

What happens:

  • Manager accepts all three without any warning (both through the UI and through Batch Create).
  • Qty owned for Item A becomes -200 and inventory value becomes -792.00.
  • Before “recalculate cost”, the sales invoice had cost 0.00. After recalculating, it took 792.00, while the debit note still takes 792.00 at the cost of the linked purchase invoice. The same 792.00 is deducted twice.
  • The cost of the sales invoice depends on which of the two same-day transactions is processed first.

Expected:

  • A warning (or optional block) when saving or importing a transaction that makes qty owned negative, showing the item and the date.
  • An “Inventory items with negative qty” check, for example in the Inventory Items tab or in Batch Create results.
  • Clear documentation on how a debit note linked to a purchase invoice is costed when qty on hand is not enough.

Negative stock is allowed by design, which is fine for some businesses. But a warning would catch data entry errors like this one before they reach COGS and the balance sheet.

I agree that an optional warning system for zero or negative inventory would be a welcome addition. However, I am having difficulty understanding what you mean by the cost being deducted twice.

The debit note takes the inventory quantity from +200 to zero, and the sales invoice subsequently takes it from zero to -200.

Regarding the costing, I suspect what you are seeing may be a temporary costing outcome resulting from selling inventory that is no longer available. After all, how can you sell something you do not have in stock?

I would suggest extending your test. Purchase another 200 units the following day, this time at a cost of 800.00, and then hit the recalculation button. Let’s see what happens to the cost of the earlier sales invoice after that recalculation.

That should help us better understand how Manager handles the costing of transactions that result in negative inventory.