Open jvanderbiest opened 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.
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.
When adding or removing funds, keep the exact balance after change in the database.