Seal live dashboard event gaps
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../db_helpers.php';
|
||||
require_once __DIR__ . '/../notify_node.php';
|
||||
|
||||
/**
|
||||
* StockManager
|
||||
*
|
||||
@@ -856,6 +859,11 @@ class StockManager {
|
||||
(int)$inbound_row['id'], $inbound_row['source'] ?? '', (int)($inbound_row['source_id'] ?? 0), $inbound_row['date'] ?? '');
|
||||
}
|
||||
}
|
||||
|
||||
$notify_company_id = $this->company_id;
|
||||
db_after_commit(function() use ($warehouse_id, $type, $notify_company_id) {
|
||||
notify_node("stock_updated", ["warehouse_id" => $warehouse_id, "type" => $type], $notify_company_id);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user