This commit is contained in:
2025-11-29 16:06:13 +01:00
parent c7dbcde5dd
commit cedcc503fa
34 changed files with 9097 additions and 191 deletions

View File

@@ -19,6 +19,7 @@ builder.Services.AddScoped<EventoCostiService>();
builder.Services.AddScoped<DemoDataService>();
builder.Services.AddScoped<ReportGeneratorService>();
builder.Services.AddScoped<ModuleService>();
builder.Services.AddScoped<AutoCodeService>();
builder.Services.AddSingleton<DataNotificationService>();
// Warehouse Module Services
@@ -100,6 +101,10 @@ using (var scope = app.Services.CreateScope())
// Seed warehouse default data
var warehouseService = scope.ServiceProvider.GetRequiredService<IWarehouseService>();
await warehouseService.SeedDefaultDataAsync();
// Seed AutoCode configurations
var autoCodeService = scope.ServiceProvider.GetRequiredService<AutoCodeService>();
await autoCodeService.SeedDefaultConfigurationsAsync();
}
if (app.Environment.IsDevelopment())