feat(automation): number formats for raw material and production batches, raw material minimum

- RAW_MATERIAL_LOT_NUMBER_FORMAT / PRODUCTION_BATCH_NUMBER_FORMAT fill in the
  lot number when it is left empty, like honey batches and bottlings.
- RAW_MATERIAL_LOW: task when the total of a raw material kind drops below
  config.minGrams after consumption, withdrawal or inventory count.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Nick SzaunigandClaude Opus 5.5 committed 2026-10-07 16:01:33 +02:00
1 parent fc887d8431
commit 5408711b2d
18 files changed
+311 -26

No files matched your search

@@ -28,7 +28,8 @@ export interface RawMaterialLot {
export interface CreateRawMaterialLotInput {
kind: RawMaterialKind;
lotNumber: string;
/** Leer = automatisch, falls die Automatisierung aktiv ist. */
lotNumber?: string;
date: string;
quantity: number;
apiaryId?: string;