bhutch29 / abv

Bar inventory tracking system
MIT License
6 stars 2 forks source link

Feature/query-consumption-or-purchases #33

Closed ryanavella closed 6 years ago

ryanavella commented 6 years ago

Adding functionality to query the sqlite database for consumption or purchases within a specified date range (inclusive).

This functionality isn't used anywhere yet, but I plan to use it in a future subpackage "reporting" for generating reports.

I also organized the model subpackage into model.go, query.go, and update.go. Similar to how we split layout.go into views.go/viewActions.go, I think this organization scheme is more intuitive and avoids the issue of having one massive .go file.