Added Remove Button to CostCentre in IncomingInvoices

This commit is contained in:
2025-03-14 17:54:15 +01:00
parent d907f1ca01
commit c3fcb83da2
2 changed files with 45 additions and 26 deletions

View File

@@ -352,6 +352,7 @@ const createIncomingInvoice = async () => {
label="Kostenstelle"
class=" mb-3"
>
<InputGroup>
<USelectMenu
:options="dataStore.getCostCentresComposed"
option-attribute="label"
@@ -366,6 +367,15 @@ const createIncomingInvoice = async () => {
</template>
</USelectMenu>
<UButton
variant="outline"
color="rose"
v-if="item.costCentre"
icon="i-heroicons-x-mark"
@click="item.costCentre = null"
/>
</InputGroup>
</UFormGroup>

View File

@@ -324,6 +324,7 @@ const updateIncomingInvoice = async () => {
label="Kostenstelle"
class=" mb-3"
>
<InputGroup>
<USelectMenu
:options="dataStore.getCostCentresComposed"
option-attribute="label"
@@ -338,6 +339,14 @@ const updateIncomingInvoice = async () => {
</template>
</USelectMenu>
<UButton
variant="outline"
color="rose"
v-if="item.costCentre"
icon="i-heroicons-x-mark"
@click="item.costCentre = null"
/>
</InputGroup>
</UFormGroup>