public ScheduleEntryTransaction AddScheduleEntryTransaction(ScheduleEntryTransaction.TransactionType type, decimal value) { var transaction = new ScheduleEntryTransaction(type, value); this.ScheduleEntryTransactions.Add(transaction); return(transaction); }
public decimal Outstanding(ScheduleEntryTransaction.TransactionType type) { return(ScheduleEntryTransactions.Where(n => n.Type == type).Sum(n => n.Outstanding)); }