Codit / lunchorder

Order lunch at your enterprise with ease
MIT License
10 stars 6 forks source link

Keep track of balance after prepay change #109

Open jvanderbiest opened 7 years ago

jvanderbiest commented 7 years ago

When adding or removing funds, keep the exact balance after change in the database.

tomkerkhove commented 7 years ago

I'm just wondering - Do we keep an audit trail of whom changed the balance? ie. funds added by X, lunch ordered by Y, etc.

jvanderbiest commented 7 years ago

yes, currently we keep track of the people and the amount during an update of your balance (starting here: https://github.com/CoditEU/lunchorder/blob/master/backend/WebApi/Lunchorder.Api/Controllers/BalanceController.cs#L44). But I would also like to have the exact current balance at the time of change so you can track back easily in case of problems.