Price fields do not work properly when using SUM/AVG aggregation functions

Created on 24 May 2018, almost 7 years ago
Updated 1 May 2025, 1 day ago

When using "group results", price fields render correctly if the group column if Number and additionally the Currency Code field is selected.

However, choosing SUM or AVG causes the price field to render as a normal integer field.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

    I know this is very old but it looks like this is not working any longer.

    I can t SUM on my price fields. Ive traced it back to commerce_reports_views_pre_build where this check here fails

      if ($field_plugin instanceof NumericField) {
    

    The amount fields arent passing here so the custom formatter is never being used.

Production build 0.71.5 2024