I need to sum the values stored in a variable in the database.
I have a form and I want to know the total value generated in a variable.
Then I did the following:
_.each(cliente.data, function (data) {
for(i=0; i>=cliente.data.length; i++){
var valor= data.valor;
}
});
While i > = visit.oppEY.length (my vector) I must add the values accumulated in the value variable.
But I have tried in several ways and the only thing that happens is the incrementing of values.