Esempio n. 1
0
 public void DeleteSaleLineItem(SaleLineItem saleLineItem)
 {
     for (int i = 0; i < saleLineItems.Count; i++)
     {
         if (saleLineItems[i].saleLineItemID == saleLineItem.saleLineItemID)
         {
             saleLineItems.RemoveAt(i);
             break;
         }
     }
 }
Esempio n. 2
0
 public void AddSaleLineItem(SaleLineItem saleLineItem)
 {
     saleLineItems.Add(saleLineItem);
 }
Esempio n. 3
0
        //Laver Obj af SaleLineItem
        public SaleLineItem CreateSaleLineItem(Item item, int amount, decimal price, Treatment treatment, Prescription prescription)
        {
            SaleLineItem saleLineItem = new SaleLineItem(item, amount, price, treatment, prescription);

            return(saleLineItem);
        }