Skip to content

Instantly share code, notes, and snippets.

@abdulbasityousuf
Last active January 2, 2016 22:19
def sumavg
if(report && report.size() > 0) {
sumavg = [:]
sumavg.customer_count = report*.customer_count.findAll { it != null }.sum() ?: 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment