mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4d7909e23d | ||
|
6f13600fb5 | ||
|
c9fefcd8f4 | ||
|
fa31483b02 | ||
|
e7be0eae8a | ||
|
86c70cf232 | ||
|
a3490e97c0 | ||
|
85b1768908 | ||
|
6ab462a795 | ||
|
70f46338db |
1
.github/workflows/sonarcloud.yml
vendored
1
.github/workflows/sonarcloud.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: 'Code - Run Sonarcloud'
|
name: 'Code - Run Sonarcloud'
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
@@ -104,7 +104,7 @@ class NewUserController extends Controller
|
|||||||
|
|
||||||
// if is null, set to EUR:
|
// if is null, set to EUR:
|
||||||
if (null === $currency) {
|
if (null === $currency) {
|
||||||
$currency = $currencyRepository->findByCodeNull('EUR');
|
$currency = $currencyRepository->findByCode('EUR');
|
||||||
}
|
}
|
||||||
$currencyRepository->enable($currency);
|
$currencyRepository->enable($currency);
|
||||||
|
|
||||||
|
@@ -435,7 +435,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
$currencyCode = (string)($data['currency_code'] ?? '');
|
$currencyCode = (string)($data['currency_code'] ?? '');
|
||||||
$currency = $repos->find($currencyId);
|
$currency = $repos->find($currencyId);
|
||||||
if (null === $currency) {
|
if (null === $currency) {
|
||||||
$currency = $repos->findByCodeNull($currencyCode);
|
$currency = $repos->findByCode($currencyCode);
|
||||||
}
|
}
|
||||||
if (null !== $currency) {
|
if (null !== $currency) {
|
||||||
$autoBudget->transaction_currency_id = $currency->id;
|
$autoBudget->transaction_currency_id = $currency->id;
|
||||||
|
@@ -239,6 +239,14 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
|||||||
$currency->save();
|
$currency->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
public function findByName(string $name): ?TransactionCurrency
|
||||||
|
{
|
||||||
|
return TransactionCurrency::where('name', $name)->first();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find by object, ID or code. Returns user default or system default.
|
* Find by object, ID or code. Returns user default or system default.
|
||||||
*
|
*
|
||||||
|
@@ -84,6 +84,13 @@ interface CurrencyRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function findByCode(string $currencyCode): ?TransactionCurrency;
|
public function findByCode(string $currencyCode): ?TransactionCurrency;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $name
|
||||||
|
*
|
||||||
|
* @return TransactionCurrency|null
|
||||||
|
*/
|
||||||
|
public function findByName(string $name): ?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.
|
||||||
*
|
*
|
||||||
|
@@ -1536,9 +1536,9 @@ class OperatorQuerySearch implements SearchInterface
|
|||||||
$parts = explode(' ', $value);
|
$parts = explode(' ', $value);
|
||||||
$value = trim($parts[count($parts) - 1], "() \t\n\r\0\x0B");
|
$value = trim($parts[count($parts) - 1], "() \t\n\r\0\x0B");
|
||||||
}
|
}
|
||||||
$result = $this->currencyRepository->findByCodeNull($value);
|
$result = $this->currencyRepository->findByCode($value);
|
||||||
if (null === $result) {
|
if (null === $result) {
|
||||||
$result = $this->currencyRepository->findByNameNull($value);
|
$result = $this->currencyRepository->findByName($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
@@ -86,7 +86,7 @@ class BillTransformer extends AbstractTransformer
|
|||||||
foreach ($payDates as $string) {
|
foreach ($payDates as $string) {
|
||||||
$payDatesFormatted[] = Carbon::createFromFormat('!Y-m-d', $string, config('app.timezone'))->toAtomString();
|
$payDatesFormatted[] = Carbon::createFromFormat('!Y-m-d', $string, config('app.timezone'))->toAtomString();
|
||||||
}
|
}
|
||||||
$nextExpectedMatch = null;
|
$nextExpectedMatch = '';
|
||||||
if (null !== ($payDates[0] ?? null)) {
|
if (null !== ($payDates[0] ?? null)) {
|
||||||
$nextExpectedMatch = Carbon::createFromFormat('!Y-m-d', $payDates[0], config('app.timezone'))->toAtomString();
|
$nextExpectedMatch = Carbon::createFromFormat('!Y-m-d', $payDates[0], config('app.timezone'))->toAtomString();
|
||||||
}
|
}
|
||||||
|
12
changelog.md
12
changelog.md
@@ -3,6 +3,18 @@
|
|||||||
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.30 - 2023-10-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Missing method after refactoring.
|
||||||
|
|
||||||
|
## 6.0.29 - 2023-10-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Null pointer in bill overview
|
||||||
|
|
||||||
## 6.0.28 - 2023-10-29
|
## 6.0.28 - 2023-10-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -112,7 +112,7 @@ 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.28',
|
'version' => '6.0.30',
|
||||||
'api_version' => '2.0.11',
|
'api_version' => '2.0.11',
|
||||||
'db_version' => 21,
|
'db_version' => 21,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user