mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 09:52:20 +00:00
Update import storage routine for issue #483, as suggested by @zjean
This commit is contained in:
@@ -376,14 +376,14 @@ class ImportStorage
|
|||||||
$sourceData = [
|
$sourceData = [
|
||||||
'account_id' => $accounts['source']->id,
|
'account_id' => $accounts['source']->id,
|
||||||
'transaction_journal_id' => $journal->id,
|
'transaction_journal_id' => $journal->id,
|
||||||
'description' => $journal->description,
|
'description' => null,
|
||||||
'amount' => bcmul($amount, '-1'),
|
'amount' => bcmul($amount, '-1'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$destinationData = [
|
$destinationData = [
|
||||||
'account_id' => $accounts['destination']->id,
|
'account_id' => $accounts['destination']->id,
|
||||||
'transaction_journal_id' => $journal->id,
|
'transaction_journal_id' => $journal->id,
|
||||||
'description' => $journal->description,
|
'description' => null,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user