mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 10:22:09 +00:00
Introduce missing methods
This commit is contained in:
@@ -31,7 +31,6 @@ use FireflyIII\Exceptions\FireflyException;
|
|||||||
use FireflyIII\Models\Account;
|
use FireflyIII\Models\Account;
|
||||||
use FireflyIII\Models\AccountType;
|
use FireflyIII\Models\AccountType;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
|
||||||
use FireflyIII\Support\Http\Api\ApiSupport;
|
use FireflyIII\Support\Http\Api\ApiSupport;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
@@ -46,7 +45,6 @@ class AccountController extends Controller
|
|||||||
{
|
{
|
||||||
use ApiSupport;
|
use ApiSupport;
|
||||||
|
|
||||||
private CurrencyRepositoryInterface $currencyRepository;
|
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -64,9 +62,6 @@ class AccountController extends Controller
|
|||||||
$this->repository = app(AccountRepositoryInterface::class);
|
$this->repository = app(AccountRepositoryInterface::class);
|
||||||
$this->repository->setUser($user);
|
$this->repository->setUser($user);
|
||||||
|
|
||||||
$this->currencyRepository = app(CurrencyRepositoryInterface::class);
|
|
||||||
$this->currencyRepository->setUser($user);
|
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -28,7 +28,6 @@ use FireflyIII\Api\V1\Controllers\Controller;
|
|||||||
use FireflyIII\Api\V1\Requests\Insight\GenericRequest;
|
use FireflyIII\Api\V1\Requests\Insight\GenericRequest;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Account\OperationsRepositoryInterface;
|
use FireflyIII\Repositories\Account\OperationsRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
|
||||||
use FireflyIII\Support\Http\Api\ApiSupport;
|
use FireflyIII\Support\Http\Api\ApiSupport;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
|
|
||||||
@@ -43,7 +42,6 @@ class AccountController extends Controller
|
|||||||
{
|
{
|
||||||
use ApiSupport;
|
use ApiSupport;
|
||||||
|
|
||||||
private CurrencyRepositoryInterface $currencyRepository;
|
|
||||||
private OperationsRepositoryInterface $opsRepository;
|
private OperationsRepositoryInterface $opsRepository;
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
|
|
||||||
@@ -61,9 +59,6 @@ class AccountController extends Controller
|
|||||||
$this->repository = app(AccountRepositoryInterface::class);
|
$this->repository = app(AccountRepositoryInterface::class);
|
||||||
$this->repository->setUser($user);
|
$this->repository->setUser($user);
|
||||||
|
|
||||||
$this->currencyRepository = app(CurrencyRepositoryInterface::class);
|
|
||||||
$this->currencyRepository->setUser($user);
|
|
||||||
|
|
||||||
$this->opsRepository = app(OperationsRepositoryInterface::class);
|
$this->opsRepository = app(OperationsRepositoryInterface::class);
|
||||||
$this->opsRepository->setUser($user);
|
$this->opsRepository->setUser($user);
|
||||||
|
|
||||||
|
@@ -28,7 +28,6 @@ use FireflyIII\Api\V1\Controllers\Controller;
|
|||||||
use FireflyIII\Api\V1\Requests\Insight\GenericRequest;
|
use FireflyIII\Api\V1\Requests\Insight\GenericRequest;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Account\OperationsRepositoryInterface;
|
use FireflyIII\Repositories\Account\OperationsRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
|
||||||
use FireflyIII\Support\Http\Api\ApiSupport;
|
use FireflyIII\Support\Http\Api\ApiSupport;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
|
|
||||||
@@ -43,7 +42,6 @@ class AccountController extends Controller
|
|||||||
{
|
{
|
||||||
use ApiSupport;
|
use ApiSupport;
|
||||||
|
|
||||||
private CurrencyRepositoryInterface $currencyRepository;
|
|
||||||
private OperationsRepositoryInterface $opsRepository;
|
private OperationsRepositoryInterface $opsRepository;
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
|
|
||||||
@@ -61,9 +59,6 @@ class AccountController extends Controller
|
|||||||
$this->repository = app(AccountRepositoryInterface::class);
|
$this->repository = app(AccountRepositoryInterface::class);
|
||||||
$this->repository->setUser($user);
|
$this->repository->setUser($user);
|
||||||
|
|
||||||
$this->currencyRepository = app(CurrencyRepositoryInterface::class);
|
|
||||||
$this->currencyRepository->setUser($user);
|
|
||||||
|
|
||||||
$this->opsRepository = app(OperationsRepositoryInterface::class);
|
$this->opsRepository = app(OperationsRepositoryInterface::class);
|
||||||
$this->opsRepository->setUser($user);
|
$this->opsRepository->setUser($user);
|
||||||
|
|
||||||
|
@@ -31,7 +31,6 @@ use FireflyIII\Models\TransactionCurrency;
|
|||||||
use FireflyIII\Models\TransactionJournal;
|
use FireflyIII\Models\TransactionJournal;
|
||||||
use FireflyIII\Models\TransactionType;
|
use FireflyIII\Models\TransactionType;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
|
||||||
use FireflyIII\Repositories\Journal\JournalCLIRepositoryInterface;
|
use FireflyIII\Repositories\Journal\JournalCLIRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
|
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
@@ -52,7 +51,6 @@ class OtherCurrenciesCorrections extends Command
|
|||||||
private AccountRepositoryInterface $accountRepos;
|
private AccountRepositoryInterface $accountRepos;
|
||||||
private JournalCLIRepositoryInterface $cliRepos;
|
private JournalCLIRepositoryInterface $cliRepos;
|
||||||
private int $count;
|
private int $count;
|
||||||
private CurrencyRepositoryInterface $currencyRepos;
|
|
||||||
private JournalRepositoryInterface $journalRepos;
|
private JournalRepositoryInterface $journalRepos;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -93,7 +91,6 @@ class OtherCurrenciesCorrections extends Command
|
|||||||
$this->count = 0;
|
$this->count = 0;
|
||||||
$this->accountCurrencies = [];
|
$this->accountCurrencies = [];
|
||||||
$this->accountRepos = app(AccountRepositoryInterface::class);
|
$this->accountRepos = app(AccountRepositoryInterface::class);
|
||||||
$this->currencyRepos = app(CurrencyRepositoryInterface::class);
|
|
||||||
$this->journalRepos = app(JournalRepositoryInterface::class);
|
$this->journalRepos = app(JournalRepositoryInterface::class);
|
||||||
$this->cliRepos = app(JournalCLIRepositoryInterface::class);
|
$this->cliRepos = app(JournalCLIRepositoryInterface::class);
|
||||||
}
|
}
|
||||||
@@ -138,7 +135,6 @@ class OtherCurrenciesCorrections extends Command
|
|||||||
{
|
{
|
||||||
$this->accountRepos->setUser($journal->user);
|
$this->accountRepos->setUser($journal->user);
|
||||||
$this->journalRepos->setUser($journal->user);
|
$this->journalRepos->setUser($journal->user);
|
||||||
$this->currencyRepos->setUser($journal->user);
|
|
||||||
$this->cliRepos->setUser($journal->user);
|
$this->cliRepos->setUser($journal->user);
|
||||||
|
|
||||||
$leadTransaction = $this->getLeadTransaction($journal);
|
$leadTransaction = $this->getLeadTransaction($journal);
|
||||||
|
@@ -55,7 +55,7 @@ class BillFactory
|
|||||||
Log::debug(sprintf('Now in %s', __METHOD__), $data);
|
Log::debug(sprintf('Now in %s', __METHOD__), $data);
|
||||||
$factory = app(TransactionCurrencyFactory::class);
|
$factory = app(TransactionCurrencyFactory::class);
|
||||||
$currency = $factory->find((int)($data['currency_id'] ?? null), (string)($data['currency_code'] ?? null)) ??
|
$currency = $factory->find((int)($data['currency_id'] ?? null), (string)($data['currency_code'] ?? null)) ??
|
||||||
app('amount')->getDefaultCurrencyByUser($this->user);
|
app('amount')->getDefaultCurrencyByUserGroup($this->user->userGroup);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$skip = array_key_exists('skip', $data) ? $data['skip'] : 0;
|
$skip = array_key_exists('skip', $data) ? $data['skip'] : 0;
|
||||||
|
@@ -479,7 +479,7 @@ class TransactionJournalFactory
|
|||||||
$preference = $this->accountRepository->getAccountCurrency($account);
|
$preference = $this->accountRepository->getAccountCurrency($account);
|
||||||
if (null === $preference && null === $currency) {
|
if (null === $preference && null === $currency) {
|
||||||
// return user's default:
|
// return user's default:
|
||||||
return app('amount')->getDefaultCurrencyByUser($this->user);
|
return app('amount')->getDefaultCurrencyByUserGroup($this->user->userGroup);
|
||||||
}
|
}
|
||||||
$result = ($preference ?? $currency) ?? app('amount')->getSystemCurrency();
|
$result = ($preference ?? $currency) ?? app('amount')->getSystemCurrency();
|
||||||
Log::debug(sprintf('Currency is now #%d (%s) because of account #%d (%s)', $result->id, $result->code, $account->id, $account->name));
|
Log::debug(sprintf('Currency is now #%d (%s) because of account #%d (%s)', $result->id, $result->code, $account->id, $account->name));
|
||||||
|
@@ -38,7 +38,8 @@ use FireflyIII\Models\RuleAction;
|
|||||||
use FireflyIII\Models\RuleTrigger;
|
use FireflyIII\Models\RuleTrigger;
|
||||||
use FireflyIII\Models\TransactionType;
|
use FireflyIII\Models\TransactionType;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
use FireflyIII\Repositories\Currency\CurrencyRepository;
|
||||||
|
use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepositoryInterface;
|
||||||
use FireflyIII\Services\Internal\Destroy\BudgetDestroyService;
|
use FireflyIII\Services\Internal\Destroy\BudgetDestroyService;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
use Illuminate\Contracts\Auth\Authenticatable;
|
use Illuminate\Contracts\Auth\Authenticatable;
|
||||||
@@ -429,6 +430,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
|
|
||||||
// set or update the currency.
|
// set or update the currency.
|
||||||
if (array_key_exists('currency_id', $data) || array_key_exists('currency_code', $data)) {
|
if (array_key_exists('currency_id', $data) || array_key_exists('currency_code', $data)) {
|
||||||
|
/** @var CurrencyRepositoryInterface $repos */
|
||||||
$repos = app(CurrencyRepositoryInterface::class);
|
$repos = app(CurrencyRepositoryInterface::class);
|
||||||
$currencyId = (int)($data['currency_id'] ?? 0);
|
$currencyId = (int)($data['currency_id'] ?? 0);
|
||||||
$currencyCode = (string)($data['currency_code'] ?? '');
|
$currencyCode = (string)($data['currency_code'] ?? '');
|
||||||
@@ -837,6 +839,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
$type = AutoBudget::AUTO_BUDGET_ADJUSTED;
|
$type = AutoBudget::AUTO_BUDGET_ADJUSTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var CurrencyRepositoryInterface $repos */
|
||||||
$repos = app(CurrencyRepositoryInterface::class);
|
$repos = app(CurrencyRepositoryInterface::class);
|
||||||
$currency = null;
|
$currency = null;
|
||||||
if (array_key_exists('currency_id', $data)) {
|
if (array_key_exists('currency_id', $data)) {
|
||||||
|
@@ -24,7 +24,6 @@ declare(strict_types=1);
|
|||||||
namespace FireflyIII\Repositories\Currency;
|
namespace FireflyIII\Repositories\Currency;
|
||||||
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use FireflyIII\Exceptions\FireflyException;
|
|
||||||
use FireflyIII\Models\CurrencyExchangeRate;
|
use FireflyIII\Models\CurrencyExchangeRate;
|
||||||
use FireflyIII\Models\TransactionCurrency;
|
use FireflyIII\Models\TransactionCurrency;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
|
@@ -173,6 +173,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the user group's currencies.
|
* Get the user group's currencies.
|
||||||
|
*
|
||||||
* @return Collection
|
* @return Collection
|
||||||
*/
|
*/
|
||||||
public function get(): Collection
|
public function get(): Collection
|
||||||
@@ -291,7 +292,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
|||||||
*
|
*
|
||||||
* @return TransactionCurrency|null
|
* @return TransactionCurrency|null
|
||||||
*/
|
*/
|
||||||
private function findByCode(string $currencyCode): ?TransactionCurrency
|
public function findByCode(string $currencyCode): ?TransactionCurrency
|
||||||
{
|
{
|
||||||
return TransactionCurrency::where('code', $currencyCode)->first();
|
return TransactionCurrency::where('code', $currencyCode)->first();
|
||||||
}
|
}
|
||||||
@@ -307,6 +308,16 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
|||||||
$currency->save();
|
$currency->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $ids
|
||||||
|
*
|
||||||
|
* @return Collection
|
||||||
|
*/
|
||||||
|
public function getByIds(array $ids): Collection
|
||||||
|
{
|
||||||
|
return TransactionCurrency::orderBy('code', 'ASC')->whereIn('id', $ids)->get();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
@@ -55,6 +55,13 @@ interface CurrencyRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function find(int $currencyId): ?TransactionCurrency;
|
public function find(int $currencyId): ?TransactionCurrency;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $currencyCode
|
||||||
|
*
|
||||||
|
* @return TransactionCurrency|null
|
||||||
|
*/
|
||||||
|
public function findByCode(string $currencyCode): ?TransactionCurrency;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find by object, ID or code. Returns user default or system default.
|
* Find by object, ID or code. Returns user default or system default.
|
||||||
*
|
*
|
||||||
@@ -89,6 +96,13 @@ interface CurrencyRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getAll(): Collection;
|
public function getAll(): Collection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $ids
|
||||||
|
*
|
||||||
|
* @return Collection
|
||||||
|
*/
|
||||||
|
public function getByIds(array $ids): Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param TransactionCurrency $currency
|
* @param TransactionCurrency $currency
|
||||||
*
|
*
|
||||||
|
@@ -26,7 +26,6 @@ namespace FireflyIII\Transformers;
|
|||||||
use FireflyIII\Exceptions\FireflyException;
|
use FireflyIII\Exceptions\FireflyException;
|
||||||
use FireflyIII\Models\PiggyBankEvent;
|
use FireflyIII\Models\PiggyBankEvent;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
|
||||||
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
||||||
use JsonException;
|
use JsonException;
|
||||||
|
|
||||||
@@ -35,7 +34,6 @@ use JsonException;
|
|||||||
*/
|
*/
|
||||||
class PiggyBankEventTransformer extends AbstractTransformer
|
class PiggyBankEventTransformer extends AbstractTransformer
|
||||||
{
|
{
|
||||||
private CurrencyRepositoryInterface $currencyRepos;
|
|
||||||
private PiggyBankRepositoryInterface $piggyRepos;
|
private PiggyBankRepositoryInterface $piggyRepos;
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
|
|
||||||
@@ -47,7 +45,6 @@ class PiggyBankEventTransformer extends AbstractTransformer
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->repository = app(AccountRepositoryInterface::class);
|
$this->repository = app(AccountRepositoryInterface::class);
|
||||||
$this->currencyRepos = app(CurrencyRepositoryInterface::class);
|
|
||||||
$this->piggyRepos = app(PiggyBankRepositoryInterface::class);
|
$this->piggyRepos = app(PiggyBankRepositoryInterface::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +64,6 @@ class PiggyBankEventTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
// set up repositories.
|
// set up repositories.
|
||||||
$this->repository->setUser($account->user);
|
$this->repository->setUser($account->user);
|
||||||
$this->currencyRepos->setUser($account->user);
|
|
||||||
$this->piggyRepos->setUser($account->user);
|
$this->piggyRepos->setUser($account->user);
|
||||||
|
|
||||||
// get associated currency or fall back to the default:
|
// get associated currency or fall back to the default:
|
||||||
|
@@ -27,7 +27,6 @@ use FireflyIII\Exceptions\FireflyException;
|
|||||||
use FireflyIII\Models\ObjectGroup;
|
use FireflyIII\Models\ObjectGroup;
|
||||||
use FireflyIII\Models\PiggyBank;
|
use FireflyIII\Models\PiggyBank;
|
||||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
|
||||||
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
||||||
use JsonException;
|
use JsonException;
|
||||||
|
|
||||||
@@ -37,7 +36,6 @@ use JsonException;
|
|||||||
class PiggyBankTransformer extends AbstractTransformer
|
class PiggyBankTransformer extends AbstractTransformer
|
||||||
{
|
{
|
||||||
private AccountRepositoryInterface $accountRepos;
|
private AccountRepositoryInterface $accountRepos;
|
||||||
private CurrencyRepositoryInterface $currencyRepos;
|
|
||||||
private PiggyBankRepositoryInterface $piggyRepos;
|
private PiggyBankRepositoryInterface $piggyRepos;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -48,7 +46,6 @@ class PiggyBankTransformer extends AbstractTransformer
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->accountRepos = app(AccountRepositoryInterface::class);
|
$this->accountRepos = app(AccountRepositoryInterface::class);
|
||||||
$this->currencyRepos = app(CurrencyRepositoryInterface::class);
|
|
||||||
$this->piggyRepos = app(PiggyBankRepositoryInterface::class);
|
$this->piggyRepos = app(PiggyBankRepositoryInterface::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +64,6 @@ class PiggyBankTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
// set up repositories
|
// set up repositories
|
||||||
$this->accountRepos->setUser($account->user);
|
$this->accountRepos->setUser($account->user);
|
||||||
$this->currencyRepos->setUser($account->user);
|
|
||||||
$this->piggyRepos->setUser($account->user);
|
$this->piggyRepos->setUser($account->user);
|
||||||
|
|
||||||
// get currency from account, or use default.
|
// get currency from account, or use default.
|
||||||
|
@@ -30,7 +30,7 @@ use FireflyIII\Models\Account;
|
|||||||
use FireflyIII\Models\AccountMeta;
|
use FireflyIII\Models\AccountMeta;
|
||||||
use FireflyIII\Models\AccountType;
|
use FireflyIII\Models\AccountType;
|
||||||
use FireflyIII\Models\TransactionCurrency;
|
use FireflyIII\Models\TransactionCurrency;
|
||||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepositoryInterface;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -56,6 +56,8 @@ class AccountTransformer extends AbstractTransformer
|
|||||||
$this->accountTypes = [];
|
$this->accountTypes = [];
|
||||||
$this->balances = app('steam')->balancesByAccounts($objects, $this->getDate());
|
$this->balances = app('steam')->balancesByAccounts($objects, $this->getDate());
|
||||||
$this->convertedBalances = app('steam')->balancesByAccountsConverted($objects, $this->getDate());
|
$this->convertedBalances = app('steam')->balancesByAccountsConverted($objects, $this->getDate());
|
||||||
|
|
||||||
|
/** @var CurrencyRepositoryInterface $repository */
|
||||||
$repository = app(CurrencyRepositoryInterface::class);
|
$repository = app(CurrencyRepositoryInterface::class);
|
||||||
$this->default = app('amount')->getDefaultCurrency();
|
$this->default = app('amount')->getDefaultCurrency();
|
||||||
|
|
||||||
|
35
changelog.md
35
changelog.md
@@ -3,6 +3,41 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## 6.0.28 - 2023-10-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- #8076 Clone and edit button
|
||||||
|
- #7204 ability to
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- New actions for GitHub
|
||||||
|
- Currencies are now linked to users, and can be enabled per user
|
||||||
|
- Refactored upgrade commands
|
||||||
|
- You can no longer edit vital parts of reconciled transactions
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
- Remove old v3 layout.
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- Initial release.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Bad math in the order of piggy banks
|
||||||
|
- #8084 @JoSchrader fixed an issue with a duplicate button
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
- Initial release.
|
||||||
|
|
||||||
|
### API
|
||||||
|
|
||||||
|
- Initial release.
|
||||||
|
|
||||||
## v6.0.27 - 2023-10-16
|
## v6.0.27 - 2023-10-16
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -112,8 +112,8 @@ return [
|
|||||||
'handle_debts' => true,
|
'handle_debts' => true,
|
||||||
// see cer.php for exchange rates feature flag.
|
// see cer.php for exchange rates feature flag.
|
||||||
],
|
],
|
||||||
'version' => '6.0.27',
|
'version' => '6.0.28',
|
||||||
'api_version' => '2.0.10',
|
'api_version' => '2.0.11',
|
||||||
'db_version' => 21,
|
'db_version' => 21,
|
||||||
|
|
||||||
// generic settings
|
// generic settings
|
||||||
|
Reference in New Issue
Block a user