* Introduced Marelli packing list

This commit is contained in:
2025-09-09 07:00:05 +02:00
parent 89792d3d28
commit 50a25ff996
12 changed files with 477 additions and 30 deletions

View File

@@ -128,11 +128,21 @@ public class WarehouseService(IHttpClientFactory httpClientFactory)
{
var response = await _httpClient.GetAsync($"api/ExcelGenerator/generate-meyle?packListId={wzHeaderId}");
response.EnsureSuccessStatusCode();
if (response.StatusCode != System.Net.HttpStatusCode.OK)
if (response.StatusCode != HttpStatusCode.OK)
{
throw new Exception("Failed to generate XLS for Mayle");
}
}
public async Task GenerateXlsForMarelliAsync(Guid wzHeaderId)
{
var response = await _httpClient.GetAsync($"api/ExcelGenerator/generate-marelli?packListId={wzHeaderId}");
response.EnsureSuccessStatusCode();
if (response.StatusCode != HttpStatusCode.OK)
{
throw new Exception("Failed to generate XLS for Marelli");
}
}
public async Task AddEmailsToWzHeaderAsync(Guid wzHeaderId, string? emailAddresses)
{