Feature: is_mandatory Flag für Kostenpositionstypen
- Neue Spalte wp_kgvvm_cost_entries.is_mandatory (TINYINT, default 1) - Kostenposten können jetzt als 'verpflichtend' oder 'manuell/optional' gekennzeichnet werden - Validator: sanitize_cost_entry() und validate_cost_entry() aktualisiert - CostRepository.save(): is_mandatory wird gespeichert - Admin: Checkbox 'Verpflichtende Position' in der Kostenposten-Form hinzugefügt - Datenbank: ALTER TABLE durchgeführt für existierende Instanzen
This commit is contained in:
@@ -201,6 +201,7 @@ class Schema {
|
||||
distribution_type VARCHAR(20) NOT NULL DEFAULT 'parcel',
|
||||
unit_amount DECIMAL(12,2) NULL,
|
||||
total_cost DECIMAL(12,2) NOT NULL DEFAULT 0.00,
|
||||
is_mandatory TINYINT(1) NOT NULL DEFAULT 1,
|
||||
note TEXT NULL,
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user