@dhyasama/totem-models 11.138.0 → 11.140.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.
package/lib/Financials.js CHANGED
@@ -81,11 +81,11 @@ module.exports = function(mongoose, config) {
81
81
 
82
82
  approval:{ type: Boolean, default: false },
83
83
 
84
- status: { type: String, enum: ['Scheduled', 'Delivered', 'Opened', 'Overdue', 'Skipped', 'Pending', 'Completed', 'Archived'] },
84
+ status: { type: String, enum: ['Created', 'Scheduled', 'Delivered', 'Opened', 'Overdue', 'Skipped', 'Pending', 'Completed', 'Archived'] },
85
85
 
86
86
  year: { type: Number, default: 0 },
87
87
  period: { type: String, enum: ['FY', 'H1', 'H2', 'Q1', 'Q2', 'Q3', 'Q4', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] },
88
- cuttoff: { type: Date },
88
+ cutoff: { type: Date },
89
89
 
90
90
  form: [{
91
91
  name: { type: String, trim: true },
@@ -1226,6 +1226,7 @@ module.exports = function(mongoose, config) {
1226
1226
  else if(isDelivered && isOpened) snapshot.status = 'Opened';
1227
1227
  else if(isDelivered) snapshot.status = 'Delivered';
1228
1228
  else if(isScheduled) snapshot.status = 'Scheduled'; // when a snapshot is scheduled, but not yet sent (checks every 5 minutes)
1229
+ else snapshot.status = 'Created';
1229
1230
 
1230
1231
  });
1231
1232
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "11.138.0",
3
+ "version": "11.140.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",