public AdjustmentTransaction(Transaction parent, IEnumerable<Transaction> transactions)
 {
     this.Parent = parent;
     foreach (var child in transactions.Where(x => x.ParentTransactionId == parent.TransactionId)) {
         this.AddChild(child);
     }
 }
Example #2
0
 public void AddChild(Transaction transaction)
 {
     _children.Add(transaction);
 }
 public static bool Qualifies(Transaction t)
 {
     var validTypes = new[] { 600, 646, 636, 650, 700 };
     return validTypes.Any(v => v == t.TransactionTypeId);
 }
 public static bool Qualifies(Transaction t)
 {
     var validTypes = new[] { 601, 602, 603 };
     return validTypes.Any(v => v == t.TransactionTypeId);
 }
 public static bool Qualifies(Transaction t)
 {
     var validTypes = new[] { 652, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809 };
     return validTypes.Any(v => v == t.TransactionTypeId);
 }