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 %}
|
||||
<div class="row align-items-center">
|
||||
{% 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" %}
|
||||
{% else %}
|
||||
{% set extra="" %}
|
||||
@@ -46,8 +47,8 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% elif el.display=="date" %}
|
||||
{% if COMP and COMP['vars'][el.varname] != finance[el.varname] %}
|
||||
data-bs-toggle="tooltip" title="Comparison was: {{COMP['vars'][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]}} on {{COMP['vars'][el.datevarname]}}"
|
||||
{% endif %}
|
||||
class="col-form-label me-2 text-end float-end {{extra}}">{{el.label}}
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user