* Introduced Marelli packing list
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user