{% extends "_base.html" %} {% load i18n %} {% load labelbase_tags %} {% load sekizai_tags %} {% block content %} {% if labelbase %}

Currency Data Sync - {{ labelbase.name }}

{% if labelbase.fingerprint %}{{ labelbase.fingerprint }}{% endif %} {% if labelbase.about %}

{{ labelbase.about }}

{% endif %}

Sync currency data between label text (legacy format like "CHF 615.00") and the structured FMV field.

{% if text_only or fmv_only or conflicts %}
{{ text_only|length|add:fmv_only|length|add:conflicts|length }} labels need attention!
{% else %}
All good! All {{ synced|length }} labels have matching currency data.
{% endif %} {% if text_only %}
{{ text_only|length }} Labels with currency in text but no FMV field

These labels have currency values in the label text that can be synced to the FMV field.

    {% for label in text_only %}
  • {{ label.get_type_display }}: {{ label.ref }}
    Label: {{ label.label }}
    FMV: (empty)
    {% csrf_token %}
    Edit
  • {% endfor %}
{% csrf_token %}
{% endif %} {% if fmv_only %}
{{ fmv_only|length }} Labels with FMV but no currency in text

These labels have FMV data that can be added to the label text.

    {% for label in fmv_only %}
  • {{ label.get_type_display }}: {{ label.ref }}
    Label: {{ label.label|default:"(empty)" }}
    FMV: {{ label.fmv }}
    {% csrf_token %}
    Edit
  • {% endfor %}
{% csrf_token %}
{% endif %} {% if conflicts %}
{{ conflicts|length }} Labels with conflicting currency data

These labels have mismatched currency values between label text and FMV field.

    {% for label in conflicts %}
  • {{ label.get_type_display }}: {{ label.ref }}
    Label: {{ label.label }}
    FMV: {{ label.fmv }}
    {% csrf_token %}
    {% csrf_token %}
    Edit Manually
  • {% endfor %}
{% endif %} {% if synced %}
✓ {{ synced|length }} Labels with matching currency data

These labels have currency data properly synced between label text and FMV field.

    {% for label in synced %}
  • {{ label.get_type_display }}: {{ label.ref }}
    Label: {{ label.label }}
    FMV: {{ label.fmv }}
  • {% endfor %}
{% endif %}
{% else %}

Labelbase not found.

{% endif %} {% endblock %}