@dhyasama/totem-models 11.131.0 → 11.132.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/Document.js +1 -1
- package/lib/Financials.js +1 -2
- package/package.json +1 -1
package/lib/Document.js
CHANGED
|
@@ -52,7 +52,7 @@ module.exports = function(mongoose, config) {
|
|
|
52
52
|
|
|
53
53
|
type: { type: String, enum: ['deck', 'incomeStatement', 'balanceSheet', 'cashFlow', 'capTable', 'financials', 'other'], required: true },
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
organization: { type: Schema.ObjectId, ref: 'Organization' }
|
|
56
56
|
|
|
57
57
|
});
|
|
58
58
|
|
package/lib/Financials.js
CHANGED
|
@@ -80,7 +80,7 @@ module.exports = function(mongoose, config) {
|
|
|
80
80
|
|
|
81
81
|
approval:{ type: Boolean, default: false },
|
|
82
82
|
|
|
83
|
-
status: { type: String, enum: ['
|
|
83
|
+
status: { type: String, enum: ['Scheduled', 'Delivered', 'Opened', 'Overdue', 'Skipped', 'Pending', 'Completed', 'Archived'] },
|
|
84
84
|
|
|
85
85
|
year: { type: Number, default: 0 },
|
|
86
86
|
period: { type: String, enum: ['FY', 'H1', 'H2', 'Q1', 'Q2', 'Q3', 'Q4', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] },
|
|
@@ -1083,7 +1083,6 @@ module.exports = function(mongoose, config) {
|
|
|
1083
1083
|
else if(isDelivered && isOpened) snapshot.status = 'Opened';
|
|
1084
1084
|
else if(isDelivered) snapshot.status = 'Delivered';
|
|
1085
1085
|
else if(isScheduled) snapshot.status = 'Scheduled'; // when a snapshot is scheduled, but not yet sent (checks every 5 minutes)
|
|
1086
|
-
else snapshot.status = 'Created'; // when a snapshot is created, but not scheduled for send
|
|
1087
1086
|
|
|
1088
1087
|
});
|
|
1089
1088
|
|