Exemplo n.º 1
0
 /// <summary>
 /// Constructs a Transaction object
 /// </summary>
 /// <param name="value">The value of the Transaction</param>
 /// <param name="name">The name of the Transaction</param>
 /// <param name="transactionDate">The date the Transaction occurred</param>
 /// <param name="processedDate">The date the Transaction was processed into records</param>
 /// <param name="category">The category the Transaction falls into</param>
 /// <param name="type">The general type of Transaction (i.e. Expense, Revenue)</param>
 /// <param name="term">The Term the Transaction was made in</param>
 /// <param name="comment">Comment on the Transaction</param>
 public Transaction(
     decimal value,
     string name,
     DateTime transactionDate,
     DateTime processedDate,
     Marimba.FinanceCategory category,
     Marimba.FinanceType type,
     Term term,
     string comment = "")
 {
     this.value           = value;
     this.name            = name;
     this.transactionDate = transactionDate;
     this.processedDate   = processedDate;
     this.category        = category;
     this.type            = type;
     this.term            = term;
     this.comment         = comment;
 }
Exemplo n.º 2
0
 public void SetType(Marimba.FinanceType type)
 {
     this.type = type;
 }