mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 10:08:36 +02:00
Merge pull request #144 from eitchtee/dev
feat: account and currency cards will no longer display unneeded zeros, only for totals
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'projected income' %}</div>
|
<div class="tw-text-gray-400">{% translate 'projected income' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
{% if account.income_projected != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-green-400">
|
<div class="text-end font-monospace tw-text-green-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account.income_projected"
|
:amount="account.income_projected"
|
||||||
@@ -22,6 +23,9 @@
|
|||||||
:suffix="account.currency.suffix"
|
:suffix="account.currency.suffix"
|
||||||
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if account.exchanged and account.exchanged.income_projected %}
|
{% if account.exchanged and account.exchanged.income_projected %}
|
||||||
<div class="text-end font-monospace tw-text-gray-500">
|
<div class="text-end font-monospace tw-text-gray-500">
|
||||||
@@ -38,6 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
<div>
|
<div>
|
||||||
|
{% if account.expense_projected != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-red-400">
|
<div class="text-end font-monospace tw-text-red-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account.expense_projected"
|
:amount="account.expense_projected"
|
||||||
@@ -45,6 +50,9 @@
|
|||||||
:suffix="account.currency.suffix"
|
:suffix="account.currency.suffix"
|
||||||
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if account.exchanged and account.exchanged.expense_projected %}
|
{% if account.exchanged and account.exchanged.expense_projected %}
|
||||||
@@ -86,6 +94,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'current income' %}</div>
|
<div class="tw-text-gray-400">{% translate 'current income' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
{% if account.income_current != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-green-400">
|
<div class="text-end font-monospace tw-text-green-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account.income_current"
|
:amount="account.income_current"
|
||||||
@@ -93,6 +102,9 @@
|
|||||||
:suffix="account.currency.suffix"
|
:suffix="account.currency.suffix"
|
||||||
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if account.exchanged and account.exchanged.income_current %}
|
{% if account.exchanged and account.exchanged.income_current %}
|
||||||
<div class="text-end font-monospace tw-text-gray-500">
|
<div class="text-end font-monospace tw-text-gray-500">
|
||||||
@@ -108,6 +120,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'current expenses' %}</div>
|
<div class="tw-text-gray-400">{% translate 'current expenses' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
{% if account.expense_current != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-red-400">
|
<div class="text-end font-monospace tw-text-red-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account.expense_current"
|
:amount="account.expense_current"
|
||||||
@@ -115,6 +128,9 @@
|
|||||||
:suffix="account.currency.suffix"
|
:suffix="account.currency.suffix"
|
||||||
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
:decimal_places="account.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if account.exchanged and account.exchanged.expense_current %}
|
{% if account.exchanged and account.exchanged.expense_current %}
|
||||||
<div class="text-end font-monospace tw-text-gray-500">
|
<div class="text-end font-monospace tw-text-gray-500">
|
||||||
@@ -130,8 +146,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'current total' %}</div>
|
<div class="tw-text-gray-400">{% translate 'current total' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
<div
|
<div class="text-end font-monospace">
|
||||||
class="text-end font-monospace">
|
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account.total_current"
|
:amount="account.total_current"
|
||||||
:prefix="account.currency.prefix"
|
:prefix="account.currency.prefix"
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'projected income' %}</div>
|
<div class="tw-text-gray-400">{% translate 'projected income' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
{% if currency.income_projected != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-green-400">
|
<div class="text-end font-monospace tw-text-green-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.income_projected"
|
:amount="currency.income_projected"
|
||||||
@@ -17,6 +18,9 @@
|
|||||||
:suffix="currency.currency.suffix"
|
:suffix="currency.currency.suffix"
|
||||||
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if currency.exchanged and currency.exchanged.income_projected %}
|
{% if currency.exchanged and currency.exchanged.income_projected %}
|
||||||
<div class="text-end font-monospace tw-text-gray-500">
|
<div class="text-end font-monospace tw-text-gray-500">
|
||||||
@@ -33,6 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
<div>
|
<div>
|
||||||
|
{% if currency.expense_projected != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-red-400">
|
<div class="text-end font-monospace tw-text-red-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.expense_projected"
|
:amount="currency.expense_projected"
|
||||||
@@ -40,6 +45,9 @@
|
|||||||
:suffix="currency.currency.suffix"
|
:suffix="currency.currency.suffix"
|
||||||
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if currency.exchanged and currency.exchanged.expense_projected %}
|
{% if currency.exchanged and currency.exchanged.expense_projected %}
|
||||||
@@ -56,8 +64,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'projected total' %}</div>
|
<div class="tw-text-gray-400">{% translate 'projected total' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
<div
|
<div class="text-end font-monospace">
|
||||||
class="text-end font-monospace">
|
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.total_projected"
|
:amount="currency.total_projected"
|
||||||
:prefix="currency.currency.prefix"
|
:prefix="currency.currency.prefix"
|
||||||
@@ -81,6 +88,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'current income' %}</div>
|
<div class="tw-text-gray-400">{% translate 'current income' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
{% if currency.income_current != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-green-400">
|
<div class="text-end font-monospace tw-text-green-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.income_current"
|
:amount="currency.income_current"
|
||||||
@@ -88,6 +96,9 @@
|
|||||||
:suffix="currency.currency.suffix"
|
:suffix="currency.currency.suffix"
|
||||||
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if currency.exchanged and currency.exchanged.income_current %}
|
{% if currency.exchanged and currency.exchanged.income_current %}
|
||||||
<div class="text-end font-monospace tw-text-gray-500">
|
<div class="text-end font-monospace tw-text-gray-500">
|
||||||
@@ -103,6 +114,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'current expenses' %}</div>
|
<div class="tw-text-gray-400">{% translate 'current expenses' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
{% if currency.expense_current != 0 %}
|
||||||
<div class="text-end font-monospace tw-text-red-400">
|
<div class="text-end font-monospace tw-text-red-400">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.expense_current"
|
:amount="currency.expense_current"
|
||||||
@@ -110,6 +122,9 @@
|
|||||||
:suffix="currency.currency.suffix"
|
:suffix="currency.currency.suffix"
|
||||||
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
:decimal_places="currency.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="text-end font-monospace">-</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if currency.exchanged and currency.exchanged.expense_current %}
|
{% if currency.exchanged and currency.exchanged.expense_current %}
|
||||||
<div class="text-end font-monospace tw-text-gray-500">
|
<div class="text-end font-monospace tw-text-gray-500">
|
||||||
@@ -125,8 +140,7 @@
|
|||||||
<div class="tw-text-gray-400">{% translate 'current total' %}</div>
|
<div class="tw-text-gray-400">{% translate 'current total' %}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
<div
|
<div class="text-end font-monospace">
|
||||||
class="text-end font-monospace">
|
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.total_current"
|
:amount="currency.total_current"
|
||||||
:prefix="currency.currency.prefix"
|
:prefix="currency.currency.prefix"
|
||||||
|
|||||||
Reference in New Issue
Block a user