AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

fix: reset remaining budget for new period and fix hard coded duration #1976

Closed PeterMPhillips closed 4 years ago

PeterMPhillips commented 4 years ago

This PR fixes two things: 1) It removes the hardcoded 'per 30 days' in BudgetDetails and sets it based on period.duration 2) If the current time is past the endDate time of the contract period. the budget remaining is set to the full budget amount. this way users can allocate funds after the period has ended