Fix some views.

This commit is contained in:
James Cole
2026-07-11 20:05:25 +02:00
parent 8d1f8c17d8
commit 118e4b5e1a
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -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);
}
}
+5
View File
@@ -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