Basic check on numbers, needs improv still.

This commit is contained in:
Sander Dorigo
2025-10-10 08:46:11 +02:00
parent d4978a09ee
commit 70b8ea0acb

View File

@@ -81,6 +81,12 @@ class ReconcileController extends Controller
if (!$start instanceof Carbon && !$end instanceof Carbon) {
throw new FireflyException('Invalid dates submitted.');
}
if(!is_numeric($startBalance)) {
$startBalance = '0';
}
if(!is_numeric($endBalance)) {
$endBalance = '0';
}
if ($end->lt($start)) {
[$start, $end] = [$end, $start];
}