private bool HasMismatch(ExcelProductData excelProduct, I07 eipProduct, bool checkMonthOnly) { var isMismatchWithoutDay = excelProduct.AmountFirstHalf + excelProduct.AmountSecondHalf != eipProduct.Amount || excelProduct.Maker != eipProduct.Maker || excelProduct.Name != eipProduct.Name; var isMismatchWithDay = isMismatchWithoutDay || excelProduct.Date.Day != eipProduct.DateDateTime.Day; return(checkMonthOnly ? isMismatchWithoutDay : isMismatchWithDay); }
private bool ProductIsFinished(I07 eipProduct, IEnumerable <string> cellBackgroundColors) { return(eipProduct == null && cellBackgroundColors.Any(c => ExcludedColors.MarkedInExcelAsDone.Contains(c))); }
private bool ExcelProductIsFoundInEip(I07 eipProduct) => eipProduct != null;