mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
This should fix #482
This commit is contained in:
@@ -221,6 +221,7 @@ class AccountController extends Controller
|
||||
$account->lastActivityDate = $this->isInArray($activities, $account->id);
|
||||
$account->startBalance = $this->isInArray($startBalances, $account->id);
|
||||
$account->endBalance = $this->isInArray($endBalances, $account->id);
|
||||
$account->difference = bcsub($account->endBalance, $account->startBalance);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -386,7 +387,7 @@ class AccountController extends Controller
|
||||
return $array[$entryId];
|
||||
}
|
||||
|
||||
return '';
|
||||
return '0';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -50,8 +50,8 @@
|
||||
<em>{{ 'never'|_ }}</em>
|
||||
</td>
|
||||
{% endif %}
|
||||
<td class="hidden-sm hidden-xs" data-value="{{ account.endBalance - account.startBalance }}">
|
||||
{{ (account.endBalance - account.startBalance)|formatAmount }}
|
||||
<td class="hidden-sm hidden-xs" data-value="{{ account.difference }}">
|
||||
{{ (account.difference)|formatAmount }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user