@jan_blaha I tried passing the helper function as you suggested but I am getting an error. I have passed the function in json object as
"helpers" : "function itemTotal(price, qty) {
return price * qty
}
function total() {
return this.data.reduce((p, c) => p + (c.price * c.qty), 0)
}"