* Changed port of API

* Changed filtering and grid headers
* Added TranslatedStatus field
This commit is contained in:
2025-01-29 17:12:18 +01:00
parent 40cd96460e
commit 6df1857246
4 changed files with 29 additions and 26 deletions

View File

@@ -101,8 +101,22 @@ namespace SytelineSaAppEfDataModel.Dtos
public string SellerCode { get; set; }
public string DocType { get; set; }
public string BuyerCode { get; set; }
public string TranslatedStatus => TranslateStatus(Status);
public IEnumerable<EdiCustomerOrderLineDto> EdiCustomerOrderLines { get; set; } = new List<EdiCustomerOrderLineDto>();
public IEnumerable<EdiCustomerOrderTranslateDto> EdiCustomerOrderTranslates { get; set; } = new List<EdiCustomerOrderTranslateDto>();
private static string TranslateStatus(string status)
{
return status switch
{
"O" => "Zamówione",
"S" => "Zatrzymane",
"P" => "Planowane",
"C" => "Zakończone",
_ => status
};
}
}
}