Add measurement types for box and general packaging sizes

This commit is contained in:
2026-05-15 22:55:56 +02:00
parent 07434d41b1
commit 88c357c00f
2 changed files with 33 additions and 1 deletions
+1 -1
Submodule l18n updated: a8a30a8563...fffe56da4a
+32
View File
@@ -79,6 +79,14 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
case height_plate; case height_plate;
case width_plate; case width_plate;
case length_packaging;
case height_packaging;
case width_packaging;
case length_box;
case height_box;
case width_box;
/** /**
* Returns a value of this type based on a string. * Returns a value of this type based on a string.
* *
@@ -146,6 +154,12 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
'width_image_mount_outer' => self::width_image_mount_outer, 'width_image_mount_outer' => self::width_image_mount_outer,
'height_plate' => self::height_plate, 'height_plate' => self::height_plate,
'width_plate' => self::width_plate, 'width_plate' => self::width_plate,
'length_packaging' => self::length_packaging,
'height_packaging' => self::height_packaging,
'width_packaging' => self::width_packaging,
'length_box' => self::length_box,
'height_box' => self::height_box,
'width_box' => self::width_box,
default => throw new MDpageParameterNotFromListException("Unknown measurement type"), default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };
@@ -218,6 +232,12 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
55 => self::width_image_mount_outer, 55 => self::width_image_mount_outer,
56 => self::height_plate, 56 => self::height_plate,
57 => self::width_plate, 57 => self::width_plate,
58 => self::length_packaging,
59 => self::height_packaging,
60 => self::width_packaging,
61 => self::length_box,
62 => self::height_box,
63 => self::width_box,
default => throw new MDpageParameterNotFromListException("Unknown measurement type"), default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };
@@ -310,6 +330,12 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
self::width_image_mount_outer => self::width, self::width_image_mount_outer => self::width,
self::height_plate => self::height, self::height_plate => self::height,
self::width_plate => self::width, self::width_plate => self::width,
self::length_packaging => self::length,
self::height_packaging => self::height,
self::width_packaging => self::width,
self::length_box => self::length,
self::height_box => self::height,
self::width_box => self::width,
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"), # default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };
@@ -380,6 +406,12 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
self::width_image_mount_outer => 55, self::width_image_mount_outer => 55,
self::height_plate => 56, self::height_plate => 56,
self::width_plate => 57, self::width_plate => 57,
self::length_packaging => 58,
self::height_packaging => 59,
self::width_packaging => 60,
self::length_box => 61,
self::height_box => 62,
self::width_box => 63,
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"), # default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
}; };