Add 'sleep' status to Production model and update related components

- Introduced a new 'sleep' boolean field in the Production model to indicate if production is suspended.
- Updated FalukantService to include 'sleep' in the production attributes.
- Enhanced MessagesDialog and ProductionSection components to display the production status and handle branch names.
- Added corresponding translations for 'status', 'sleep', and 'active' in both German and English locale files.
This commit is contained in:
Torsten Schulz (local)
2026-01-14 15:29:53 +01:00
parent d1359ccc36
commit 02d24eccd8
6 changed files with 65 additions and 10 deletions

View File

@@ -838,7 +838,7 @@ class FalukantService extends BaseService {
{
model: Production,
as: 'productions',
attributes: ['quantity', 'startTimestamp'],
attributes: ['quantity', 'startTimestamp', 'sleep'],
include: [{ model: ProductType, as: 'productType', attributes: ['id', 'category', 'labelTr', 'sellCost', 'productionTime'] }]
}
],