mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-23 16:04:46 -07:00
Fix some views.
This commit is contained in:
@@ -301,8 +301,9 @@ if (!function_exists('get_app_configuration')) {
|
||||
}
|
||||
|
||||
if (!function_exists('format_amount_by_symbol')) {
|
||||
function format_amount_by_symbol(string $amount, ?string $symbol = null, ?int $decimalPlaces = null, ?bool $coloured = null): string
|
||||
function format_amount_by_symbol(string|null $amount, ?string $symbol = null, ?int $decimalPlaces = null, ?bool $coloured = null): string
|
||||
{
|
||||
$amount = null === $amount ? '0' : $amount;
|
||||
return Steam::formatAmountBySymbol($amount, $symbol, $decimalPlaces, $coloured);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,11 @@ $success: #64B624;
|
||||
body.waiting * {
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.money-neutral {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* some borders and lines */
|
||||
.top-light-border {border-top:1px #aaa solid;}
|
||||
.top-dark-border {border-top:1px #777 solid;}
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
{{-- withdrawal into a liability --}}
|
||||
@if(in_array($destination['type'], ['Mortgage','Debt','Loan'], true))
|
||||
@if($account?->id === $source['id'])
|
||||
A <span title="Withdrawal, liab, source">{!! format_amount_by_symbol($source['balance_after'], $currency['symbol'], $currency['decimal_places']) !!}</span>
|
||||
<span title="Withdrawal, liab, source">{!! format_amount_by_symbol($source['balance_after'], $currency['symbol'], $currency['decimal_places']) !!}</span>
|
||||
@elseif($account?->id === $destination['id'])
|
||||
B <span title="Withdrawal, liab, dest">{!! format_amount_by_symbol($destination['balance_after'], $currency['symbol'], $currency['decimal_places']) !!}</span>
|
||||
<span title="Withdrawal, liab, dest">{!! format_amount_by_symbol($destination['balance_after'], $currency['symbol'], $currency['decimal_places']) !!}</span>
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user