Skip to content

Total on Hand is Unknown for inactive Items on Itemized Reports -- should be 0. #5004

@cielf

Description

@cielf

Summary

In itemized reports, the total on hand for inactive items should be 0, rather than "Unknown"

Why

We only allow items to be deactivated if the total on hand is 0, so we do know.

Details

To see this,
sign in as [email protected],

Reduce the quantities in inventory on Adult Briefs (Medium/Large) to 0 (I usually use a couple of distributions to do this.), then go in to Inventory | Items & Inventory and deactivate the item

click reports, then 'Itemized Donations'.

You'll see that the Total On Hand for Adult Briefs (Medium/Large) is Unknown. We know that it is 0. (screenshot is from a different example, but you get the idea)

Image

This is left from when we allowed deactivation of items without first 0ing the inventory.

The Total On Hand should be 0 for any inactive item.

Confirm and fix this behaviour on Donations - Itemized, Distributions - Itemized, and Purchases - Itemized.

Criteria for Completion

  • Total On Hand shows 0 for any inactive item
  • Tests to confirm

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions