internal Transaction CreatePaymentSlip(TransactionType transactionType, double amount, string remarks, User user, DateTime? dueDate) { // Start transaction var retVal = new Transaction(); retVal.TransactionType = transactionType; retVal.Amount = amount; retVal.CreationDate = DateTime.Now; retVal.Remarks = remarks; retVal.DueDate = dueDate; retVal.Status = TransactionStatus.Pending.ToString(); retVal.TransactionNo = Context.Instance.Group.NewTransactionNo(); //TODO save transaction return retVal; }
/// <summary> /// Deprecated Method for adding a new object to the TransactionTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTransactionTypes(TransactionType transactionType) { base.AddObject("TransactionTypes", transactionType); }
/// <summary> /// Create a new TransactionType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> public static TransactionType CreateTransactionType(global::System.Int32 id, global::System.String name) { TransactionType transactionType = new TransactionType(); transactionType.Id = id; transactionType.Name = name; return transactionType; }