Backend: Verbrauchsgegenstand (Product.bulk) - Gegenstand wie ein Lebensmittel
Neues Flag bulk auf Product: Gegenstand als Charge mit Menge/Einheit/MHD/ Mindestbestand fuehren (z.B. Sonnencreme in ml), ohne eindeutigen Code. Migration (ADD COLUMN), Schemas und Anlege-Pfad ergaenzt. Kernlogik nutzt foodLike = kein Gegenstand ODER bulk; Bestand/Einkaufsliste unveraendert. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -370,6 +370,7 @@ def create_product(
|
||||
shop_id=payload.shop_id,
|
||||
product_url=payload.product_url or None,
|
||||
individual=bool(payload.individual),
|
||||
bulk=bool(payload.bulk),
|
||||
source="manual",
|
||||
)
|
||||
db.add(product)
|
||||
|
||||
Reference in New Issue
Block a user