示例#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;
         }
     }
 }
示例#2
0
 public void AddSaleLineItem(SaleLineItem saleLineItem)
 {
     saleLineItems.Add(saleLineItem);
 }
示例#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);
        }