We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61c0c85 + 308c18b commit ef0478cCopy full SHA for ef0478c
example/client-server/models.js
@@ -35,5 +35,5 @@ CartItem.remoteMethod('sum',
35
);
36
37
CartItem.prototype.total = function() {
38
- return this.price * this.qty * 1 + this.tax;
+ return this.price * this.qty * (1 + this.tax);
39
};
0 commit comments