Пример #1
0
        public bool InventoryRequiredForHandlingUnit(bool ignoreAutomatic)
        {
            var ethDate = new EthiopianDate.EthiopianDate();

            if ((ethDate.Month == 10 && ethDate.Day == 30) || ethDate.Month == 11)
            {
                var stores = new Stores();
                stores.GetActiveStores();
                while (!stores.EOF)
                {
                    var itm = new Items();
                    itm.ExcludeNeverReceivedItemsNoCategoryForHandlingUnit(stores.ID);
                    if (!this.DoesBalanceExist(ethDate.Year, stores.ID, !ignoreAutomatic) && itm.RowCount > 0)
                    {
                        return(true);
                    }
                    stores.MoveNext();
                }
            }
            return(false);
        }
 public bool InventoryRequiredForHandlingUnit(bool ignoreAutomatic)
 {
     var ethDate = new EthiopianDate.EthiopianDate();
     if ((ethDate.Month == 10 && ethDate.Day == 30) || ethDate.Month == 11)
     {
         var stores = new Stores();
         stores.GetActiveStores();
         while (!stores.EOF)
         {
             var itm = new Items();
             itm.ExcludeNeverReceivedItemsNoCategoryForHandlingUnit(stores.ID);
             if (!this.DoesBalanceExist(ethDate.Year,stores.ID, !ignoreAutomatic) && itm.RowCount > 0)
             {
                 return true;
             }
             stores.MoveNext();
         }
     }
     return false;
 }