diff --git a/src/plugins/pricelist/components/BuildManual/BuildManualVolume.vue b/src/plugins/pricelist/components/BuildManual/BuildManualVolume.vue new file mode 100644 index 0000000..e6d5591 --- /dev/null +++ b/src/plugins/pricelist/components/BuildManual/BuildManualVolume.vue @@ -0,0 +1,43 @@ + + + + + + + + diff --git a/src/plugins/pricelist/components/BuildManual/BuildManualVolumePart.vue b/src/plugins/pricelist/components/BuildManual/BuildManualVolumePart.vue new file mode 100644 index 0000000..878954d --- /dev/null +++ b/src/plugins/pricelist/components/BuildManual/BuildManualVolumePart.vue @@ -0,0 +1,48 @@ + + + Zutaten + + + + {{ + name(ingredient.drink_ingredient?.ingredient_id) || ingredient.extra_ingredient?.name + }} + + + {{ + ingredient.drink_ingredient?.volume + ? `${ingredient.drink_ingredient?.volume * 100} cl` + : '' + }} + + + + + + + Preise + + {{ price.price.toFixed(2) }}€ + + + + diff --git a/src/plugins/pricelist/components/CalculationTable/BuildManual.vue b/src/plugins/pricelist/components/CalculationTable/BuildManual.vue index c51de63..09cb3ae 100644 --- a/src/plugins/pricelist/components/CalculationTable/BuildManual.vue +++ b/src/plugins/pricelist/components/CalculationTable/BuildManual.vue @@ -24,8 +24,8 @@ export default defineComponent({ }, }, emits: { - deleteStep: (index: number) => true, - addStep: (val: string) => true, + deleteStep: (index: number) => index, + addStep: (val: string) => val, }, setup(_, { emit }) { const newStep = ref(''); diff --git a/src/plugins/pricelist/components/Pricelist.vue b/src/plugins/pricelist/components/Pricelist.vue index 21f8fd0..95a4935 100644 --- a/src/plugins/pricelist/components/Pricelist.vue +++ b/src/plugins/pricelist/components/Pricelist.vue @@ -78,7 +78,7 @@