From a33a4e861bd321bad3afd584b7cc7991ed778c40 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 5 May 2025 12:08:57 +0200 Subject: [PATCH] - --- .../WarehouseShippingNote/WarehouseShippingNoteController.php | 2 +- public/plugins/vue/tt-components/tt-position-manager.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/WarehouseShippingNote/WarehouseShippingNoteController.php b/application/WarehouseShippingNote/WarehouseShippingNoteController.php index d9de1f636..e88e7ac8e 100644 --- a/application/WarehouseShippingNote/WarehouseShippingNoteController.php +++ b/application/WarehouseShippingNote/WarehouseShippingNoteController.php @@ -245,7 +245,7 @@ class WarehouseShippingNoteController extends TTCrud { 'articleTitle' => "Fahrkostenpauschale (hin und retour)", 'articleDescription' => "Datum: ". date("d.m.Y", strtotime($hoursEntry['date'])) . " | Externes Fahrzeug", 'articleUnit' => 'km', - 'amount' => $hoursEntry['kilometerCount'] * 2, + 'amount' => $hoursEntry['kilometerCount'], 'price' => 2 * $hoursEntry['kilometerCount'] ?? 0, ]; } else if (!empty($hoursEntry['carId']) && $hoursEntry['kilometerCount'] > 0) { diff --git a/public/plugins/vue/tt-components/tt-position-manager.js b/public/plugins/vue/tt-components/tt-position-manager.js index 1e321d9ee..92bf52671 100644 --- a/public/plugins/vue/tt-components/tt-position-manager.js +++ b/public/plugins/vue/tt-components/tt-position-manager.js @@ -23,7 +23,8 @@ Vue.component('tt-resolver', { const { data } = await axios.get(endpoint); - this.text = this.autocomplete ? data[0]?.text : data.name ?? data.title ?? data.text ?? '[E] Key not found'; + if (this.reference === 'WarehouseArticle') this.text = `${data.articleNumber} | ${data.title}`; + else this.text = this.autocomplete ? data[0]?.text : data.name ?? data.title ?? data.text ?? '[E] Key not found'; this.loading = false; } });