How can I substract different amounts in Mendix

0
  Hi, I have to recreate the above in Mendix. The picture below shows what I have so far. I am struggling to figure out how to the budget and amount spending and remaining operations. Each program has a budget and every time the user spends anything the budget keeps decreasing and it should show in the Amount Spent and Amount Remaining respectively. How can I do this? 
asked
1 answers
1

Hi Minhoru Cotache,

 

Use a calculated Attribute to keep track of the Actual Budget, and have an Attribute for the Initial Budget in a Budget Entity. All Costs booked could be associated with the Budget. If you enter new costs, check using an Event if Actual Budget has room to book additional costs. If you are entering costs as a list of Cost objects, you do this after each Cost object is added to the list for that entire list. Use the Aggregate list Action to calculate the SUM of the Amount in that list. Feel free to ask more details if it is not entirely clear.

 

Go Make IT

 

 

answered