diff --git a/print/core/filters/date.js b/print/core/filters/date.js index 5762905e2..37b9dd16f 100644 --- a/print/core/filters/date.js +++ b/print/core/filters/date.js @@ -2,6 +2,5 @@ const Vue = require('vue'); const strftime = require('strftime'); Vue.filter('date', function(value, specifiers) { - console.log(value); return strftime(specifiers, value); }); diff --git a/print/templates/reports/campaign-metrics/campaign-metrics.js b/print/templates/reports/campaign-metrics/campaign-metrics.js index dc8822faa..d4d613a61 100755 --- a/print/templates/reports/campaign-metrics/campaign-metrics.js +++ b/print/templates/reports/campaign-metrics/campaign-metrics.js @@ -6,9 +6,18 @@ const reportFooter = new Component('report-footer'); module.exports = { name: 'campaign-metrics', async serverPrefetch() { + // // te delete once form inputs get date ranges + this.from = new Date(); + this.from.setMonth(0); + this.from.setDate(1); + this.to = new Date(); + this.to.setMonth(11); + this.to.setDate(31); + // this.clientId = 101; + // // end of delete + this.client = await this.fetchClient(this.clientId); - console.log(this.from, this.to); this.sales = await this.fetchSales(this.clientId, this.from, this.to); if (!this.client)