Skip to content

Enable banks to be able to retrieve inventory item counts across different timeframes #2377

@edwinthinks

Description

@edwinthinks

Summary

We've been asked on numerous occasions to be able to give banks the ability to know how much of what item they had at a given point in time. Unfortunately, we don't currently have the tools or system in place to be able to service this request. Therefore we should include the system and tools to be able to do this.

See below in the Criteria for Completion on what steps we may need to take.

Things to Consider

This won't be able to figure out what item counts were in the past. This would only start taking affect after this has been released

Criteria for Completion

  • Add https://github.com/paper-trail-gem/paper_trail gem
  • Store changes in JSONB so that querying is easier if we wanted to use SQL directly
  • Update InventoryItem to paper trail or track when it is created, updated, or discarded.
  • Add a new page where bank users can see the inventory count at different time frames across all storage locations. You can probably use version_at method shown in paper trail's README.
  • Backfill all InventoryItem records to have an initial audit or paper trail record for the current time.

Metadata

Metadata

Assignees

Labels

Help WantedGroomed + open to all!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions