mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 18:41:08 +00:00
This commit is contained in:
@@ -120,7 +120,7 @@ class FixUnevenAmount extends Command
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
||||||
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
|
TransactionJournal::where('id', $journal->id ?? 0)->forceDelete();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,7 @@ class FixUnevenAmount extends Command
|
|||||||
);
|
);
|
||||||
|
|
||||||
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
||||||
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
|
TransactionJournal::where('id', $journal->id ?? 0)->forceDelete();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -164,8 +164,8 @@ class Steam
|
|||||||
/** @var Transaction $entry */
|
/** @var Transaction $entry */
|
||||||
foreach ($set as $entry) {
|
foreach ($set as $entry) {
|
||||||
// normal amount and foreign amount
|
// normal amount and foreign amount
|
||||||
$modified = null === $entry->modified ? '0' : $entry->modified;
|
$modified = (string) (null === $entry->modified ? '0' : $entry->modified);
|
||||||
$foreignModified = null === $entry->modified_foreign ? '0' :$entry->modified_foreign;
|
$foreignModified = (string) (null === $entry->modified_foreign ? '0' :$entry->modified_foreign);
|
||||||
$amount = '0';
|
$amount = '0';
|
||||||
if ($currencyId === (int)$entry->transaction_currency_id || 0 === $currencyId) {
|
if ($currencyId === (int)$entry->transaction_currency_id || 0 === $currencyId) {
|
||||||
// use normal amount:
|
// use normal amount:
|
||||||
|
Reference in New Issue
Block a user