From 529130a622b68dfaa1bdc8e7357cb592a4dad611 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?=
-
+
+
+
+
+
+
+
+
Brak danych
| Typ listy | -Miesiąc | -Rok | -Całkowite | +Typ listy | +Miesiąc | +Rok | +Całkowite | +Średnia | {{ '%.2f'|format(expense_summary.all.month) }} PLN | {{ '%.2f'|format(expense_summary.all.year) }} PLN | {{ '%.2f'|format(expense_summary.all.total) }} PLN | +{{ '%.2f'|format(expense_summary.all.avg) }} PLN |
|---|---|---|---|---|---|---|---|---|
| Aktywne | {{ '%.2f'|format(expense_summary.active.month) }} PLN | {{ '%.2f'|format(expense_summary.active.year) }} PLN | {{ '%.2f'|format(expense_summary.active.total) }} PLN | +{{ '%.2f'|format(expense_summary.active.avg) }} PLN | ||||
| Archiwalne | {{ '%.2f'|format(expense_summary.archived.month) }} PLN | {{ '%.2f'|format(expense_summary.archived.year) }} PLN | {{ '%.2f'|format(expense_summary.archived.total) }} PLN | +{{ '%.2f'|format(expense_summary.archived.avg) }} PLN | ||||
| Wygasłe | {{ '%.2f'|format(expense_summary.expired.month) }} PLN | {{ '%.2f'|format(expense_summary.expired.year) }} PLN | {{ '%.2f'|format(expense_summary.expired.total) }} PLN | +{{ '%.2f'|format(expense_summary.expired.avg) }} PLN |
+ {% if id == 'all' %} + Rozmiar plików tej strony: + {% else %} + Rozmiar plików listy #{{ id }}: + {% endif %} + + {% if page_filesize >= 1024*1024 %} + {{ (page_filesize / 1024 / 1024) | round(2) }} MB + {% else %} + {{ (page_filesize / 1024) | round(1) }} kB + {% endif %} + + | + Łącznie: + + {% if total_filesize >= 1024*1024 %} + {{ (total_filesize / 1024 / 1024) | round(2) }} MB + {% else %} + {{ (total_filesize / 1024) | round(1) }} kB + {% endif %} + +
+ +| Produkty | Paragony | Akcje | - @@ -71,15 +73,15 @@ ⬇️ Usuń admina {% endif %} {% if user.username == 'admin' %} - - 🗑️ Usuń - + + 🗑️ Usuń + {% else %} - - 🗑️ Usuń - + + 🗑️ Usuń + {% endif %} @@ -88,6 +90,7 @@
|---|
Dla użytkownika:
- +{{ r.filename }}
-Wgrano: {{ r.uploaded_at.strftime('%Y-%m-%d %H:%M') }}
-- Uploader: {{ r.uploaded_by_user.username if r.uploaded_by_user else "?" }} -
- {% if r.filesize and r.filesize >= 1024 * 1024 %} -Rozmiar: {{ (r.filesize / 1024 / 1024) | round(2) }} MB
- {% elif r.filesize %} -Rozmiar: {{ (r.filesize / 1024) | round(1) }} kB
- {% else %} -Brak danych o rozmiarze
- {% endif %} + +| ID | +Nazwa listy | +Właściciel | +Data utworzenia | +Status | +Podgląd produktów | +Kategorie | +|||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ l.id }} | ++ {{ l.title + }} + | ++ {% if l.owner %} + 👤 {{ l.owner.username }} ({{ l.owner.id }}) + {% else %} + - + {% endif %} + | +{{ l.created_at.strftime('%Y-%m-%d %H:%M') if l.created_at else '-' }} | ++ {% if l.is_archived %}Archiwalna{% + endif %} + {% if l.is_temporary %}Tymczasowa{% + endif %} + {% if l.is_public %}Publiczna{% else + %} + Prywatna{% endif %} + | +
+ |
+ + + | +|||||
| + Brak list zakupowych do wyświetlenia + | +|||||||||||
| ID | -Nazwa listy | -Właściciel | -Data utworzenia | -Status | -Podgląd produktów | -Kategorie | -|||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ l.id }} | -- {{ l.title }} - | -- {% if l.owner %} - 👤 {{ l.owner.username }} ({{ l.owner.id }}) - {% else %} - - - {% endif %} - | -{{ l.created_at.strftime('%Y-%m-%d %H:%M') if l.created_at else '-' }} | -- {% if l.is_archived %}Archiwalna{% - endif %} - {% if l.is_temporary %}Tymczasowa{% - endif %} - {% if l.is_public %}Publiczna{% else - %} - Prywatna{% endif %} - | -
- |
- - - | -|||||
| - Brak list zakupowych do wyświetlenia - | -|||||||||||
{{ r.filename }}
-Wgrano: {{ r.uploaded_at.strftime('%Y-%m-%d %H:%M') }}
-- Uploader: {{ r.uploaded_by_user.username if r.uploaded_by_user else "?" }} -
- {% if r.filesize and r.filesize >= 1024 * 1024 %} -Rozmiar: {{ (r.filesize / 1024 / 1024) | round(2) }} MB
- {% elif r.filesize %} -Rozmiar: {{ (r.filesize / 1024) | round(1) }} kB
- {% else %} -Brak danych o rozmiarze
- {% endif %} - 🔄 Obróć o 90° - - ✂️ Przytnij - - ✏️ - Zmień nazwę - {% if not r.file_hash %} - 🔐 Generuj hash - {% endif %} - 🗑️ - Usuń - ✏️ - Edytuj listę #{{ r.list_id }} +{{ r.filename }}
-Wgrano: {{ r.uploaded_at.strftime('%Y-%m-%d %H:%M') }}
- {% if r.filesize and r.filesize >= 1024 * 1024 %} -Rozmiar: {{ (r.filesize / 1024 / 1024) | round(2) }} MB
- {% elif r.filesize %} -Rozmiar: {{ (r.filesize / 1024) | round(1) }} kB
- {% else %} -Brak danych o rozmiarze
- {% endif %} - 🔄 Obróć o 90° +System spróbuje automatycznie rozpoznać kwoty z dodanych paragonów.
+Dokonaj korekty jeśli źle rozpozna kwote na paragonie.
{% if current_user.is_authenticated %}📊 Łącznie wykryto: ${data.total.toFixed(2)} PLN
`; html += `⏱ Czas analizy OCR: ${duration} sek.
`; + html += `📊 Łącznie wykryto: ${data.total.toFixed(2)} PLN
`; data.results.forEach((r, i) => { const disabled = r.already_added ? "disabled" : ""; @@ -30,8 +30,8 @@ async function analyzeReceipts(listId) { const inputField = ``; const button = r.already_added - ? `✅ Dodano` - : `System spróbuje automatycznie rozpoznać kwoty z dodanych paragonów.
-Dokonaj korekty jeśli źle rozpozna kwote na paragonie.
+System spróbuje automatycznie rozpoznać kwoty z dodanych paragonów.
+ Dokonaj korekty jeśli źle rozpozna kwote na paragonie.
+
System spróbuje automatycznie rozpoznać kwoty z dodanych paragonów.
- Dokonaj korekty jeśli źle rozpozna kwote na paragonie.
+ Dokonaj korekty jeśli źle rozpozna kwote i kliknij w "Dodaj" aby dodać wydatek.
Aby usunąć listę {{ list.title }}, wpisz usuń i poczekaj 2 sekundy:
| ID | @@ -99,7 +99,7 @@
|---|
| ID | diff --git a/templates/admin/mass_edit_categories.html b/templates/admin/mass_edit_categories.html index b201e67..2946ca8 100644 --- a/templates/admin/mass_edit_categories.html +++ b/templates/admin/mass_edit_categories.html @@ -21,7 +21,7 @@
|---|
| ID | diff --git a/templates/admin/user_management.html b/templates/admin/user_management.html index 05ec43d..e6ad2d7 100644 --- a/templates/admin/user_management.html +++ b/templates/admin/user_management.html @@ -34,7 +34,7 @@
|---|
| ID | diff --git a/templates/base.html b/templates/base.html index 4cd7d63..d50f9ca 100644 --- a/templates/base.html +++ b/templates/base.html @@ -50,7 +50,7 @@ {% else %}
|---|
| -- 2.43.0 From 8662d085f372ae8686814546a23a2261206f2d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= |
|---|
| diff --git a/templates/expenses.html b/templates/expenses.html index be40680..d592b43 100644 --- a/templates/expenses.html +++ b/templates/expenses.html @@ -95,6 +95,7 @@ | ||||||
|---|---|---|---|---|---|---|
| Nazwa listy | +Właściciel | Data | Wydatki (PLN) |
{{ list.title }}
- 👤 {{ list.owner_username or '?' }} |
- {{ list.created_at.strftime('%Y-%m-%d') }} | +👤 {{ list.owner_username or '?' }} | +{{ list.created_at.strftime('%Y-%m-%d %H:%M') }} | {{ '%.2f'|format(list.total_expense) }} | {% endfor %} -- 2.43.0 From 8685e65d220264c6a47fe8327c0d222a8fd2e062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?=
| + | ID | Nazwa listy | Właściciel | Data | @@ -111,6 +112,7 @@ +{{ list.id }} | {{ list.title }} | -- 2.43.0 From 5415e3435e82e9eb8d91035fd9107cd67b18bf99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?=