Example #1
0
        public double getRawWellnessDiscount()
        {
            double ingredientDiscount            = getIngredientSubtotal() * (IsOrganic ? Ingredient.WellnessDiscountAsFractionOfOne : 0.0);
            double ingredientTotalBeforeDiscount = getIngredientSubtotal();

            return((ingredientDiscount > ingredientTotalBeforeDiscount ? ingredientTotalBeforeDiscount : ingredientDiscount) +
                   (Recipe != null ? Recipe.getRawWellnessDiscount() : 0));
        }