From 308c18b1e09af0a670fbd5413fc499e45fdee060 Mon Sep 17 00:00:00 2001 From: Candy Date: Mon, 21 Nov 2016 11:49:18 -0500 Subject: [PATCH] Fix total calculation in example --- example/client-server/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/client-server/models.js b/example/client-server/models.js index 978c3dfa..99b89d30 100644 --- a/example/client-server/models.js +++ b/example/client-server/models.js @@ -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); };