Fixed stock entry form "Reprint stock entry label"

This commit is contained in:
Bernd Bestel 2026-02-03 20:29:15 +01:00
parent 471f21e992
commit cf7df4bdf8
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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)
{