Пример #1
0
 public bool Delete(bool adjustInventory = true)
 {
     IsPendingReturn       = false;
     QuantityPendingReturn = 0;
     Instances.Remove(PrimaryKey);
     TicketItemOption.DeleteAll(this, adjustInventory);
     return(Delete(PrimaryKey, adjustInventory));
 }
Пример #2
0
 private static void RestorePreviousTicketItemOptions(TicketItem ticketItem)
 {
     TicketItemOption.DeleteAll(ticketItem, true);
     foreach (TicketItemOption option in ticketItem._cachedItemOptions)
     {
         TicketItemOption.Add(option.TicketItemId, option.ItemOptionId,
                              option.Type, option.ChangeCount);
     }
 }