mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	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\Http\RedirectResponse; | ||||
| use Illuminate\Http\Response as LaravelResponse; | ||||
| use Illuminate\Support\Facades\Log; | ||||
| use Illuminate\View\View; | ||||
| 
 | ||||
| /** | ||||
| @@ -71,6 +72,7 @@ class IndexController extends Controller | ||||
| 
 | ||||
|             return redirect(route('export.index')); | ||||
|         } | ||||
|         Log::debug('Will export from the UI.'); | ||||
| 
 | ||||
|         /** @var ExportDataGenerator $generator */ | ||||
|         $generator = app(ExportDataGenerator::class); | ||||
| @@ -83,6 +85,7 @@ class IndexController extends Controller | ||||
|         $firstDate->subYear(); | ||||
|         $journal   = $this->journalRepository->firstNull(); | ||||
|         if (null !== $journal) { | ||||
|             Log::debug('First journal is NULL, using today() - 1 year.'); | ||||
|             $firstDate = clone $journal->date; | ||||
|         } | ||||
|         $generator->setStart($firstDate); | ||||
|   | ||||
| @@ -731,6 +731,7 @@ class ExportDataGenerator | ||||
|      */ | ||||
|     private function exportTransactions(): string | ||||
|     { | ||||
|         Log::debug('Will now export transactions.'); | ||||
|         // 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']; | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user