From 4f24fd88bf7dc1cdb2eeadeb08d0558851c7a567 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 14 Dec 2025 19:58:55 +0100 Subject: [PATCH] Fixed packaging excel header and added packaging properties --- .../de/avatic/lcc/model/bulk/header/PackagingHeader.java | 2 +- .../resources/db/migration/V11__Schedule_Priority.sql | 3 ++- .../resources/db/migration/V12__Packaging_Properties.sql | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/db/migration/V12__Packaging_Properties.sql diff --git a/src/main/java/de/avatic/lcc/model/bulk/header/PackagingHeader.java b/src/main/java/de/avatic/lcc/model/bulk/header/PackagingHeader.java index 325264c..980485f 100644 --- a/src/main/java/de/avatic/lcc/model/bulk/header/PackagingHeader.java +++ b/src/main/java/de/avatic/lcc/model/bulk/header/PackagingHeader.java @@ -17,7 +17,7 @@ public enum PackagingHeader implements HeaderProvider { HU_DIMENSION_UNIT("HU Dimension unit"), HU_WEIGHT("HU gross weight"), HU_WEIGHT_UNIT("HU gross weight unit"), - HU_UNIT_COUNT("Units/HU [pieces]"); + HU_UNIT_COUNT("SHU Units/HU [SHU pieces]"); private final String header; diff --git a/src/main/resources/db/migration/V11__Schedule_Priority.sql b/src/main/resources/db/migration/V11__Schedule_Priority.sql index 45fee6f..20945fa 100644 --- a/src/main/resources/db/migration/V11__Schedule_Priority.sql +++ b/src/main/resources/db/migration/V11__Schedule_Priority.sql @@ -16,4 +16,5 @@ ALTER TABLE premise_destination ADD COLUMN distance_d2d DECIMAL(15, 2) DEFAULT NULL COMMENT 'travel distance between the two nodes in meters'; ALTER TABLE premise_route_section - ADD COLUMN distance DECIMAL(15, 2) DEFAULT NULL COMMENT 'travel distance between the two nodes in meters'; \ No newline at end of file + ADD COLUMN distance DECIMAL(15, 2) DEFAULT NULL COMMENT 'travel distance between the two nodes in meters'; + diff --git a/src/main/resources/db/migration/V12__Packaging_Properties.sql b/src/main/resources/db/migration/V12__Packaging_Properties.sql new file mode 100644 index 0000000..24630be --- /dev/null +++ b/src/main/resources/db/migration/V12__Packaging_Properties.sql @@ -0,0 +1,8 @@ +INSERT INTO packaging_property_type (name, external_mapping_id, data_type, validation_rule, is_required, description, property_group, sequence_number) +VALUES + ('Stackable', 'STACKABLE', 'BOOLEAN', NULL, FALSE, 'desc', 'general', 1), + ('Rust Prevention', 'RUST_PREVENTION', 'BOOLEAN', NULL, FALSE, 'desc', 'general', 2), + ('Mixable', 'MIXABLE', 'BOOLEAN', NULL, FALSE, 'desc', 'general', 3) +ON DUPLICATE KEY UPDATE + name = VALUES(name), + data_type = VALUES(data_type); \ No newline at end of file