From 86aa8f19f7b19e3d862b33845de608a1f2f92b8e Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 14 Nov 2021 15:37:10 +0100 Subject: [PATCH] Fixed typos --- public/viewjs/purchase.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/viewjs/purchase.js b/public/viewjs/purchase.js index 605b7718..bd51110c 100644 --- a/public/viewjs/purchase.js +++ b/public/viewjs/purchase.js @@ -23,7 +23,7 @@ $('#save-purchase-button').on('click', function(e) { var jsonData = {}; jsonData.amount = jsonForm.amount; - jsonData.stock_label_type = jsonForm.stock_label_type + jsonData.stock_label_type = jsonForm.stock_label_type; if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) { @@ -128,7 +128,7 @@ $('#save-purchase-button').on('click', function(e) webhookData.grocycode = 'grcy:p:' + jsonForm.product_id + ":" + result[0].stock_id; if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) { - webhookData.due_date = __t('DD') + ': ' + result[0].best_before_date + webhookData.due_date = __t('DD') + ': ' + result[0].best_before_date; } Grocy.FrontendHelpers.RunWebhook(Grocy.Webhooks.labelprinter, webhookData); @@ -145,7 +145,7 @@ $('#save-purchase-button').on('click', function(e) webhookData.grocycode = 'grcy:p:' + jsonForm.product_id + ":" + stockEntry.stock_id; if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) { - webhookData.due_date = __t('DD') + ': ' + result[0].best_before_date + webhookData.due_date = __t('DD') + ': ' + result[0].best_before_date; } Grocy.FrontendHelpers.RunWebhook(Grocy.Webhooks.labelprinter, webhookData);