diff --git a/app/services/customers_with_balance.rb b/app/services/customers_with_balance.rb index e34e37736f..13ab8d40a1 100644 --- a/app/services/customers_with_balance.rb +++ b/app/services/customers_with_balance.rb @@ -18,6 +18,8 @@ class CustomersWithBalance attr_reader :enterprise_id + # Arel doesn't support CASE statements until v7.1.0 so we'll have to wait with SQL literals + # a little longer. See https://github.com/rails/arel/pull/400 for details. def outstanding_balance <<-SQL.strip_heredoc SUM(