Hi Tom,
Well the first thing you would need to do is set the budget for that week. So you would need your assign budget microflow to do the following:
So that’s pretty simple to do. That will help you populate your list view of EurosAmount objects like you have shown in your screen shot. You can also write a microflow for your delete button, which should just be a MF that takes a EurosAmount in as a parameter, then deletes that object.
The next thing is to add a receipt, for which you will need to create a new entity Associated with Colleague and Week (both many– to-one like EurosAmount) that has a ‘ReceiptAmount’ attribute. When users click the ‘lunch’ button:
So that is a very basic flow to set a budget for users and then decrement it as users enter receipts. There are plenty of delighters to do here, like attaching pictures to receipts, giving users a place to view receipts, or calculating and presenting how much budget is remaining for the week.
Hope this helps,
Rob