Potential fix for decimal issue. Replaced "type: 'numeric'" with "decimalPlace: 0" where necessary.