diff --git a/Dockerfile b/Dockerfile index bdff38d..327f4f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,17 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app -# psycopg2-binary embarque sa propre libpq : pas besoin de build-essential ni libpq-dev. +# Tesseract (OCR) + langue française, pour l'import par capture d'écran. +RUN apt-get update && apt-get install -y --no-install-recommends \ + tesseract-ocr tesseract-ocr-fra \ + && rm -rf /var/lib/apt/lists/* + +# psycopg2-binary embarque sa propre libpq : pas besoin de build-essential. COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . -# Fichiers statiques de l'admin (ne nécessite pas la base de données) RUN DJANGO_SECRET_KEY=build python manage.py collectstatic --noinput EXPOSE 8000 diff --git a/compta/templates/compta/import_csv.html b/compta/templates/compta/import_csv.html index 6ba137e..b4bc22c 100644 --- a/compta/templates/compta/import_csv.html +++ b/compta/templates/compta/import_csv.html @@ -3,7 +3,7 @@
-; (en-tête facultatif) :date ; libelle ; categorie ; activite ; taux_tva ; regime ; montant
- 2026-06-25;ALTISSIMO;Vente de produits finis;vente;20;;168.40
- | # | Date | Libellé | Catégorie | Type | Taux | Régime | Montant |
|---|---|---|---|---|---|---|---|
| {{ l.n }} | {{ l.date }} | {{ l.libelle }} | -{{ l.categorie_nom }}{% if l.categorie_nom and not l.categorie %} ⚠️{% endif %} | -{{ l.type }} | -{{ l.taux }} % | {{ l.regime }} | {{ l.montant }} € | -