mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-17 02:05:34 +00:00
Merge pull request #10081 from firefly-iii/debug-10068
Add debug for #10068
This commit is contained in:
@@ -32,6 +32,7 @@ use FireflyIII\Support\Export\ExportDataGenerator;
|
|||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Illuminate\Http\RedirectResponse;
|
use Illuminate\Http\RedirectResponse;
|
||||||
use Illuminate\Http\Response as LaravelResponse;
|
use Illuminate\Http\Response as LaravelResponse;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -71,6 +72,7 @@ class IndexController extends Controller
|
|||||||
|
|
||||||
return redirect(route('export.index'));
|
return redirect(route('export.index'));
|
||||||
}
|
}
|
||||||
|
Log::debug('Will export from the UI.');
|
||||||
|
|
||||||
/** @var ExportDataGenerator $generator */
|
/** @var ExportDataGenerator $generator */
|
||||||
$generator = app(ExportDataGenerator::class);
|
$generator = app(ExportDataGenerator::class);
|
||||||
@@ -83,6 +85,7 @@ class IndexController extends Controller
|
|||||||
$firstDate->subYear();
|
$firstDate->subYear();
|
||||||
$journal = $this->journalRepository->firstNull();
|
$journal = $this->journalRepository->firstNull();
|
||||||
if (null !== $journal) {
|
if (null !== $journal) {
|
||||||
|
Log::debug('First journal is NULL, using today() - 1 year.');
|
||||||
$firstDate = clone $journal->date;
|
$firstDate = clone $journal->date;
|
||||||
}
|
}
|
||||||
$generator->setStart($firstDate);
|
$generator->setStart($firstDate);
|
||||||
|
@@ -731,6 +731,7 @@ class ExportDataGenerator
|
|||||||
*/
|
*/
|
||||||
private function exportTransactions(): string
|
private function exportTransactions(): string
|
||||||
{
|
{
|
||||||
|
Log::debug('Will now export transactions.');
|
||||||
// TODO better place for keys?
|
// TODO better place for keys?
|
||||||
$header = ['user_id', 'group_id', 'journal_id', 'created_at', 'updated_at', 'group_title', 'type', 'currency_code', 'amount', 'foreign_currency_code', 'foreign_amount', 'native_currency_code', 'native_amount', 'native_foreign_amount', 'description', 'date', 'source_name', 'source_iban', 'source_type', 'destination_name', 'destination_iban', 'destination_type', 'reconciled', 'category', 'budget', 'bill', 'tags', 'notes'];
|
$header = ['user_id', 'group_id', 'journal_id', 'created_at', 'updated_at', 'group_title', 'type', 'currency_code', 'amount', 'foreign_currency_code', 'foreign_amount', 'native_currency_code', 'native_amount', 'native_foreign_amount', 'description', 'date', 'source_name', 'source_iban', 'source_type', 'destination_name', 'destination_iban', 'destination_type', 'reconciled', 'category', 'budget', 'bill', 'tags', 'notes'];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user