diff --git a/changelog/70_4.0.0_2023-07-29.md b/changelog/70_4.0.0_2023-07-29.md index c92e5085..c10c418b 100644 --- a/changelog/70_4.0.0_2023-07-29.md +++ b/changelog/70_4.0.0_2023-07-29.md @@ -33,7 +33,7 @@ - New product option "Auto reprint stock entry label" - When enabled, auto-changing the due date of a stock entry (by opening/freezing/thawing and having corresponding default due days set) will reprint its label (only server side label printer WebHooks are supported) - Defaults to disabled, so no changed behavior when not configured -- Added a new option "Reprint stock entry label" on the stock entry edit page (will print the correspondind stock entry label on save) +- Added a new option "Reprint stock entry label" on the stock entry edit page (will print the corresponding stock entry label on save) - This option will be automatically set on changing the entry's due date - The product option "Quick consume amount" (the amount used for the "quick consume/open buttons" on the stock overview page) has been split into another option "Quick open amount", to be able to set different amounts for consume and open (defaults to the "Quick consume amount" per product, so no changed behavior when not configured) - Changed that for the product's average and last price (and for the price history chart) stock transactions with an empty or `0` price are ignored diff --git a/changelog/81_UNRELEASED_xxxx-xx-xx.md b/changelog/81_UNRELEASED_xxxx-xx-xx.md index c23e8fff..67f22f48 100644 --- a/changelog/81_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/81_UNRELEASED_xxxx-xx-xx.md @@ -18,6 +18,7 @@ - Fixed that when using/scanning a barcode on the purchase page with a note attached (which prefills the note field) and when manually selecting another product afterwards, the note of the previously used barcode was incorrectly prefilled again - Fixed that the "next input focus handling" (jumping to the next input after entering a value) didn't work at some places (e.g. after entering a purchased date on the purchase page) - Fixed that changing the stock setting "Due soon days" wasn't saved/applied +- Fixed that "Reprint stock entry label" on the stock entry edit page didn't actually print the corresponding label ### Shopping list diff --git a/public/viewjs/stockentryform.js b/public/viewjs/stockentryform.js index b8286aed..dbf9ed9e 100644 --- a/public/viewjs/stockentryform.js +++ b/public/viewjs/stockentryform.js @@ -49,7 +49,7 @@ if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_LABEL_PRINTER && $("#print-label").is(":checked")) { - Grocy.Api.Get('stock/entry/' + result[0].stock_id + '/printlabel', function(labelData) + Grocy.Api.Get('stock/entry/' + Grocy.EditObjectRowId + '/printlabel', function(labelData) { if (Grocy.Webhooks.labelprinter !== undefined) {