fix all error 3

This commit is contained in:
2026-08-22 16:50:49 +03:30
parent 7bdb2c91a0
commit 89014821c5
25 changed files with 3371 additions and 2618 deletions
+4 -2
View File
@@ -3,7 +3,8 @@
START TRANSACTION;
UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
-- [super-admin can_edit=0]
-- UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
SELECT 'price_provider', 'zaarbox', 'منبع قیمت', 1, 1, 'zaarbox | main_product | montzar'
@@ -12,7 +13,8 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
SELECT 'zaarbox_api_url', 'https://price.zaarbox.ir/api/free', 'آدرس API تابلو', 1, 1, NULL
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_api_url' LIMIT 1);
UPDATE `settings` SET `value` = 'https://price.zaarbox.ir/api/free' WHERE `key` = 'zaarbox_api_url';
-- [super-admin can_edit=0]
-- UPDATE `settings` SET `value` = 'https://price.zaarbox.ir/api/free' WHERE `key` = 'zaarbox_api_url';
-- key ردیف در JSON (یا UUID فیلد id) — از Network تابلو کپی کنید
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)