Exemple #1
0
 public VariableRateLoan(DateTime openedDate, Pecuniam amount) : base(openedDate, amount)
 {
     if (amount != null && amount.Amount != 0)
     {
         Balance.AddPositiveValue(openedDate, amount.GetAbs(), new TransactionNote("Initial Transaction"));
     }
 }
Exemple #2
0
 protected LoanBase(DateTime openedDate, Pecuniam amount) : base(openedDate)
 {
     if (amount != null && amount.Amount != 0)
     {
         Balance.AddPositiveValue(openedDate, amount.GetAbs(), new TransactionNote("Initial Transaction"));
     }
     FormOfCredit    = Enums.FormOfCredit.Installment;
     DueFrequency    = DefaultDueFrequency;
     _minPaymentRate = DF_MIN_PMT_RATE;
 }
Exemple #3
0
        public virtual Guid AddPositiveValue(DateTime dt, Pecuniam amount, IVoca note = null, ITransactionId trace = null)
        {
            if (amount == null)
            {
                return(Guid.Empty);
            }
            if (amount == Pecuniam.Zero)
            {
                return(Guid.Empty);
            }
            while (DataSet.Any(x => DateTime.Compare(x.AtTime, dt) == 0))
            {
                dt = dt.AddTicks(1L);
            }

            return(Transaction.AddTransaction(DataSet, dt, amount.GetAbs(), note, trace));
        }