Add basic inventory option
Use ORM aggregates
Refactor due to recent changes
Refactor filter get value
Move location stuff into advanced data
Merge pull request #4974 from dimagi/basic-inventory

Add basic inventory option