mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Add debug log
This commit is contained in:
@@ -34,6 +34,7 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
|||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
use Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ReconcileController
|
* Class ReconcileController
|
||||||
@@ -75,7 +76,6 @@ class ReconcileController extends Controller
|
|||||||
$clearedAmount = '0';
|
$clearedAmount = '0';
|
||||||
$route = '';
|
$route = '';
|
||||||
|
|
||||||
|
|
||||||
if (null === $start && null === $end) {
|
if (null === $start && null === $end) {
|
||||||
throw new FireflyException('Invalid dates submitted.');
|
throw new FireflyException('Invalid dates submitted.');
|
||||||
}
|
}
|
||||||
@@ -119,6 +119,10 @@ class ReconcileController extends Controller
|
|||||||
$clearedAmount = $this->processJournal($account, $accountCurrency, $journal, $clearedAmount);
|
$clearedAmount = $this->processJournal($account, $accountCurrency, $journal, $clearedAmount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Log::debug(sprintf('Start balance: "%s"', $startBalance));
|
||||||
|
Log::debug(sprintf('End balance: "%s"', $endBalance));
|
||||||
|
Log::debug(sprintf('Cleared amount: "%s"', $clearedAmount));
|
||||||
|
Log::debug(sprintf('Amount: "%s"', $amount));
|
||||||
$difference = bcadd(bcadd(bcsub($startBalance, $endBalance), $clearedAmount), $amount);
|
$difference = bcadd(bcadd(bcsub($startBalance, $endBalance), $clearedAmount), $amount);
|
||||||
$diffCompare = bccomp($difference, '0');
|
$diffCompare = bccomp($difference, '0');
|
||||||
$countCleared = count($clearedJournals);
|
$countCleared = count($clearedJournals);
|
||||||
|
Reference in New Issue
Block a user