From 8155dcce3755687b641c06dc9229b7183553fba8 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 4 Jul 2022 09:16:07 +0300 Subject: [PATCH] Add Sku Parser to Export tool --- src/PriceListTools/ExportTool.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PriceListTools/ExportTool.cs b/src/PriceListTools/ExportTool.cs index 1a24d48..8566513 100644 --- a/src/PriceListTools/ExportTool.cs +++ b/src/PriceListTools/ExportTool.cs @@ -56,9 +56,11 @@ namespace RehauSku.PriceListTools { object current = cells[row, column]; - if (current.ToString().IsRehauSku()) + RauSku rauSku; + + if (RauSku.TryParse(current.ToString(), out rauSku)) { - sku = current.ToString(); + sku = rauSku.ToString(); } else if (current.GetType() == typeof(string)