Fixed typos

This commit is contained in:
Bernd Bestel 2021-11-14 15:37:10 +01:00
parent 43ba3b4920
commit 86aa8f19f7
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -23,7 +23,7 @@ $('#save-purchase-button').on('click', function(e)
{ {
var jsonData = {}; var jsonData = {};
jsonData.amount = jsonForm.amount; 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) 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; webhookData.grocycode = 'grcy:p:' + jsonForm.product_id + ":" + result[0].stock_id;
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) 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); 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; webhookData.grocycode = 'grcy:p:' + jsonForm.product_id + ":" + stockEntry.stock_id;
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) 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); Grocy.FrontendHelpers.RunWebhook(Grocy.Webhooks.labelprinter, webhookData);