public override List<SavingEvent> DebitTransfer(OCurrency pAmount, ISavingsContract pCreditAccount, DateTime pDate, string pDescription, User pUser, bool pIsDesactivateFees) { List<SavingEvent> events = new List<SavingEvent>(); SavingDebitTransferEvent transferEvent = new SavingDebitTransferEvent { Amount = pAmount, Date = pDate, Description = pDescription, User = pUser, Cancelable = false, RelatedContractCode = pCreditAccount.Code, ProductType = typeof(SavingBookProduct) }; events.Add(transferEvent); _events.Add(transferEvent); if (Status != OSavingsStatus.Closed && !pIsDesactivateFees) transferEvent.Fee = Product.TransferFeesType == OSavingsFeesType.Flat ? FlatTransferFees : pAmount * RateTransferFees.Value; return events; }
public override List<SavingEvent> DebitTransfer(OCurrency pAmount, ISavingsContract pCreditAccount, DateTime pDate, string pDescription, User pUser, bool pIsDesactivateFees) { List<SavingEvent> events = new List<SavingEvent>(); SavingDebitTransferEvent transferEvent = new SavingDebitTransferEvent { Amount = pAmount, Date = pDate, Description = pDescription, User = pUser, Cancelable = false, RelatedContractCode = pCreditAccount.Code, ProductType = typeof(TermDepositProduct) }; events.Add(transferEvent); _events.Add(transferEvent); events.AddRange(_calculateWithdrawFees(pDate, pUser, transferEvent, pIsDesactivateFees)); return events; }
public virtual List<SavingEvent> DebitTransfer(OCurrency pAmount, ISavingsContract pCreditAccount, DateTime pDate, string pDescription, User pUser, bool pIsDesactivateFees) { List<SavingEvent> events = new List<SavingEvent>(); SavingDebitTransferEvent transferEvent = new SavingDebitTransferEvent { Amount = pAmount, Date = pDate, Description = pDescription, User = pUser, Cancelable = false, RelatedContractCode = pCreditAccount.Code, ProductType = Product.GetType() }; events.Add(transferEvent); _events.Add(transferEvent); return events; }