{% extends "core/base.html" %}{% load fmt %} {% block title %}CSV import{% endblock %} {% block content %}

CSV import

{% if stage == "upload" %}
{% csrf_token %}

Dates accept 2026-10-31, 31/10/2026, 31-10-2026 or 31-Oct-2026. Unknown customers and vendors are created. Samples are in examples/.

{% else %}

Importing {{ kind }}{% if count %} · {{ count }} rows{% endif %}. Map your columns to CashPilot fields.

{% csrf_token %}
{% for f in fields %}{% endfor %}
{% if sample %}

Sample rows

{% for h in headers %}{% endfor %} {% for row in sample %}{% for v in row.values %}{% endfor %}{% endfor %}
{{ h }}
{{ v }}
{% endif %} {% if result %}

Validation

{{ result.valid|length }} valid {{ result.errors|length }} error(s)

{% if errors %}{% for n, msg in errors %}{% endfor %}
RowProblem
{{ n }}{{ msg }}
{% endif %} {% if result.valid %}
{% csrf_token %} {% for k, v in mapping.items %}{% endfor %}
{% endif %}
{% endif %} {% endif %} {% endblock %}