mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 09:00:07 +00:00
Make sure each source of transactions stores where it's from.
This commit is contained in:
@@ -235,7 +235,7 @@ class ImportableConverter
|
||||
'payment_date' => $this->convertDateValue($importable->meta['date-payment'] ?? null),
|
||||
'invoice_date' => $this->convertDateValue($importable->meta['date-invoice'] ?? null),
|
||||
'external_id' => $importable->externalId,
|
||||
|
||||
'original-source' => $importable->meta['original-source'] ?? null,
|
||||
// journal data:
|
||||
'description' => $importable->description,
|
||||
'piggy_bank_id' => null,
|
||||
|
||||
@@ -201,6 +201,12 @@ class MappingConverger
|
||||
Log::debug('Column skipped because value is empty.');
|
||||
}
|
||||
}
|
||||
// add a special column value for the "source"
|
||||
$columnValue = new ColumnValue;
|
||||
$columnValue->setValue(sprintf('csv-import-v%s', config('firefly.version')));
|
||||
$columnValue->setMappedValue(0);
|
||||
$columnValue->setRole('original-source');
|
||||
$return[] = $columnValue;
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user