added kashkool

This commit is contained in:
2026-06-11 22:08:47 +03:30
parent 779a67a23e
commit 2d177ad581
24 changed files with 1575 additions and 3 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2026_06_06_000003_add_order_limit_columns_to_products_table', 1),
('2026_06_09_000001_add_show_in_assets_to_products_table', 1),
('2026_06_10_000001_add_use_last_price_if_zero_to_products_table', 1),
('2026_06_10_000002_add_type_column_to_settings_table', 1);
('2026_06_10_000002_add_type_column_to_settings_table', 1),
('2026_06_11_000001_add_store_tables_and_columns', 1);
SELECT migration, batch FROM migrations ORDER BY migration;
+5 -1
View File
@@ -179,6 +179,10 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
SELECT 'external_order_api_enabled', 'true', 'فعال‌سازی API سفارش خارجی (get_wallet / order)', 1, 1, 'true + node_client_id + node_shared_secret'
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'external_order_api_enabled' LIMIT 1);
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
SELECT 'is_store', 'false', 'حالت فروشگاهی (قطره / کشکول)', 1, 1, 'true = روت‌های سبد خرید، دسته‌بندی، حواله، پرگار، تخفیف', 'switch'
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'is_store' LIMIT 1);
-- Jibit
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
SELECT 'jibit_verification', 'true', 'تأیید کارت بانکی با جیبیت', 1, 1, 'true/false — BankAccountController'
@@ -429,7 +433,7 @@ UPDATE `settings` SET `type` = 'switch' WHERE `key` IN (
'has_page_physical_gold', 'has_chat', 'charge_notif', 'group_sms', 'display_montzar',
'montzar_closed', 'montzar_open_buy', 'montzar_open_sell',
'product_update_price_on_list', 'product_auto_close_open_on_list', 'payping_fin_sync_enabled',
'fee_free', 'external_order_api_enabled'
'fee_free', 'external_order_api_enabled', 'is_store'
);
-- number
@@ -12,6 +12,7 @@ INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2026_06_06_000003_add_order_limit_columns_to_products_table', 1),
('2026_06_09_000001_add_show_in_assets_to_products_table', 1),
('2026_06_10_000001_add_use_last_price_if_zero_to_products_table', 1),
('2026_06_10_000002_add_type_column_to_settings_table', 1);
('2026_06_10_000002_add_type_column_to_settings_table', 1),
('2026_06_11_000001_add_store_tables_and_columns', 1);
SELECT migration, batch FROM migrations ORDER BY migration;