mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 03:46:16 +02:00
Fix API call for printing stock entry label
After some investigation, I discovered that the edit stock entry form wasn't reprinting labels. This resolved it for me.
This commit is contained in:
parent
471f21e992
commit
fefc86e726
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_LABEL_PRINTER && $("#print-label").is(":checked"))
|
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/' + result[0].id + '/printlabel', function(labelData)
|
||||||
{
|
{
|
||||||
if (Grocy.Webhooks.labelprinter !== undefined)
|
if (Grocy.Webhooks.labelprinter !== undefined)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user