Merge pull request #2968 from strongloop/fix_total_calculation

Fix total calculation in example
This commit is contained in:
Candy 2016-11-21 13:54:50 -05:00 committed by GitHub
commit ef0478cc97
1 changed files with 1 additions and 1 deletions

View File

@ -35,5 +35,5 @@ CartItem.remoteMethod('sum',
);
CartItem.prototype.total = function() {
return this.price * this.qty * 1 + this.tax;
return this.price * this.qty * (1 + this.tax);
};