Испраление исключения при отсутствии в целевом листе колонки со старым артикулом

This commit is contained in:
Sergey Chebotar 2023-01-13 07:39:54 +03:00
parent 237aee5526
commit 1970739306

View File

@ -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)
{