So.... I've got this.... wornEquipmentColumns = [ "gearweigh" ],
updateRepeatingItems = function () {
TAS.repeating('gearweigh')
.attrs('total_gearweight')
.fields('gearweigh', 'qty')
.reduce(function (m, r) {
if (r.I.qty > 0 && r.I.location == 0) {
m.gearweigh += r.F.gearweigh * r.I.qty;
} else {
m.gearweigh += r.F.gearweigh;
},
{
weight: 0
}, function (m, r, a) {
a.S['total_gearweight'] = m.gearweigh;
})
.execute();
}, Not sure if I'm just doing it wrong or I filled something out wrong, but I can't make heads or tails of this and it isn't doing anything....