diff --git a/src/frontend/src/components/layout/edit/MaterialEdit.vue b/src/frontend/src/components/layout/edit/MaterialEdit.vue index b2e4e72..446bf42 100644 --- a/src/frontend/src/components/layout/edit/MaterialEdit.vue +++ b/src/frontend/src/components/layout/edit/MaterialEdit.vue @@ -29,7 +29,7 @@
Automatic tariff rate determination was ambiguous
- Please contact a customs expert to obtain correct HS code and tariff rate. + Please correct tariff rate or continue with default value.
diff --git a/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCostRow.vue b/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCostRow.vue index e6c5eb1..350eedf 100644 --- a/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCostRow.vue +++ b/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCostRow.vue @@ -27,7 +27,7 @@
@@ -38,7 +38,7 @@
@@ -49,7 +49,7 @@
@@ -79,6 +79,33 @@ export default { required: true } }, + computed: { + repackaging: { + get() { + return this.row.repackaging_costs?.toFixed(2) ?? ''; + }, + set(value) { + this.row.repackaging_costs && (this.row.repackaging_costs = value); + }, + }, + handling: { + get() { + return this.row.handling_costs?.toFixed(2) ?? ''; + }, + set(value) { + this.row.handling_costs && (this.row.handling_costs = value); + }, + }, + disposal: { + get() { + return this.row.disposal_costs?.toFixed(2) ?? ''; + }, + set(value) { + this.row.disposal_costs && (this.row.disposal_costs = value); + }, + + } + }, methods: { handleMouseDown(event) { if (event.shiftKey || event.ctrlKey) { diff --git a/src/main/java/de/avatic/lcc/service/excelMapper/MaterialFastExcelMapper.java b/src/main/java/de/avatic/lcc/service/excelMapper/MaterialFastExcelMapper.java index 8e2dca2..86acf21 100644 --- a/src/main/java/de/avatic/lcc/service/excelMapper/MaterialFastExcelMapper.java +++ b/src/main/java/de/avatic/lcc/service/excelMapper/MaterialFastExcelMapper.java @@ -167,10 +167,13 @@ public class MaterialFastExcelMapper { try { // Extract and validate data String partNumber = getCellValue(row, MaterialHeader.PART_NUMBER.ordinal(), rowNumber); - String description = getCellValue(row, MaterialHeader.DESCRIPTION.ordinal(), rowNumber); + String description = getCellValueAllowEmpty(row, MaterialHeader.DESCRIPTION.ordinal(), rowNumber); String hsCode = getCellValueAllowEmpty(row, MaterialHeader.HS_CODE.ordinal(), rowNumber); String operation = getCellValue(row, MaterialHeader.OPERATION.ordinal(), rowNumber); + if(description == null || description.isEmpty()) + description = partNumber; + // Validate lengths validateLength(partNumber, 0, 12, "Part Number", rowNumber); if (hsCode != null)