mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-21 21:20:04 +00:00
Merge branch 'develop' into feat/improve-request-objects
This commit is contained in:
@@ -26,6 +26,7 @@ namespace FireflyIII\Factory;
|
|||||||
use FireflyIII\Models\PiggyBank;
|
use FireflyIII\Models\PiggyBank;
|
||||||
use FireflyIII\Models\TransactionJournal;
|
use FireflyIII\Models\TransactionJournal;
|
||||||
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create piggy bank events.
|
* Create piggy bank events.
|
||||||
|
|||||||
@@ -81,6 +81,12 @@ class ReconcileController extends Controller
|
|||||||
if (!$start instanceof Carbon && !$end instanceof Carbon) {
|
if (!$start instanceof Carbon && !$end instanceof Carbon) {
|
||||||
throw new FireflyException('Invalid dates submitted.');
|
throw new FireflyException('Invalid dates submitted.');
|
||||||
}
|
}
|
||||||
|
if(!is_numeric($startBalance)) {
|
||||||
|
$startBalance = '0';
|
||||||
|
}
|
||||||
|
if(!is_numeric($endBalance)) {
|
||||||
|
$endBalance = '0';
|
||||||
|
}
|
||||||
if ($end->lt($start)) {
|
if ($end->lt($start)) {
|
||||||
[$start, $end] = [$end, $start];
|
[$start, $end] = [$end, $start];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user