Exemple #1
0
 public static void AddMerchandise(LineItem li)
 {
     Purchase.merchandise.Add(li);
     DiscountManager.Inspect();
     Purchase.masterDiscountApply = false;
     Purchase.masterDiscountApply = (Purchase.Subtotal() >= Utilities.GetMasterDiscountThreshhold());
 }
Exemple #2
0
 public static void DeleteMerchandise(string matchThis)
 {
     foreach (LineItem li in Purchase.merchandise)
     {
         if (li.Format().CompareTo(matchThis) == 0)
         {
             Purchase.merchandise.Remove(li);
             break;
         }
     }
     DiscountManager.Inspect();
     Purchase.masterDiscountApply = false;
     Purchase.masterDiscountApply = (Purchase.Subtotal() >= Utilities.GetMasterDiscountThreshhold());
 }