public void Reset(Journal journal) { JournalPosts = new JournalPostsIterator(journal); ISet <Commodity> commodities = new HashSet <Commodity>(); foreach (Post post in JournalPosts.Get()) { Commodity comm = post.Amount.Commodity; if (comm.Flags.HasFlag(CommodityFlagsEnum.COMMODITY_NOMARKET)) { continue; } commodities.Add(comm.Referent); } IDictionary <string, Xact> xactsByCommodity = new Dictionary <string, Xact>(); foreach (Commodity comm in commodities) { comm.MapPrices((d, a) => CreatePriceXact(d, a, xactsByCommodity, journal, journal.Master.FindAccount(comm.Symbol))); } Xacts = new XactsIterator(); Xacts.Reset(XactTemps); }
public void Reset(Journal journal) { Xacts = new XactsIterator(journal); Posts = new XactPostsIterator(); }