This commit is contained in:
James Cole
2025-10-31 06:30:56 +01:00
parent 2aabb56d2d
commit 40c4c9f109
3 changed files with 9 additions and 11 deletions

View File

@@ -96,11 +96,10 @@ class CreateController extends Controller
];
// interest calculation periods:
$interestPeriods = [
'daily' => (string) trans('firefly.interest_calc_daily'),
'monthly' => (string) trans('firefly.interest_calc_monthly'),
'yearly' => (string) trans('firefly.interest_calc_yearly'),
];
$interestPeriods = [];
foreach(config('firefly.interest_periods') as $period) {
$interestPeriods[$period] = trans(sprintf('firefly.interest_calc_%s' , $period));
}
// pre fill some data
$request->session()->flash(