check if date is available in totals
This commit is contained in:
parent
c37203076c
commit
61d326d76a
@ -359,6 +359,10 @@ class Dashboard extends Controller
|
|||||||
$i = Date::parse($item->paid_at)->quarter;
|
$i = Date::parse($item->paid_at)->quarter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($totals[$i])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$totals[$i] += $item->getConvertedAmount();
|
$totals[$i] += $item->getConvertedAmount();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user