Update budget box and rebuild frontend.

This commit is contained in:
James Cole
2023-02-18 18:48:55 +01:00
parent d403f4f9d3
commit e3a71b64f8
40 changed files with 451 additions and 84 deletions

View File

@@ -60,6 +60,16 @@ interface BudgetRepositoryInterface
*/
public function budgetedInPeriod(Carbon $start, Carbon $end): array;
/**
* Returns the amount that is budgeted in a period.
*
* @param Budget $budget
* @param Carbon $start
* @param Carbon $end
* @return array
*/
public function budgetedInPeriodForBudget(Budget $budget, Carbon $start, Carbon $end): array;
/**
* @return bool
*/
@@ -195,6 +205,16 @@ interface BudgetRepositoryInterface
*/
public function spentInPeriod(Carbon $start, Carbon $end): array;
/**
* Used in the v2 API to calculate the amount of money spent in a single budget..
*
* @param Carbon $start
* @param Carbon $end
*
* @return array
*/
public function spentInPeriodForBudget(Budget $budget, Carbon $start, Carbon $end): array;
/**
* @param array $data
*