From 8b125e475e4f6970d1948e77fdf832c5e77f2cec Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 6 Jun 2023 08:17:52 +0300 Subject: [PATCH] Tune amount column find --- RhSolutions.AddIn/Services/GuessReader.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RhSolutions.AddIn/Services/GuessReader.cs b/RhSolutions.AddIn/Services/GuessReader.cs index a6f3264..86e7d27 100644 --- a/RhSolutions.AddIn/Services/GuessReader.cs +++ b/RhSolutions.AddIn/Services/GuessReader.cs @@ -142,15 +142,13 @@ public class GuessReader : IReader continue; } - if (++successCounter > 1) + if (++successCounter > 3) { return true; } } - - return (column.Rows.Count > 1 && successCounter > 0) - || successCounter > 1; } + return successCounter > 1; } private Dictionary GetDictionaryFromColumns(Range productColumn, Range amountColumn)