mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Don't print stock entry labels when not desired (server side WebHook execution) (references #1686)
This commit is contained in:
@@ -268,7 +268,7 @@ class StockService extends BaseService
|
||||
]);
|
||||
$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([
|
||||
'product' => $productDetails->product->name,
|
||||
|
Reference in New Issue
Block a user