public TransactionLogVM(SoaRowsRepo1 soaRowsRepo, AppArguments args, DateTime startDate, bool doReload = false) : base(soaRowsRepo, args, doReload) { _repo1 = soaRowsRepo; _startDate = startDate; Crud = new TransactionCrudVM(_repo1, args); ReloadFromDB(); Crud.SaveCompleted += (s, e) => ReloadFromDB(); Filter.TextFilterChanged += (s, e) => ApplyTextFilters(); Rows.ItemOpened += Rows_ItemOpened; Rows.ItemDeleted += Rows_ItemDeleted; }
public TransactionCrudVM(SoaRowsRepo1 soaRowsRepo, AppArguments appArguments) : base(appArguments) { _repo = soaRowsRepo; }
public static void ToBankTransaction(this PassbookDB pbk, RequestedChequeDTO chq, DateTime clearedDate, SoaRowsRepo1 txnsRepo) { //txnsRepo.Withdraw(clearedDate, req.Payee, req.Purpose, req.Amount.Value, chq.ChequeNumber.ToString()); var dto = ToClearedTransaction(chq, clearedDate); txnsRepo.UpsertAndUpdateBalances(dto); //pbk.InactiveCheques.Insert(chq); pbk.ActiveCheques.Delete(chq); }