From ff87f001c33f08d61dc479683f25b4215186ea11 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 18 Apr 2017 14:17:30 +0300 Subject: [PATCH] Hide quotes from dataviz --- resources/views/reports/d3.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/reports/d3.blade.php b/resources/views/reports/d3.blade.php index 16b90ce4ef..20fb3ee0f4 100644 --- a/resources/views/reports/d3.blade.php +++ b/resources/views/reports/d3.blade.php @@ -76,7 +76,7 @@ // remove quotes and recurring invoices invoices = _.filter(invoices, function(invoice) { - return !parseInt(invoice.is_quote) && !invoice.is_recurring; + return parseInt(invoice.invoice_type_id) == {{ INVOICE_TYPE_STANDARD }} && !invoice.is_recurring; }); var products = _.flatten(_.pluck(invoices, 'invoice_items'));