Испраление исключения при отсутствии в целевом листе колонки со старым артикулом
This commit is contained in:
parent
237aee5526
commit
1970739306
@ -48,7 +48,6 @@ namespace RhSolutions.Controllers
|
|||||||
{
|
{
|
||||||
Range worksheetCells = TargetFile.Sheet.Cells;
|
Range worksheetCells = TargetFile.Sheet.Cells;
|
||||||
Range skuColumn = TargetFile.SkuCell.EntireColumn;
|
Range skuColumn = TargetFile.SkuCell.EntireColumn;
|
||||||
Range oldSkuColumn = TargetFile.OldSkuCell.EntireColumn;
|
|
||||||
|
|
||||||
int? row = GetPositionRow(skuColumn, positionAmount.Key.ProductSku, positionAmount.Key.ProductLine);
|
int? row = GetPositionRow(skuColumn, positionAmount.Key.ProductSku, positionAmount.Key.ProductLine);
|
||||||
|
|
||||||
@ -66,7 +65,7 @@ namespace RhSolutions.Controllers
|
|||||||
|
|
||||||
if (TargetFile.OldSkuCell != null)
|
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)
|
if (row != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user