Merge branch 'develop' into patch-1

This commit is contained in:
mergify[bot]
2025-10-10 06:46:54 +00:00
committed by GitHub

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];
}