mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 14:26:58 +00:00
Simplified account name for cash accounts.
This commit is contained in:
@@ -159,20 +159,12 @@ class TransactionController extends Controller
|
||||
|
||||
if ($journal->transactionType->type == 'Withdrawal') {
|
||||
$preFilled['account_id'] = $journal->source_account->id;
|
||||
$preFilled['expense_account'] = $journal->destination_account->name;
|
||||
$preFilled['expense_account'] = $journal->destination_account->name_for_editform;
|
||||
} else {
|
||||
$preFilled['account_id'] = $journal->destination_account->id;
|
||||
$preFilled['revenue_account'] = $journal->source_account->name;
|
||||
$preFilled['revenue_account'] = $journal->source_account->name_for_editform;
|
||||
}
|
||||
|
||||
if ($journal->destination_account->accountType->type == 'Cash account') {
|
||||
$preFilled['expense_account'] = '';
|
||||
}
|
||||
if ($journal->source_account->accountType->type == 'Cash account') {
|
||||
$preFilled['revenue_account'] = '';
|
||||
}
|
||||
|
||||
|
||||
$preFilled['account_from_id'] = $journal->source_account->id;
|
||||
$preFilled['account_to_id'] = $journal->destination_account->id;
|
||||
|
||||
|
Reference in New Issue
Block a user