fix: WarehouseShippingNote availableType Matcher
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user