This commit is contained in:
Hillel Coren 2017-01-29 23:04:32 +02:00
parent 2e6888a474
commit cb37224c7c

View File

@ -88,7 +88,7 @@
return g.qty * g.cost;
}),
paid: d3.sum(d, function(g) {
return g.invoice && g.invoice.invoice_status_id == 5 ? (g.qty * g.cost) : 0;
return g.invoice && g.invoice.invoice_status_id == {{ INVOICE_STATUS_PAID }} ? (g.qty * g.cost) : 0;
}),
age: d3.mean(d, function(g) {
return calculateInvoiceAge(g.invoice) || null;