Exemplo n.º 1
0
 /// <summary>
 /// Remove Item Discount
 /// </summary>
 /// <param name="ticketItem"></param>
 /// <param name="item"></param>
 private void RemoveItemDiscount(Dinerware.MenuItem ticketItem, Dinerware.Discount item)
 {
     try
     {
         int ticketItemId   = 0;
         int itemInstanceId = 0;
         int.TryParse(ticketItem.TIID, out ticketItemId);
         int.TryParse(item.InstanceID, out itemInstanceId);
         _dinerwareProvider.RemoveDiscountFromItem(_currentUserId, _currentOpenTicketId, ticketItemId, itemInstanceId);
     }
     catch (Exception ex)
     {
         _logger.WriteLogError(ex, "RemoveItemDiscount");
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// RemoveTicketDiscount
 /// </summary>
 /// <param name="theInfo"></param>
 /// <param name="targetTicket"></param>
 /// <param name="theDiscount"></param>
 public void removeTicketDiscount(IDisplayActions.displayActionInfo theInfo, Ticket targetTicket, Dinerware.Discount theDiscount)
 {
     if (!ConfigurationHelper.Instance.IS_Test_Virtual_Client_Connection || !ConfigurationHelper.Instance.IS_Test_BLoyal_Connection)
     {
         return;
     }
     RefreshTicketAndUpdateDictionary(targetTicket);
 }