Hi,
Please consider this patch for inclusion in the next release. It adds some config options to the Views Calc Table display settings. We needed to do it for a client. Overview of changes:
1. Moves "Calculations" field to a fieldset, so the UI does not become too cluttered
2. Adds a new fieldset called "Round result"
3. Provides a text box (validated to ensure it is a number) for Sum, Average, Minimum and Maximum rounding options
4. Alters themed output of Sum and Average type calculations in the display to respect the new settings
Please see attached PNG for a screenshot (though just a note, the checkbox interface was trialled but was too fiddly to work back in in sensible time, so reverted to current select list UI).
Patch definitely applies to 6.x-1.3 and should apply to 6.x-dev too.
If you do commit this, please credit Pascal Morin - he wrote it:
http://drupal.org/user/320744
| Comment | File | Size | Author |
|---|---|---|---|
| patch_views_calc_round_result.patch | 4.06 KB | greg.harvey | |
| views_calc_rounding.png | 63.87 KB | greg.harvey |
Comments
Comment #1
pharoz commentedExcellent patch! Exactly what I needed!
Comment #2
adshill commentedThis is great - thumbs up for this one.
Comment #3
3dloco commented+1 this worked for me too!
Comment #4
basvredelingI agree, this is excellent. Too bad it's for an old dev. This needs to be slightly rewritten for latest dev.
Comment #5
greg.harveyThis was written nearly a year ago. I'm not sure where the maintainer is. =(
Comment #6
basvredelingI was wondering the same thing. Exactly how active is this module being developed? There are quite some pending patches. I'll send her an email.
Comment #7
karens commentedThe D6 version is no longer supported.