Allow user to set multi-currency available budget. WIP

This commit is contained in:
James Cole
2019-08-31 09:35:35 +02:00
parent 61b6e266da
commit ca777857c2
21 changed files with 1138 additions and 297 deletions

View File

@@ -143,7 +143,7 @@ class AmountFormat extends Twig_Extension
{
return new Twig_SimpleFilter(
'formatAmountPlain',
function (string $string): string {
static function (string $string): string {
$currency = app('amount')->getDefaultCurrency();
return app('amount')->formatAnything($currency, $string, false);