Exemplo n.º 1
0
 public IncomeSourceDetailVM(IncomeSource source, AccountDetailVM baseAccount, Schedule accountSchedule) : base(baseAccount.AccountType)
 {
     AccountName          = baseAccount.AccountName;
     Notes                = baseAccount.Notes;
     IncomeSourceId       = source.LocalId;
     AccountId            = baseAccount.AccountId;
     DateTime_Created     = baseAccount.DateTime_Created;
     DateTime_Deactivated = baseAccount.DateTime_Deactivated;
     DefaultToAccountId   = source.DefaultToAccountId;
     ExpectedAmount       = source.ExpectedAmount;
     Schedule             = accountSchedule == null ? null : new Schedule_Base(accountSchedule);
     TotalFromSource      = source.TotalFromSource;
 }
 public BankAccountDetailVM(AccountDetailVM baseAccount, DepositAccount depositAccount, Transaction transaction) : base(baseAccount.AccountType)
 {
     AccountName             = baseAccount.AccountName;
     Notes                   = baseAccount.Notes;
     DepositAccountId        = depositAccount.LocalId;
     AccountId               = baseAccount.AccountId;
     DateTime_Created        = baseAccount.DateTime_Created;
     DateTime_Deactivated    = baseAccount.DateTime_Deactivated;
     IsDefault               = depositAccount.IsDefault;
     IsActiveCashAccount     = depositAccount.IsActiveCashAccount;
     InitialDepositId        = depositAccount.InitialDepositId;
     InitialBalance          = transaction?.Amount;
     InitialDepositAccountId = transaction?.FromAccount;
 }