namespace PowderCoating.Application.DTOs.QuickBooks; /// /// A single entry in an import log — covers errors, warnings, and skipped records. /// public class ImportErrorDto { /// "Error", "Warning", or "Skipped" public string Severity { get; set; } = "Error"; public int LineNumber { get; set; } public string? RecordName { get; set; } public string? FieldName { get; set; } public string ErrorMessage { get; set; } = string.Empty; public string DisplayMessage => $"[{Severity}]" + (LineNumber > 0 ? $" Line {LineNumber}" : "") + (string.IsNullOrEmpty(RecordName) ? "" : $" ({RecordName})") + (string.IsNullOrEmpty(FieldName) ? "" : $" — {FieldName}") + $": {ErrorMessage}"; }