Edit replace and missing descriptions
This commit is contained in:
parent
d6a78c42c7
commit
71a0745c70
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user