mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 10:48:13 +00:00
Replace native with primary where possible
This commit is contained in:
@@ -29,11 +29,11 @@
|
||||
<td colspan="2">
|
||||
{% set lowAmount = formatAmountByCurrency(object.data.currency,object.data.amount_min) %}
|
||||
{% set highAmount = formatAmountByCurrency(object.data.currency,object.data.amount_max) %}
|
||||
{% if(0 != object.data.native_amount_min) %}
|
||||
{% set lowAmount = lowAmount ~ ' (' ~ formatAmountByCode(object.data.native_amount_min, defaultCurrency.code) ~ ')' %}
|
||||
{% if(0 != object.data.pc_amount_min) %}
|
||||
{% set lowAmount = lowAmount ~ ' (' ~ formatAmountByCode(object.data.pc_amount_min, primaryCurrency.code) ~ ')' %}
|
||||
{% endif %}
|
||||
{% if(0 != object.data.native_amount_max) %}
|
||||
{% set highAmount = highAmount ~ ' (' ~ formatAmountByCode(object.data.native_amount_max, defaultCurrency.code) ~ ')' %}
|
||||
{% if(0 != object.data.pc_amount_max) %}
|
||||
{% set highAmount = highAmount ~ ' (' ~ formatAmountByCode(object.data.pc_amount_max, primaryCurrency.code) ~ ')' %}
|
||||
{% endif %}
|
||||
{{ trans('firefly.match_between_amounts', {low: lowAmount, high: highAmount })|raw }}
|
||||
{{ 'repeats'|_ }}
|
||||
@@ -67,9 +67,9 @@
|
||||
<td>
|
||||
{% for avg in yearAverage %}
|
||||
{{ formatAmountBySymbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }}
|
||||
{% if convertToNative and 0 != avg.native_avg %}
|
||||
({{ formatAmountBySymbol(avg.native_avg,
|
||||
defaultCurrency.symbol, defaultCurrency.decimal_places, true) }})
|
||||
{% if convertToPrimary and 0 != avg.pc_avg %}
|
||||
({{ formatAmountBySymbol(avg.pc_avg,
|
||||
primaryCurrency.symbol, primaryCurrency.decimal_places, true) }})
|
||||
{% endif %}
|
||||
<br>
|
||||
|
||||
@@ -81,9 +81,9 @@
|
||||
<td>
|
||||
{% for avg in overallAverage %}
|
||||
{{ formatAmountBySymbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }}
|
||||
{% if convertToNative and 0 != avg.native_avg %}
|
||||
({{ formatAmountBySymbol(avg.native_avg,
|
||||
defaultCurrency.symbol, defaultCurrency.decimal_places, true) }})
|
||||
{% if convertToPrimary and 0 != avg.pc_avg %}
|
||||
({{ formatAmountBySymbol(avg.pc_avg,
|
||||
primaryCurrency.symbol, primaryCurrency.decimal_places, true) }})
|
||||
{% endif %}
|
||||
<br>
|
||||
{% endfor %}
|
||||
@@ -185,7 +185,7 @@
|
||||
|
||||
{% block scripts %}
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
var billCurrencySymbol = "{{ convertToNative ? defaultCurrency.symbol : object.data.currency.symbol }}";
|
||||
var billCurrencySymbol = "{{ convertToPrimary ? primaryCurrency.symbol : object.data.currency.symbol }}";
|
||||
var billUrl = '{{ route('chart.bill.single', [object.data.id]) }}';
|
||||
</script>
|
||||
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
|
||||
|
||||
Reference in New Issue
Block a user