* Added ExcelGenerator and EmailSender

This commit is contained in:
2025-05-17 20:31:42 +02:00
parent 6ab3960e50
commit f4195a540c
9 changed files with 174 additions and 3 deletions

View File

@@ -80,4 +80,14 @@ public class WarehouseService(IHttpClientFactory httpClientFactory)
var response = await _httpClient.PutAsJsonAsync("api/WzRowMeyle", wzRowsMeyle);
response.EnsureSuccessStatusCode();
}
public async Task GenerateXlsForMeyleAsync(Guid wzHeaderId)
{
var response = await _httpClient.GetAsync($"api/ExcelGenerator/generate-meyle?packListId={wzHeaderId}");
response.EnsureSuccessStatusCode();
if (response.StatusCode != System.Net.HttpStatusCode.OK)
{
throw new Exception("Failed to generate XLS for Mayle");
}
}
}