def METHOD_NAME(order: "Order", lines: Iterable["OrderLine"]) -> Money:
    currency = order.currency
    subtotal = zero_money(currency)
    for line in lines:
        quantity = line.quantity
        price_with_discounts = line.base_unit_price * quantity
        subtotal += price_with_discounts
    return subtotal