First commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Import{% endblock %}
|
||||
{% block content %}
|
||||
<div class="page-head"><div><h1>Import statements</h1><div class="sub">ING (NL) and Revolut CSV exports · duplicates are skipped automatically</div></div></div>
|
||||
<div class="grid cols-2">
|
||||
<form class="card" method="post" enctype="multipart/form-data">
|
||||
<h2>{{ icon('file-up') }} Upload CSV files</h2>
|
||||
<p class="muted small">You can select several files at once. Re-importing overlapping periods is safe: duplicates are skipped.</p>
|
||||
<div class="form-grid" style="grid-template-columns:1fr">
|
||||
<label>Files<input type="file" name="files" accept=".csv,text/csv" multiple required></label>
|
||||
<label>Account
|
||||
<select name="account_id">
|
||||
<option value="auto">Auto-detect (ING uses the IBAN in the file; Revolut goes to your Revolut account)</option>
|
||||
{% for a in accounts %}<option value="{{ a.id }}">{{ a.name }}{{ ' · ' + a.iban if a.iban }}</option>{% endfor %}
|
||||
</select></label>
|
||||
<div><button>{{ icon('upload', 'sm') }} Import</button></div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="card">
|
||||
<h2>{{ icon('download') }} Where to get the files</h2>
|
||||
<p><strong>ING (main and shared):</strong> Mijn ING → account → <em>Af- en bijschrijvingen downloaden</em> → format
|
||||
<em>Kommagescheiden CSV</em> or <em>Puntkomma-gescheiden</em>, pick a date range. Both formats work, Dutch or English headers.</p>
|
||||
<p><strong>Revolut:</strong> app → account → ⋯ → <em>Statement</em> → <em>Excel</em>/<em>CSV</em>, pick the period. Only completed
|
||||
transactions from the <em>Current</em> account are imported.</p>
|
||||
<p class="muted small">Prefer automatic syncing? Set up Enable Banking under <a href="/settings#bank">Settings</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if results %}
|
||||
<div class="card" style="margin-top:1rem">
|
||||
<h2>Result</h2>
|
||||
<div class="table-wrap"><table>
|
||||
<thead><tr><th>File</th><th>Account</th><th class="num">New</th><th class="num">Duplicates</th><th class="num">Skipped</th><th class="num">Debt payments</th></tr></thead>
|
||||
<tbody>
|
||||
{% for r in results %}
|
||||
{% if r.ok %}
|
||||
<tr><td>{{ r.file }} <span class="badge">{{ r.fmt }}</span></td><td>{{ r.account }}</td><td class="num">{{ r.inserted }}</td>
|
||||
<td class="num">{{ r.duplicates }}</td><td class="num">{{ r.skipped }}</td><td class="num">{{ r.debt_payments }}</td></tr>
|
||||
{% else %}
|
||||
<tr><td>{{ r.file }}</td><td colspan="5" class="bad">{{ r.error }}</td></tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p><a href="/transactions?category=none">Review uncategorised</a> · <a href="/recurring">Check recurring</a> · <a href="/">Dashboard</a></p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user