Exemplo n.º 1
0
 public void Merge(AccountingTransaction movmentSet)
 {
     foreach (Booking elem in movmentSet.Bookings)
         AddBooking(elem);
 }
Exemplo n.º 2
0
 public void UnBook(AccountingTransaction movementSet)
 {
     foreach(Booking Booking in movementSet.Bookings)
     {
         _getAccountByNumber(Booking.CreditAccount.Number, Booking.CreditAccount.CurrencyId).Debit(Booking.Amount);
         _getAccountByNumber(Booking.DebitAccount.Number, Booking.DebitAccount.CurrencyId).Credit(Booking.Amount);
     }
 }