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; }