protected double getOrderDiscountsAmount(final AbstractOrderModel source) {
    double discounts = 0.0d;
    final List<DiscountValue> discountList =
        source.getGlobalDiscountValues(); // discounts on the cart itself
    if (discountList != null && !discountList.isEmpty()) {
      for (final DiscountValue discount : discountList) {
        final double value = discount.getAppliedValue();
        if (value > 0.0d) {
          discounts += value;
        }
      }
    }

    return discounts;
  }