sum({spare_part_detail.TotalAmount})
The ) is missing
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)