/*
  * Checks the order adjustment to see if it is not stackable
  */
 public boolean containsNotStackableOrderOffer() {
   boolean isContainsNotStackableOrderOffer = false;
   for (OrderAdjustment orderAdjustment : delegate.getOrderAdjustments()) {
     if (!orderAdjustment.getOffer().isStackable()) {
       isContainsNotStackableOrderOffer = true;
       break;
     }
   }
   return isContainsNotStackableOrderOffer;
 }
 public void removeAllOrderAdjustments() {
   if (delegate.getOrderAdjustments() != null) {
     for (OrderAdjustment adjustment : delegate.getOrderAdjustments()) {
       adjustment.setOrder(null);
     }
     delegate.getOrderAdjustments().clear();
   }
   adjustmentPrice = null;
   notCombinableOfferApplied = false;
   hasOrderAdjustments = false;
   resetTotalitarianOfferApplied();
 }
 public void resetTotalitarianOfferApplied() {
   totalitarianOfferApplied = false;
   notCombinableOfferAppliedAtAnyLevel = false;
   for (OrderAdjustment adjustment : delegate.getOrderAdjustments()) {
     if (adjustment.getOffer().isTotalitarianOffer() != null
         && adjustment.getOffer().isTotalitarianOffer()) {
       totalitarianOfferApplied = true;
       break;
     }
     if (!adjustment.getOffer().isCombinableWithOtherOffers()) {
       notCombinableOfferAppliedAtAnyLevel = true;
       break;
     }
   }
   if (!totalitarianOfferApplied || !notCombinableOfferAppliedAtAnyLevel) {
     check:
     {
       for (OrderItem orderItem : delegate.getOrderItems()) {
         for (OrderItemAdjustment adjustment : orderItem.getOrderItemAdjustments()) {
           if (adjustment.getOffer().isTotalitarianOffer() != null
               && adjustment.getOffer().isTotalitarianOffer()) {
             totalitarianOfferApplied = true;
             break check;
           }
           if (!adjustment.getOffer().isCombinableWithOtherOffers()) {
             notCombinableOfferAppliedAtAnyLevel = true;
             break check;
           }
         }
       }
     }
   }
   if (!totalitarianOfferApplied || !notCombinableOfferAppliedAtAnyLevel) {
     check:
     {
       for (FulfillmentGroup fg : delegate.getFulfillmentGroups()) {
         for (FulfillmentGroupAdjustment adjustment : fg.getFulfillmentGroupAdjustments()) {
           if (adjustment.getOffer().isTotalitarianOffer() != null
               && adjustment.getOffer().isTotalitarianOffer()) {
             totalitarianOfferApplied = true;
             break check;
           }
           if (!adjustment.getOffer().isCombinableWithOtherOffers()) {
             notCombinableOfferAppliedAtAnyLevel = true;
             break check;
           }
         }
       }
     }
   }
 }