Example #1
0
        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);
        }
Example #2
0
 private bool ProductIsFinished(I07 eipProduct, IEnumerable <string> cellBackgroundColors)
 {
     return(eipProduct == null && cellBackgroundColors.Any(c => ExcludedColors.MarkedInExcelAsDone.Contains(c)));
 }
Example #3
0
 private bool ExcelProductIsFoundInEip(I07 eipProduct) => eipProduct != null;