public void Update(JournalEntryLine item) { this.AccountId = item.AccountId; this.Debit = item.Debit; this.Credit = item.Credit; this.Memo = item.Memo; this.JournalEntry.UpdateAmount(); }
public void AddAcount(Guid accountId) { var jourmalEntryItem = new JournalEntryLine() { Id = Guid.NewGuid(), AccountId = accountId }; this.Items.Add(jourmalEntryItem); this.UpdateAmount(); }