Fix null pointer in available budget calculation.

This commit is contained in:
James Cole
2026-02-27 21:25:33 +01:00
parent ae6adf90ee
commit b357a5d5ea
@@ -150,7 +150,7 @@ class AvailableBudgetCalculator
$item->start_date->format('Y-m-d'),
$item->end_date->format('Y-m-d')
));
$this->abRepository->recalculateAmount($availableBudget);
$this->abRepository->recalculateAmount($item);
}
if (!$this->create) {
Log::debug('Can stop here. have not been asked to create an available budget.');