@dhyasama/totem-models 9.107.1 → 9.109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,7 +95,7 @@ module.exports = function(mongoose, config) {
95
95
  sendOn: { $lte: now }
96
96
  });
97
97
 
98
- query.populate('customer', 'name logoUrl');
98
+ query.populate('customer', 'name logoUrl customer');
99
99
 
100
100
  // Earliest first
101
101
  query.sort({ sendOn: 1 });
@@ -291,6 +291,11 @@ module.exports = function(mongoose, config) {
291
291
  active: { type: Boolean, default: false }
292
292
  },
293
293
 
294
+ view: {
295
+ timeframe: { type: String, enum: ['All Years', 'Last 12 Months'], default: 'All Years' },
296
+ group: { type: String, enum: ['Financial Statements', 'Template'], default: 'Financial Statements' }
297
+ },
298
+
294
299
  emails: [{
295
300
  _id: false,
296
301
  subject: { type: String, trim: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.107.1",
3
+ "version": "9.109.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",