Zeilen-Kostenstelle ins Positionsmenü verschieben
This commit is contained in:
@@ -2784,7 +2784,6 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
<th class="pl-2">Name</th>
|
<th class="pl-2">Name</th>
|
||||||
<th class="pl-2">Menge</th>
|
<th class="pl-2">Menge</th>
|
||||||
<th class="pl-2">Einheit</th>
|
<th class="pl-2">Einheit</th>
|
||||||
<th class="pl-2">Kostenstelle</th>
|
|
||||||
<th class="pl-2" v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)">Preis</th>
|
<th class="pl-2" v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)">Preis</th>
|
||||||
<th class="pl-2" v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)">EK</th>
|
<th class="pl-2" v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)">EK</th>
|
||||||
<!-- <th class="pl-2" v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)">Steuer</th>
|
<!-- <th class="pl-2" v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)">Steuer</th>
|
||||||
@@ -2811,13 +2810,13 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
v-if="row.mode === 'pagebreak'"
|
v-if="row.mode === 'pagebreak'"
|
||||||
colspan="9"
|
colspan="8"
|
||||||
>
|
>
|
||||||
<USeparator/>
|
<USeparator/>
|
||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
v-if="row.mode === 'text'"
|
v-if="row.mode === 'text'"
|
||||||
colspan="9"
|
colspan="8"
|
||||||
>
|
>
|
||||||
<!-- <UInput
|
<!-- <UInput
|
||||||
v-model="row.text"
|
v-model="row.text"
|
||||||
@@ -3031,28 +3030,6 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
</template>
|
</template>
|
||||||
</USelectMenu>
|
</USelectMenu>
|
||||||
</td>
|
</td>
|
||||||
<td
|
|
||||||
class="w-full"
|
|
||||||
v-if="!['pagebreak','title','text'].includes(row.mode)"
|
|
||||||
>
|
|
||||||
<USelectMenu
|
|
||||||
v-model="row.costCentre"
|
|
||||||
:disabled="itemInfo.type === 'cancellationInvoices'"
|
|
||||||
:items="costcentres"
|
|
||||||
label-key="name"
|
|
||||||
value-key="id"
|
|
||||||
:search-input="{ placeholder: 'Suche...' }"
|
|
||||||
:filter-fields="['name', 'number']"
|
|
||||||
class="w-44"
|
|
||||||
>
|
|
||||||
<template #default>
|
|
||||||
<span class="truncate">{{ getCostCentreName(row.costCentre) }}</span>
|
|
||||||
</template>
|
|
||||||
<template #item="{ item: costcentre }">
|
|
||||||
{{ [costcentre.number, costcentre.name].filter(Boolean).join(" - ") }}
|
|
||||||
</template>
|
|
||||||
</USelectMenu>
|
|
||||||
</td>
|
|
||||||
<td
|
<td
|
||||||
class="w-full"
|
class="w-full"
|
||||||
v-if="!['pagebreak','title','text'].includes(row.mode) && !deliveryNoteLikeDocumentTypes.includes(itemInfo.type)"
|
v-if="!['pagebreak','title','text'].includes(row.mode) && !deliveryNoteLikeDocumentTypes.includes(itemInfo.type)"
|
||||||
@@ -3200,9 +3177,32 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
</UFormField>
|
</UFormField>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
|
|
||||||
|
<UFormField
|
||||||
|
label="Kostenstelle:"
|
||||||
|
class="mt-3"
|
||||||
|
>
|
||||||
|
<USelectMenu
|
||||||
|
v-model="row.costCentre"
|
||||||
|
:items="costcentres"
|
||||||
|
label-key="name"
|
||||||
|
value-key="id"
|
||||||
|
:search-input="{ placeholder: 'Suche...' }"
|
||||||
|
:filter-fields="['name', 'number']"
|
||||||
|
class="w-full"
|
||||||
|
>
|
||||||
|
<template #default>
|
||||||
|
<span class="truncate">{{ getCostCentreName(row.costCentre) }}</span>
|
||||||
|
</template>
|
||||||
|
<template #item="{ item: costcentre }">
|
||||||
|
{{ [costcentre.number, costcentre.name].filter(Boolean).join(" - ") }}
|
||||||
|
</template>
|
||||||
|
</USelectMenu>
|
||||||
|
</UFormField>
|
||||||
|
|
||||||
<UFormField
|
<UFormField
|
||||||
label="Einzelpreis:"
|
label="Einzelpreis:"
|
||||||
v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)"
|
v-if="!deliveryNoteLikeDocumentTypes.includes(itemInfo.type)"
|
||||||
|
class="mt-3"
|
||||||
>
|
>
|
||||||
<UInput
|
<UInput
|
||||||
v-model="row.inputPrice"
|
v-model="row.inputPrice"
|
||||||
@@ -3423,7 +3423,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
</td>
|
</td>
|
||||||
<td
|
<td
|
||||||
v-if="row.mode === 'title'"
|
v-if="row.mode === 'title'"
|
||||||
colspan="8"
|
colspan="7"
|
||||||
>
|
>
|
||||||
<UInput
|
<UInput
|
||||||
:disabled="itemInfo.type === 'cancellationInvoices'"
|
:disabled="itemInfo.type === 'cancellationInvoices'"
|
||||||
|
|||||||
Reference in New Issue
Block a user