fix some bugs

This commit is contained in:
2026-07-14 13:45:59 +03:30
parent 8f3fb35b2b
commit 34bf65bc37
3 changed files with 13 additions and 4 deletions
+6
View File
@@ -176,6 +176,12 @@ class PriceBroadcastService
'id' => (int) ($product['id'] ?? 0),
'price' => (int) ($product['price'] ?? 0),
'price_profit' => (int) ($product['price_profit'] ?? 0),
'amount' => (float) ($product['amount'] ?? 0),
'app_price' => (bool) ($product['app_price'] ?? false),
'trade_by_quantity' => (bool) ($product['trade_by_quantity'] ?? false),
'direct_price' => (int) ($product['direct_price'] ?? 0),
'reading_method' => (string) ($product['reading_method'] ?? ''),
'price_offset_percent' => (float) ($product['price_offset_percent'] ?? 0),
'show' => (bool) ($product['show'] ?? true),
'active' => (bool) ($product['active'] ?? true),
'reference_provider_active' => (bool) ($product['reference_provider_active'] ?? false),