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:
1 parent
fc887d8431
commit
5408711b2d
18 files changed
+311
-26
No files matched your search
@@ -8,7 +8,10 @@ export type AutomationTriggerType =
|
||||
| "HONEY_BATCH_NUMBER_FORMAT"
|
||||
| "BOTTLING_LOT_NUMBER_FORMAT"
|
||||
| "TREATMENT_FOLLOW_UP"
|
||||
| "FEEDING_FOLLOW_UP";
|
||||
| "FEEDING_FOLLOW_UP"
|
||||
| "RAW_MATERIAL_LOT_NUMBER_FORMAT"
|
||||
| "PRODUCTION_BATCH_NUMBER_FORMAT"
|
||||
| "RAW_MATERIAL_LOW";
|
||||
|
||||
export interface AutomationRule {
|
||||
id: string;
|
||||
|
||||
@@ -23,7 +23,8 @@ export interface ProductionBatch {
|
||||
|
||||
export interface CreateProductionBatchInput {
|
||||
productId: string;
|
||||
lotNumber: string;
|
||||
/** Leer = automatisch, falls die Automatisierung aktiv ist. */
|
||||
lotNumber?: string;
|
||||
date: string;
|
||||
quantity: number;
|
||||
bestBeforeDate?: string;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user