mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Merge branch 'develop' into 5.8-dev
# Conflicts: # config/firefly.php # frontend/src/i18n/bg_BG/index.js # frontend/src/i18n/cs_CZ/index.js # frontend/src/i18n/da_DK/index.js # frontend/src/i18n/de_DE/index.js # frontend/src/i18n/el_GR/index.js # frontend/src/i18n/en_GB/index.js # frontend/src/i18n/en_US/index.js # frontend/src/i18n/es_ES/index.js # frontend/src/i18n/fi_FI/index.js # frontend/src/i18n/fr_FR/index.js # frontend/src/i18n/hu_HU/index.js # frontend/src/i18n/id_ID/index.js # frontend/src/i18n/it_IT/index.js # frontend/src/i18n/ja_JP/index.js # frontend/src/i18n/nb_NO/index.js # frontend/src/i18n/nl_NL/index.js # frontend/src/i18n/pl_PL/index.js # frontend/src/i18n/pt_BR/index.js # frontend/src/i18n/pt_PT/index.js # frontend/src/i18n/ro_RO/index.js # frontend/src/i18n/ru_RU/index.js # frontend/src/i18n/sk_SK/index.js # frontend/src/i18n/sl_SI/index.js # frontend/src/i18n/sv_SE/index.js # frontend/src/i18n/tr_TR/index.js # frontend/src/i18n/uk_UA/index.js # frontend/src/i18n/vi_VN/index.js # frontend/src/i18n/zh_CN/index.js # frontend/src/i18n/zh_TW/index.js # public/v1/js/create_transaction.js # public/v1/js/edit_transaction.js # public/v1/js/profile.js # resources/assets/js/locales/bg.json # resources/assets/js/locales/cs.json # resources/assets/js/locales/da.json # resources/assets/js/locales/de.json # resources/assets/js/locales/el.json # resources/assets/js/locales/en-gb.json # resources/assets/js/locales/en.json # resources/assets/js/locales/es.json # resources/assets/js/locales/fi.json # resources/assets/js/locales/fr.json # resources/assets/js/locales/hu.json # resources/assets/js/locales/id.json # resources/assets/js/locales/it.json # resources/assets/js/locales/ja.json # resources/assets/js/locales/nb.json # resources/assets/js/locales/nl.json # resources/assets/js/locales/pl.json # resources/assets/js/locales/pt.json # resources/assets/js/locales/ro.json # resources/assets/js/locales/ru.json # resources/assets/js/locales/sk.json # resources/assets/js/locales/sl.json # resources/assets/js/locales/sv.json # resources/assets/js/locales/tr.json # resources/assets/js/locales/uk.json # resources/assets/js/locales/vi.json # resources/assets/js/locales/zh-cn.json # resources/assets/js/locales/zh-tw.json # yarn.lock
This commit is contained in:
@@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
namespace FireflyIII\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
@@ -154,7 +155,7 @@ class PiggyBank extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all of the tags for the post.
|
||||
* Get all the tags for the post.
|
||||
*/
|
||||
public function objectGroups()
|
||||
{
|
||||
@@ -188,4 +189,16 @@ class PiggyBank extends Model
|
||||
{
|
||||
$this->attributes['targetamount'] = (string) $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the max amount
|
||||
*
|
||||
* @return Attribute
|
||||
*/
|
||||
protected function targetamount(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn($value) => (string) $value,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user