mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Don't print stock entry labels when not desired (server side WebHook execution) (references #1686)
This commit is contained in:
parent
33ca6070f4
commit
b83e4f53b1
1
changelog/66_UNRELEASED_xxxx-xx-xx.md
Normal file
1
changelog/66_UNRELEASED_xxxx-xx-xx.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
- Fixed that stock entry labels on purchase were printed, even when "No label" was selected (was only a problem when running label printer WebHooks server side)
|
@ -268,7 +268,7 @@ class StockService extends BaseService
|
|||||||
]);
|
]);
|
||||||
$stockRow->save();
|
$stockRow->save();
|
||||||
|
|
||||||
if (GROCY_FEATURE_FLAG_LABEL_PRINTER && GROCY_LABEL_PRINTER_RUN_SERVER)
|
if ($stockLabelType == 1 && GROCY_FEATURE_FLAG_LABEL_PRINTER && GROCY_LABEL_PRINTER_RUN_SERVER)
|
||||||
{
|
{
|
||||||
$webhookData = array_merge([
|
$webhookData = array_merge([
|
||||||
'product' => $productDetails->product->name,
|
'product' => $productDetails->product->name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user