mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Small fixes.
This commit is contained in:
@@ -187,7 +187,7 @@ class CategoryController extends Controller
|
|||||||
$spentArray = $repository->spentInPeriodPerCurrency(new Collection([$category]), $accounts, $start, $end);
|
$spentArray = $repository->spentInPeriodPerCurrency(new Collection([$category]), $accounts, $start, $end);
|
||||||
foreach ($spentArray as $currencyId => $spent) {
|
foreach ($spentArray as $currencyId => $spent) {
|
||||||
if (bccomp($spent, '0') === -1) {
|
if (bccomp($spent, '0') === -1) {
|
||||||
$currencies[$currencyId] = $currencies[$currencyId] ?? $currencyRepository->findNull($currencyId);
|
$currencies[$currencyId] = $currencies[$currencyId] ?? $currencyRepository->findNull((int)$currencyId);
|
||||||
$tempData[] = [
|
$tempData[] = [
|
||||||
'name' => $category->name,
|
'name' => $category->name,
|
||||||
'spent' => bcmul($spent, '-1'),
|
'spent' => bcmul($spent, '-1'),
|
||||||
|
@@ -138,7 +138,7 @@ class InstallController extends Controller
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Log::debug('Am now calling upgrade database routine...');
|
Log::debug('Am now calling upgrade database routine...');
|
||||||
Artisan::call('firefly:upgrade-database');
|
Artisan::call('firefly:upgrade-database', ['--force' => true]);
|
||||||
Log::debug(Artisan::output());
|
Log::debug(Artisan::output());
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
@@ -165,7 +165,7 @@ class InstallController extends Controller
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Log::debug('Am now calling verify database routine...');
|
Log::debug('Am now calling verify database routine...');
|
||||||
Artisan::call('firefly:verify');
|
Artisan::call('firefly:verify', ['--force' => true]);
|
||||||
Log::debug(Artisan::output());
|
Log::debug(Artisan::output());
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
|
Reference in New Issue
Block a user