Fix total calculation in example

This commit is contained in:
Candy 2016-11-21 11:49:18 -05:00
parent 61c0c85ab5
commit 308c18b1e0
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);
};