From c9746521dc4ee1555a0180cee0dce7109e7c6ace Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 21 Feb 2019 08:44:03 +0100 Subject: [PATCH] removed unused getSubTotal() method --- modules/ticket/back/methods/ticket/summary.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/ticket/back/methods/ticket/summary.js b/modules/ticket/back/methods/ticket/summary.js index 8af76b981..b47d325cd 100644 --- a/modules/ticket/back/methods/ticket/summary.js +++ b/modules/ticket/back/methods/ticket/summary.js @@ -149,14 +149,4 @@ module.exports = Self => { }; return await Self.app.models.TicketRequest.find(filter); } - - function getSubTotal(sales) { - let subTotal = 0.00; - - sales.forEach(sale => { - subTotal += sale.quantity * sale.price; - }); - - return subTotal; - } };