fix: WarehouseShippingNote availableType Matcher

This commit is contained in:
Luca Haid
2025-04-08 13:02:15 +00:00
parent 9c10d14962
commit e7f165d821

View File

@@ -184,7 +184,7 @@ Vue.component('warehouse-shipping-note-modal', {
return window.notify('error', 'Mindestens eine Position oder eine Stundenbuchung sind erforderlich');
}
if (this.availableTypes.find(t => t.name === this.shippingNote.type)) {
if (this.availableTypes.find(t => t.text === this.shippingNote.type)) {
this.shippingNote.type = this.availableTypes.find(t => t.name === this.shippingNote.type).value;
}
@@ -267,4 +267,4 @@ Vue.component('warehouse-shipping-note-signature-pad', {
this.shippingNote = response.data;
this.signaturePad = new SignaturePad(document.getElementById('signature-pad'));
}
})
})