Generalize email system with invoice workflow and Stiftungsgeschichte category
- Rename DestinataerEmailEingang → EmailEingang with category support (destinataer, rechnung, land_pacht, stiftungsgeschichte, allgemein) - Add invoice capture workflow: create Verwaltungskosten from email, link DMS documents as invoice attachments, track payment status - Add Stiftungsgeschichte email category with auto-detection patterns (Ahnenforschung, Genealogie, Chronik, etc.) and DMS integration - Update poll_emails task with category detection and DMS context mapping - Show available history documents in Geschichte editor sidebar - Consolidate DMS views, remove legacy dokument templates - Update all detail/form templates for DMS document linking - Add deploy.sh script and streamline compose.yml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -188,12 +188,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Verknüpfte Dokumente -->
|
||||
<!-- Dokumente (DMS) -->
|
||||
<div class="card mb-4">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<h5 class="mb-0"><i class="fas fa-folder-open me-2"></i>Verknüpfte Dokumente</h5>
|
||||
<a href="/dokumente/verwaltung/" class="btn btn-sm btn-outline-primary">
|
||||
<i class="fas fa-link me-1"></i>Dokument verknüpfen
|
||||
<h5 class="mb-0"><i class="fas fa-folder-open me-2"></i>Dokumente</h5>
|
||||
<a href="{% url 'stiftung:dms_upload' %}?verpachtung={{ landverpachtung.pk }}" class="btn btn-sm btn-outline-primary">
|
||||
<i class="fas fa-upload me-1"></i>Dokument hochladen
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -212,14 +212,21 @@
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{ doc.titel|default:"Ohne Titel" }}</strong>
|
||||
<br>
|
||||
<small class="text-muted">Paperless-ID: {{ doc.paperless_document_id }}</small>
|
||||
{% if doc.dateiname_original %}<br><small class="text-muted">{{ doc.dateiname_original }} ({{ doc.get_human_size }})</small>{% endif %}
|
||||
</td>
|
||||
<td>{{ doc.get_kontext_display }}</td>
|
||||
<td>
|
||||
<a href="{{ doc.get_paperless_url }}" target="_blank" class="btn btn-sm btn-outline-primary" title="In Paperless öffnen">
|
||||
<i class="fas fa-external-link-alt"></i>
|
||||
</a>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="{% url 'stiftung:dms_download' doc.pk %}" class="btn btn-sm btn-outline-primary" title="Herunterladen">
|
||||
<i class="fas fa-download"></i>
|
||||
</a>
|
||||
<a href="{% url 'stiftung:dms_edit' doc.pk %}" class="btn btn-sm btn-outline-warning" title="Bearbeiten">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a href="{% url 'stiftung:dms_delete' doc.pk %}" class="btn btn-sm btn-outline-danger" title="Löschen">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -227,7 +234,7 @@
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<p class="text-muted">Keine Dokumente verknüpft.</p>
|
||||
<p class="text-muted">Keine Dokumente vorhanden.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user