예제 #1
0
파일: YearEnd.cs 프로젝트: tomanye/facility
        public bool InventoryRequired(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)
                {
                    Items itm = new Items();
                    itm.ExcludeNeverReceivedItemsNoCategory(stores.ID);

                    if (!this.DoesBalanceExist(ethDate.Year, stores.ID, !ignoreAutomatic) && itm.RowCount > 0)
                    {
                        return(true);
                    }
                    stores.MoveNext();
                }
            }
            return(false);
        }
        public bool InventoryRequired(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)
                {
                    Items itm = new Items();
                    itm.ExcludeNeverReceivedItemsNoCategory(stores.ID);

                    if (!this.DoesBalanceExist(ethDate.Year, stores.ID, !ignoreAutomatic) && itm.RowCount > 0)
                    {
                        return true;
                    }
                    stores.MoveNext();
                }
            }
            return false;
        }