Merge pull request #2968 from strongloop/fix_total_calculation
Fix total calculation in example
This commit is contained in:
commit
ef0478cc97
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue