mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Improve tests, models and views.
This commit is contained in:
@@ -124,6 +124,8 @@ class TransactionFactory
|
||||
$sourceAccount = $this->getAccount($type, 'source', (int)$data['source_id'], $data['source_name']);
|
||||
$destinationAccount = $this->getAccount($type, 'destination', (int)$data['destination_id'], $data['destination_name']);
|
||||
|
||||
// at this point we know the
|
||||
|
||||
$amount = $this->getAmount($data['amount']);
|
||||
$foreignAmount = $this->getForeignAmount($data['foreign_amount']);
|
||||
$one = $this->create($sourceAccount, $currency, app('steam')->negative($amount));
|
||||
|
Reference in New Issue
Block a user