correctly show comparison data if the date is changed, not just the value for a comparison set
This commit is contained in:
@@ -24,7 +24,8 @@
|
|||||||
{% for r in DISP %}
|
{% for r in DISP %}
|
||||||
<div class="row align-items-center">
|
<div class="row align-items-center">
|
||||||
{% for el in r %}
|
{% for el in r %}
|
||||||
{% if COMP and COMP['vars'][el.varname] != finance[el.varname] %}
|
{% if COMP and ( COMP['vars'][el.varname] != finance[el.varname] or
|
||||||
|
(COMP['vars'][el.datevarname] is defined and COMP['vars'][el.datevarname] != finance[el.datevarname]) ) %}
|
||||||
{% set extra=" text-primary" %}
|
{% set extra=" text-primary" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set extra="" %}
|
{% set extra="" %}
|
||||||
@@ -46,8 +47,8 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
{% elif el.display=="date" %}
|
{% elif el.display=="date" %}
|
||||||
{% if COMP and COMP['vars'][el.varname] != finance[el.varname] %}
|
{% if COMP and (COMP['vars'][el.varname] != finance[el.varname] or COMP['vars'][el.datevarname] != finance[el.datevarname]) %}
|
||||||
data-bs-toggle="tooltip" title="Comparison was: {{COMP['vars'][el.varname]}}"
|
data-bs-toggle="tooltip" title="Comparison was: {{COMP['vars'][el.varname]}} on {{COMP['vars'][el.datevarname]}}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
class="col-form-label me-2 text-end float-end {{extra}}">{{el.label}}
|
class="col-form-label me-2 text-end float-end {{extra}}">{{el.label}}
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user