Corrected Setting Error for Product in createddocument
This commit is contained in:
@@ -1514,9 +1514,7 @@ const setRowData = (row) => {
|
|||||||
searchable-placeholder="Suche ..."
|
searchable-placeholder="Suche ..."
|
||||||
:search-attributes="['name']"
|
:search-attributes="['name']"
|
||||||
v-model="row.product"
|
v-model="row.product"
|
||||||
@input="row.unit = products.find(i => i.id === row.product).unit,
|
@change="setRowData(row)"
|
||||||
row.price = (products.find(i => i.id === row.product).sellingPrice || 0),
|
|
||||||
row.description = products.find(i => i.id === row.product).description"
|
|
||||||
>
|
>
|
||||||
<template #label>
|
<template #label>
|
||||||
<span class="truncate">{{row.product ? products.find(i => i.id === row.product).name : "Kein Produkt ausgewählt" }}</span>
|
<span class="truncate">{{row.product ? products.find(i => i.id === row.product).name : "Kein Produkt ausgewählt" }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user