diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-01-13 07:39:54 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-01-13 07:39:54 +0300 |
commit | 197073930656999989f4954b4308d376649262ae (patch) | |
tree | 2a2870ba0ad1ad0f1e9b5636c763890e3aa591f2 /src | |
parent | 237aee55269ba404a807a040ef4419d9b5facf42 (diff) |
Испраление исключения при отсутствии в целевом листе колонки со старым артикулом
Diffstat (limited to 'src')
-rw-r--r-- | src/Controllers/ToolBase.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Controllers/ToolBase.cs b/src/Controllers/ToolBase.cs index 72f480e..aa766b9 100644 --- a/src/Controllers/ToolBase.cs +++ b/src/Controllers/ToolBase.cs @@ -48,7 +48,6 @@ namespace RhSolutions.Controllers { Range worksheetCells = TargetFile.Sheet.Cells; Range skuColumn = TargetFile.SkuCell.EntireColumn; - Range oldSkuColumn = TargetFile.OldSkuCell.EntireColumn; int? row = GetPositionRow(skuColumn, positionAmount.Key.ProductSku, positionAmount.Key.ProductLine); @@ -66,7 +65,7 @@ namespace RhSolutions.Controllers if (TargetFile.OldSkuCell != null) { - row = GetPositionRow(oldSkuColumn, positionAmount.Key.ProductSku, positionAmount.Key.ProductLine); + row = GetPositionRow(TargetFile.OldSkuCell.EntireColumn, positionAmount.Key.ProductSku, positionAmount.Key.ProductLine); if (row != null) { |