1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Hide quotes from dataviz

This commit is contained in:
Hillel Coren 2017-04-18 14:17:30 +03:00
parent c4b41c9707
commit ff87f001c3

View File

@ -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'));