mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 04:18:50 +00:00
Mainly layout improvements.
This commit is contained in:
@@ -126,14 +126,13 @@ class Importer
|
||||
|
||||
}
|
||||
// post processing and validating.
|
||||
$data = $this->postProcess($data, $row);
|
||||
$result = $this->validateData($data);
|
||||
$data = $this->postProcess($data, $row);
|
||||
$result = $this->validateData($data);
|
||||
$journal = null;
|
||||
if ($result === true) {
|
||||
$result = $this->createTransactionJournal($data);
|
||||
} else {
|
||||
Log::error('Validator: ' . $result);
|
||||
$journal = $this->createTransactionJournal($data);
|
||||
}
|
||||
if ($result instanceof TransactionJournal) {
|
||||
if ($journal instanceof TransactionJournal) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -20,13 +20,15 @@ class AnyAccount implements MapperInterface
|
||||
{
|
||||
$result = Auth::user()->accounts()->with('accountType')->orderBy('accounts.name', 'ASC')->get(['accounts.*']);
|
||||
|
||||
$list = [];
|
||||
$list = [];
|
||||
/** @var Account $account */
|
||||
foreach ($result as $account) {
|
||||
$list[$account->id] = $account->name . ' (' . $account->accountType->type . ')';
|
||||
}
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
@@ -26,13 +26,20 @@ class AssetAccount implements MapperInterface
|
||||
)->accountTypeIn(['Default account', 'Asset account'])->orderBy('accounts.name', 'ASC')->get(['accounts.*']);
|
||||
|
||||
$list = [];
|
||||
|
||||
/** @var Account $account */
|
||||
foreach ($result as $account) {
|
||||
$list[$account->id] = $account->name;
|
||||
$name = $account->name;
|
||||
if (strlen($account->iban) > 0) {
|
||||
$name .= ' (' . $account->iban . ')';
|
||||
}
|
||||
$list[$account->id] = $name;
|
||||
}
|
||||
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
@@ -27,6 +27,8 @@ class Bill implements MapperInterface
|
||||
}
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
@@ -27,6 +27,8 @@ class Budget implements MapperInterface
|
||||
}
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
@@ -27,6 +27,8 @@ class Category implements MapperInterface
|
||||
}
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
@@ -27,6 +27,8 @@ class Tag implements MapperInterface
|
||||
}
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
@@ -23,6 +23,10 @@ class TransactionCurrency implements MapperInterface
|
||||
$list[$currency->id] = $currency->name . ' (' . $currency->code . ')';
|
||||
}
|
||||
|
||||
asort($list);
|
||||
|
||||
array_unshift($list, trans('firefly.csv_do_not_map'));
|
||||
|
||||
return $list;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user