Compare commits

...
2 Commits
Author SHA1 Message Date
matthias 6980a2acc0 Added bartender files for Käfer Essen im Glas. 2026-09-30 21:29:36 +02:00
matthias 0d7770a446 Updated versions numbers. 2026-09-30 19:52:33 +02:00
9 changed files with 67 additions and 6 deletions

No files matched your search

Generated
+3 -3
View File
@@ -395,7 +395,7 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
[[package]]
name = "common"
version = "0.3.0"
version = "0.4.0"
dependencies = [
"log",
"serde",
@@ -1144,7 +1144,7 @@ dependencies = [
[[package]]
name = "label_editor"
version = "0.3.0"
version = "0.4.0"
dependencies = [
"common",
"server",
@@ -1573,7 +1573,7 @@ dependencies = [
[[package]]
name = "server"
version = "0.3.0"
version = "0.4.0"
dependencies = [
"axum",
"common",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "label_editor"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
authors = ["Matthias Lodner <matthias@lodner.de>"]
Binary file not shown.
Binary file not shown.
Binary file not shown.
+60
View File
@@ -92,3 +92,63 @@ ORDER BY a.name, v.weight ASC
## Lodner kleines Etikett
## Käfer Essen im Glas
### SQL Abfrage
```sql
SELECT
a.name AS product,
CONCAT(a.topm_id, v.topm_row) AS aritcle_number,
COALESCE(v.name, a.name) AS name,
COALESCE(a.additional_name, COALESCE(v.name, a.name)) AS sigel_name,
CONCAT(CONCAT(v.weight, ' '), u.display) AS weight,
v.ean AS ean,
COALESCE(v.description, a.description) AS description,
CONCAT(COALESCE(v.ingredients, a.ingredients),
CASE
WHEN COALESCE(v.ingredients, a.ingredients) LIKE '%Zutaten:%' THEN CONCAT('<br>', s.bio_info)
ELSE '' END
) AS ingredients,
COALESCE(a.mhd, s.mhd) AS mhd,
COALESCE(a.allergens_text, s.allergens_text) AS allergens_info,
CONCAT(
CONCAT(n.calorific_value_kj, ' kJ<br>'),
CONCAT(n.calorific_value_kcal, ' kcal')
) AS energy,
n.fat,
n.saturated_fat,
n.carbohydrates,
n.sugar,
n.fibers,
n.protein,
n.salt
FROM article AS a
INNER JOIN variant AS v ON v.article_id = a.id
INNER JOIN settings AS s ON v.article_id = v.article_id
INNER JOIN unit AS u ON v.unit_id = u.id
INNER JOIN label AS l ON v.label_id = l.id
INNER JOIN nutrition AS n ON n.id = a.nutrition_id
WHERE v.label_id = 3
ORDER BY a.name, v.weight ASC
```
### HTML settings for label
#### Product title
```html
<div style="text-align: center; font-size: 16pt; font-family: Optima LT Std;">
</div><div style="text-align: center; font-size: 8pt; font-family: Optima nova LT Pro Titling Init;">- HANDGEMACHT -</div>
```
#### MHD
```html
<div style="text-align: center; font-size: 7pt; font-family: Optima LT Std;">Ungeöffnet bei 4°C - 7°C mindestens haltbar bis:
</div>
```
#### Impressum
```html
<div style="text-align: center; font-size: 7pt; font-family: Optima LT Std;">
</div>
```
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "common"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
authors = ["Matthias Lodner <matthias@lodner.de>"]
+1
View File
@@ -1,5 +1,6 @@
{
"name": "frontend",
"version": "0.4.0",
"type": "module",
"private": true,
"scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.3.0"
version = "0.4.0"
edition = "2024"
authors = ["Matthias Lodner <matthias@lodner.de>"]