From 17460a85438550f70555f56cb3eddcd27a91769e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 20 Mar 2021 22:16:37 +0100 Subject: [PATCH] [pricelist] Fixed warnings --- .../CalculationTable/Ingredients.vue | 4 +-- .../pricelist/components/ExtraIngredients.vue | 8 +++--- src/plugins/pricelist/pages/Settings.vue | 26 +++++++++++-------- src/plugins/pricelist/store.ts | 9 ++++--- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/plugins/pricelist/components/CalculationTable/Ingredients.vue b/src/plugins/pricelist/components/CalculationTable/Ingredients.vue index bdb80f4..1317056 100644 --- a/src/plugins/pricelist/components/CalculationTable/Ingredients.vue +++ b/src/plugins/pricelist/components/CalculationTable/Ingredients.vue @@ -166,11 +166,11 @@ export default defineComponent({ setup(_, { emit }) { const store = usePricelistStore(); - const emptyIngredient: FG.Ingredient = { + /*const emptyIngredient: FG.Ingredient = { id: -1, drink_ingredient: undefined, extra_ingredient: undefined, - }; + };*/ const newIngredient = ref(); const newIngredientVolume = ref(0); function addIngredient(volume: DrinkPriceVolume) { diff --git a/src/plugins/pricelist/components/ExtraIngredients.vue b/src/plugins/pricelist/components/ExtraIngredients.vue index 086c9e8..aabe7fb 100644 --- a/src/plugins/pricelist/components/ExtraIngredients.vue +++ b/src/plugins/pricelist/components/ExtraIngredients.vue @@ -62,20 +62,20 @@ diff --git a/src/plugins/pricelist/store.ts b/src/plugins/pricelist/store.ts index 26889fe..c6517c7 100644 --- a/src/plugins/pricelist/store.ts +++ b/src/plugins/pricelist/store.ts @@ -18,7 +18,10 @@ interface Drink extends Omit, 'volumes'> } class DrinkPriceVolume implements DrinkPriceVolume { - constructor({ id, volume, min_prices, prices, ingredients }: FG.DrinkPriceVolume, drink: Drink) { + constructor( + { id, volume, /*min_prices,*/ prices, ingredients }: FG.DrinkPriceVolume, + drink: Drink + ) { this.id = id; this._volume = volume; this.prices = prices; @@ -68,8 +71,8 @@ class Drink { cost_price_package_netto, tags, type, - volumes, - }: FG.Drink) { + }: /*volumes,*/ + FG.Drink) { this.id = id; this.article_id = article_id; this.package_size = package_size;