feat: conditionally enable InventoryInitializer service and update appsettings for seed workers
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled

This commit is contained in:
masoodafar-web
2026-05-01 00:47:32 +03:30
parent d8a3b49f4d
commit 624ab7ea9f
3 changed files with 6 additions and 2 deletions
@@ -1,40 +0,0 @@
-- =============================================
-- Insert Configuration for Strategy Selection
-- =============================================
-- Check if config exists, insert if not
IF NOT EXISTS (SELECT 1 FROM CMS.SystemConfigurations WHERE [Key] = 'Commission.CalculationStrategy')
BEGIN
INSERT INTO CMS.SystemConfigurations ([Key], [Value], [Description], IsActive, Created, CreatedBy, LastModified, LastModifiedBy)
VALUES (
'Commission.CalculationStrategy',
'ORM',
N'روش محاسبه کمیسیون: ORM (Entity Framework) یا SP (Stored Procedure)',
1,
GETDATE(),
'System',
GETDATE(),
'System'
);
PRINT 'Configuration Commission.CalculationStrategy created with default value: ORM'
END
ELSE
BEGIN
PRINT 'Configuration Commission.CalculationStrategy already exists'
END
-- Show current value
SELECT [Key], [Value], [Description]
FROM CMS.SystemConfigurations
WHERE [Key] LIKE 'Commission.%'
ORDER BY [Key];
/*
تغییر روش محاسبه:
-- برای استفاده از ORM (Entity Framework):
UPDATE CMS.SystemConfigurations SET Value = 'ORM' WHERE [Key] = 'Commission.CalculationStrategy'
-- برای استفاده از Stored Procedure:
UPDATE CMS.SystemConfigurations SET Value = 'SP' WHERE [Key] = 'Commission.CalculationStrategy'
*/