This app is a custom made accounting system for “KK400 Ølloge (tm)”. The main features, is that one accountant can add lines for each type of beverage a user has been drinking the past month, and then print a new sheet to be hung on the fridge.
Other than that, an admin can create new products, new users, new admins (with same privileges) and update some meta statistics. An admin can also hide products and users, without removing their data from the app.
Some graphs are available, with each product for each user plotted against time. Highcharts ® are used here, to provide an easy way to do this.
When updating an account all the actual updating is given to an IronWorker. This is done because we might create as many as 5 bills and a payment for each user when updating an account.
The first administrator has to be made via the console. Other than that, each admin is able to create new admins with the same privileges (all admins have the same privileges)
To create the first admin, simply run:
Administrator.create(username: 'username', password: 'password', password_confirmation: 'password')
This can be any password, and the password can be changed in the UI afterwards.