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.
1 parent 61c0c85 commit 308c18bCopy full SHA for 308c18b
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