diff --git a/RhSolutions.AddIn/Services/ExcelWriter.cs b/RhSolutions.AddIn/Services/ExcelWriter.cs index 7606ad7..8267627 100644 --- a/RhSolutions.AddIn/Services/ExcelWriter.cs +++ b/RhSolutions.AddIn/Services/ExcelWriter.cs @@ -133,9 +133,9 @@ public class ExcelWriter : IWriter, IDisposable if (row != null) { Range nameCell = worksheetCells[row, _nameCell.Column]; - if (!Regex.IsMatch(nameCell.Value2, @"(арт. \d{11})")) + if (!Regex.IsMatch(nameCell.Value2, @"арт. \d{11}")) { - nameCell.AddValue($"-> замена (арт. {positionAmount.Key.ProductSku})"); + nameCell.AddValue($"(замена арт. {positionAmount.Key.ProductSku})"); } foreach (int column in columns) @@ -155,9 +155,9 @@ public class ExcelWriter : IWriter, IDisposable if (row != null) { Range nameCell = worksheetCells[row, _nameCell.Column]; - if (!Regex.IsMatch(nameCell.Value2, @"(арт. \d{11})")) + if (!Regex.IsMatch(nameCell.Value2, @"арт. \d{11}")) { - nameCell.AddValue($" -> замена (арт. {positionAmount.Key.ProductSku})"); + nameCell.AddValue($"(замена арт. {positionAmount.Key.ProductSku})"); } foreach (int column in columns) @@ -198,7 +198,7 @@ public class ExcelWriter : IWriter, IDisposable current.ClearContents(); worksheetCells[row, groupColumn].Value2 = product.ProductLines.FirstOrDefault() ?? string.Empty; - worksheetCells[row, nameColumn].Value2 = $"{product.Name} -> не найден (арт. {product.ProductSku})"; + worksheetCells[row, nameColumn].Value2 = $"{product.Name} (не найден арт. {product.ProductSku})"; worksheetCells[row, skuColumn].Value2 = "???"; if (_oldSkuCell != null) {