Improve conditionLabel method in BranchView component to handle edge cases and ensure accurate state representation. Added checks for null and undefined values, and clarified the return value for zero or negative conditions.

This commit is contained in:
Torsten Schulz (local)
2025-12-22 14:54:51 +01:00
parent 7139d321ea
commit d0c73503a2
7 changed files with 53 additions and 3 deletions

View File

@@ -29,6 +29,10 @@ Director.init({
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true},
mayRepairVehicles: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true},
lastSalaryPayout: {
type: DataTypes.DATE,
allowNull: false,