Exemplo n.º 1
0
        private void TweakThenSave(SoaRowDTO dto)
        {
            dto.DocRefType = this.GetType().FullName;
            dto.DateOffset = TransactionDate.SoaRowOffset();
            dto.Amount     = Math.Abs(dto.Amount)
                             * (IsDeposit ? 1.0M : -1.0M);

            _repo.UpsertAndUpdateBalances(dto);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 private void EditClearedDate(SoaRowDTO dto)
 {
     if (!PopUpInput.TryGetDate("Cleared Date", out DateTime date, dto.GetDate()))
     {
         return;
     }
     dto.DateOffset = date.SoaRowOffset();
     _repo1.UpsertAndUpdateBalances(dto);
     ReloadFromDB();
 }