mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Fix #1864
This commit is contained in:
@@ -89,11 +89,10 @@ class TransactionUpdateService
|
||||
{
|
||||
$currency = $this->findCurrency($data['currency_id'], $data['currency_code']);
|
||||
$journal = $transaction->transactionJournal;
|
||||
$description = $journal->description === $data['description'] ? null : $data['description'];
|
||||
$amount = (string)$data['amount'];
|
||||
$account = null;
|
||||
// update description:
|
||||
$transaction->description = $description;
|
||||
$transaction->description = $data['description'];
|
||||
$foreignAmount = null;
|
||||
if ((float)$transaction->amount < 0) {
|
||||
// this is the source transaction.
|
||||
@@ -112,7 +111,7 @@ class TransactionUpdateService
|
||||
}
|
||||
|
||||
// update the actual transaction:
|
||||
$transaction->description = $description;
|
||||
$transaction->description = $data['description'];
|
||||
$transaction->amount = $amount;
|
||||
$transaction->foreign_amount = null;
|
||||
$transaction->transaction_currency_id = null === $currency ? $transaction->transaction_currency_id : $currency->id;
|
||||
|
||||
Reference in New Issue
Block a user