Added Remove Button to CostCentre in IncomingInvoices
This commit is contained in:
@@ -352,6 +352,7 @@ const createIncomingInvoice = async () => {
|
|||||||
label="Kostenstelle"
|
label="Kostenstelle"
|
||||||
class=" mb-3"
|
class=" mb-3"
|
||||||
>
|
>
|
||||||
|
<InputGroup>
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
:options="dataStore.getCostCentresComposed"
|
:options="dataStore.getCostCentresComposed"
|
||||||
option-attribute="label"
|
option-attribute="label"
|
||||||
@@ -366,6 +367,15 @@ const createIncomingInvoice = async () => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
</USelectMenu>
|
</USelectMenu>
|
||||||
|
<UButton
|
||||||
|
variant="outline"
|
||||||
|
color="rose"
|
||||||
|
v-if="item.costCentre"
|
||||||
|
icon="i-heroicons-x-mark"
|
||||||
|
@click="item.costCentre = null"
|
||||||
|
/>
|
||||||
|
</InputGroup>
|
||||||
|
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -324,6 +324,7 @@ const updateIncomingInvoice = async () => {
|
|||||||
label="Kostenstelle"
|
label="Kostenstelle"
|
||||||
class=" mb-3"
|
class=" mb-3"
|
||||||
>
|
>
|
||||||
|
<InputGroup>
|
||||||
<USelectMenu
|
<USelectMenu
|
||||||
:options="dataStore.getCostCentresComposed"
|
:options="dataStore.getCostCentresComposed"
|
||||||
option-attribute="label"
|
option-attribute="label"
|
||||||
@@ -338,6 +339,14 @@ const updateIncomingInvoice = async () => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
</USelectMenu>
|
</USelectMenu>
|
||||||
|
<UButton
|
||||||
|
variant="outline"
|
||||||
|
color="rose"
|
||||||
|
v-if="item.costCentre"
|
||||||
|
icon="i-heroicons-x-mark"
|
||||||
|
@click="item.costCentre = null"
|
||||||
|
/>
|
||||||
|
</InputGroup>
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user