diff --git a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs index 2b341d5b..e54d8bd9 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs +++ b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Saas.cs @@ -7448,6 +7448,10 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency Description = $"{listFormName}.Description", SelectCommandType = SelectCommandTypeEnum.Table, SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.PaymentMethod)), + SeedFilePath = SeedPathResolver.GetDataFilePath(listFormName), + SeedSyncInsert = false, + SeedSyncUpdate = false, + SeedSyncDelete = false, KeyFieldName = "Id", KeyFieldDbSourceType = DbType.String, SortMode = GridOptions.SortModeSingle, diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json index 9a5c2bc6..9fd7dd37 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json @@ -362,18 +362,6 @@ ] } ], - "PaymentMethods": [ - { - "name": "Kredi Kartı", - "commission": 0, - "logo": "💳" - }, - { - "name": "Havale/EFT", - "commission": 0, - "logo": "🏦" - } - ], "InstallmentOptions": [ { "installment": 1, diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs index 2d9f6bdf..8d9ddf77 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantDataSeeder.cs @@ -37,7 +37,6 @@ public class TenantSeederDto public List Homes { get; set; } public List Abouts { get; set; } public List Services { get; set; } - public List PaymentMethods { get; set; } public List InstallmentOptions { get; set; } public List Contacts { get; set; } @@ -267,13 +266,6 @@ public class ForumCategorySeedDto public bool IsActive { get; set; } } -public class PaymentMethodSeedDto -{ - public string Name { get; set; } - public decimal Commission { get; set; } - public string Logo { get; set; } -} - public class InstallmentOptionSeedDto { public int Installment { get; set; } @@ -398,7 +390,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency private readonly IRepository _reportTemplatesRepository; private readonly IRepository _homeRepository; private readonly IRepository _aboutRepository; - private readonly IRepository _paymentMethodRepository; private readonly IRepository _installmentOptionRepository; private readonly IRepository _servicesRepository; private readonly IRepository _contactRepository; @@ -442,7 +433,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency IRepository homeRepository, IRepository aboutRepository, IRepository servicesRepository, - IRepository paymentMethodRepository, IRepository installmentOptionRepository, IRepository contactRepository, IRepository workHourRepository, @@ -473,7 +463,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency _skillTypeRepository = skillTypeRepository; _skillRepository = skillRepository; _skillLevelRepository = skillLevelRepository; - _paymentMethodRepository = paymentMethodRepository; _installmentOptionRepository = installmentOptionRepository; _reportCategoriesRepository = reportCategoriesRepository; _reportTemplatesRepository = reportTemplatesRepository; @@ -614,21 +603,6 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency } } - foreach (var item in items.PaymentMethods) - { - var exists = await _paymentMethodRepository.AnyAsync(x => x.Name == item.Name); - - if (!exists) - { - await _paymentMethodRepository.InsertAsync(new PaymentMethod - { - Name = item.Name, - Commission = item.Commission, - Logo = item.Logo, - }, autoSave: true); - } - } - foreach (var item in items.InstallmentOptions) { var exists = await _installmentOptionRepository.AnyAsync(x => x.Installment == item.Installment); diff --git a/configs/seeds/host/data/App.Orders.PaymentMethods.json b/configs/seeds/host/data/App.Orders.PaymentMethods.json new file mode 100644 index 00000000..430f1d78 --- /dev/null +++ b/configs/seeds/host/data/App.Orders.PaymentMethods.json @@ -0,0 +1,19 @@ +{ + "ListFormCode": "App.Orders.PaymentMethods", + "KeyFieldName": "Id", + "GeneratedAt": "2026-09-04T00:00:00Z", + "Rows": [ + { + "Id": "5d1ce718-cc0a-59a4-8b6d-99455988c979", + "Name": "Kredi Kartı", + "Commission": 0, + "Logo": "💳" + }, + { + "Id": "1b94d843-1fc2-5da1-ab01-f36612d9824e", + "Name": "Havale/EFT", + "Commission": 0, + "Logo": "🏦" + } + ] +}