Gestion des depenses ventilees (multi-taux TVA) a l'import Indy
Deploy via Portainer / deploy (push) Successful in 0s

This commit is contained in:
2026-07-15 10:26:58 +02:00
parent 507ffa283f
commit 2ba1c39bfd
5 changed files with 153 additions and 68 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
.tag.depense { color:var(--warn); border-color:#7a5f1f; }
.tag.operation { color:var(--accent); border-color:#25566e; }
.neutre-badge { font-size:10px; color:var(--muted); border:1px dashed var(--line); border-radius:6px; padding:1px 5px; margin-left:6px; }
.ventile-badge { font-size:10px; color:var(--accent); border:1px solid #25566e; border-radius:6px; padding:1px 5px; margin-left:6px; }
.btn-mini { padding:5px 11px; font-size:12.5px; border-radius:8px; }
#gtable td, #gtable th { border-bottom:1px solid var(--line); }
#gtable tbody tr:hover td { background:#243247; }
@@ -105,7 +106,7 @@
<td>{{ r.date|date:"d/m/Y" }}</td>
<td><span class="tag {{ r.type }}">{{ r.type_label }}</span></td>
<td>{{ r.libelle }}</td>
<td>{{ r.categorie }}{% if r.neutre %}<span class="neutre-badge">neutre</span>{% endif %}</td>
<td>{{ r.categorie }}{% if r.neutre %}<span class="neutre-badge">neutre</span>{% endif %}{% if r.ventile %}<span class="ventile-badge" title="Part d'une dépense ventilée (plusieurs taux de TVA)">ventilé</span>{% endif %}</td>
<td class="{% if r.montant >= 0 %}pos{% else %}neg{% endif %}">{{ r.montant|floatformat:2|unlocalize }} €</td>
<td>{% if r.tva %}{{ r.tva|floatformat:2|unlocalize }}{% else %}—{% endif %}</td>
<td>
+1
View File
@@ -124,6 +124,7 @@
<td>{{ l.type }}</td>
<input type="hidden" name="l_activite" value="{{ l.activite }}">
<input type="hidden" name="l_indy_id" value="{{ l.indy_id }}">
<input type="hidden" name="l_groupe" value="{{ l.groupe }}">
</tr>
{% endfor %}
</tbody>