Added a reports page with a set of links to download CSV reports.

This commit is contained in:
Wynne Crisman
2019-01-01 11:48:56 -08:00
parent 6c17639e0c
commit 5ccb8e6a44
16 changed files with 910 additions and 1588 deletions

View File

@@ -349,7 +349,7 @@ if(Meteor.isServer) {
let dateString = date.toString();
let timestamp = new Date(dateString.substring(0, 4) + "-" + dateString.substring(4, 6) + "-" + dateString.substring(6, 8) + "T00:00:00Z");
let weekOfYear = sale.timestamp.getWeek().toString();
let weekOfYear = timestamp.getWeek().toString();
if(Roles.userIsInRole(this.userId, [Meteor.UserRoles.ROLE_UPDATE])) {
Sales.update(id, {$set: {date, venueId, price, amount, timestamp, weekOfYear}}, function(err, id) {