diff --git a/plugin/webman/gateway/Events.php b/plugin/webman/gateway/Events.php index d573fb6..3f25ce7 100644 --- a/plugin/webman/gateway/Events.php +++ b/plugin/webman/gateway/Events.php @@ -255,7 +255,7 @@ class Events ->where('r.product_id', $message['product_id']) ->fieldRaw('r.cons_info_id AS consId, SUM(r.surplus_stock * ' . $message['number'] . ') AS quantity, cons.stock_number AS current_quantity') ->group('r.cons_info_id') - ->select()->toArray(); + ->select(); p($tb_prod_cons); if($tb_prod_cons['quantity'] > $tb_prod_cons['current_quantity']) { $snd_data = [