Exemple #1
0
 public void AddReceiptItem(ProductInformation Item)
 {
     if (ReceiptItems.ContainsKey(Item.GetName()))
     {
         ReceiptItems[Item.GetName()].IncrementQuantity();
     }
     else
     {
         ReceiptItems.Add(Item.GetName(), new ReceiptItem(Item));
     }
 }
Exemple #2
0
 public ReceiptItem(ProductInformation ProductInfo)
 {
     ProductInformation = ProductInfo;
     Quantity           = 1;
 }
Exemple #3
0
 public void AddItem(ProductInformation product)
 {
     Items.Add(product.GetName(), product);
 }