示例#1
0
        public void AddItem(string invoiceNumber, string invoiceDescription, string counterPartyName, Address counterPartyAddress, string counterpartyIdentificateNumber, string counterpartyTaxIdentityNumber, DateTime?invoiceDate, DateTime?dueDate, DateTime?paymentDate, string itemCategory, ItemType itemType, double?amount, int?year)
        {
            if (invoiceDescription.Length < 3)
            {
                throw new ArgumentException("Popis dokladu je příliš krátký");
            }

            Item newItem = new Item(invoiceNumber, invoiceDescription, counterPartyName, counterPartyAddress, counterpartyIdentificateNumber, counterpartyTaxIdentityNumber, invoiceDate, dueDate, paymentDate, itemCategory, itemType, amount, year);

            AccountingBookItems.Add(newItem);
        }
示例#2
0
 public void RemoveItem(Item removedItem)
 {
     AccountingBookItems.Remove(removedItem);
 }