Fix total calculation in example
This commit is contained in:
parent
61c0c85ab5
commit
308c18b1e0
|
@ -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