Merge branch 'WarehouseShippingNote/add-automatic-filling' into 'master'

add automatic filling

See merge request fronk/thetool!1771
This commit is contained in:
Luca Haid
2025-09-18 09:27:28 +00:00

View File

@@ -203,6 +203,19 @@ Vue.component('warehouse-shipping-note-modal', {
hoursEntries: JSON.parse(data.hoursEntries),
metadata: data.metadata ? JSON.parse(data.metadata) : null
};
if (window.TT_CONFIG['WAREHOUSE_ADMIN'] == true && this.shippingNote.metadata && this.shippingNote.metadata.event_type_id) {
const typeMap = {
2: 'XI',
3: 'ESTMK',
7: 'SBIDI'
};
if (typeMap[this.shippingNote.metadata.event_type_id]) {
this.shippingNote.type = typeMap[this.shippingNote.metadata.event_type_id];
}
}
},
watch: {
geoAddr: async function() {