@dhyasama/totem-models 11.92.0 → 11.94.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 +2 -15
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -38,7 +38,7 @@ module.exports = function(mongoose, config) {
|
|
|
38
38
|
recipients: [{ type: String, trim: true }],
|
|
39
39
|
send: {
|
|
40
40
|
daysAfter: { type: Number },
|
|
41
|
-
period: { type: String, enum: [null, 'month', 'quarter', 'year']},
|
|
41
|
+
period: { type: String, enum: [null, 'month', 'quarter', 'half', 'year']},
|
|
42
42
|
time: {
|
|
43
43
|
hour: { type: Number },
|
|
44
44
|
minute: { type: Number, default: 0 },
|
|
@@ -84,7 +84,7 @@ module.exports = function(mongoose, config) {
|
|
|
84
84
|
status: { type: String, enum: ['Created', 'Scheduled', 'Delivered', 'Opened', 'Overdue', 'In Review', 'Completed', 'Archived'] },
|
|
85
85
|
|
|
86
86
|
year: { type: Number, default: 0 },
|
|
87
|
-
period: { type: String, enum: ['Annual', 'Q1', 'Q2', 'Q3', 'Q4', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] },
|
|
87
|
+
period: { type: String, enum: ['Annual', 'H1', 'H2', 'Q1', 'Q2', 'Q3', 'Q4', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] },
|
|
88
88
|
|
|
89
89
|
form: [{
|
|
90
90
|
name: { type: String, trim: true },
|
|
@@ -580,22 +580,9 @@ module.exports = function(mongoose, config) {
|
|
|
580
580
|
'recurring.adminReminders.sent': false
|
|
581
581
|
});
|
|
582
582
|
|
|
583
|
-
// send: {
|
|
584
|
-
// daysAfter: { type: Number },
|
|
585
|
-
// period: { type: String, enum: [null, 'month', 'quarter', 'year']},
|
|
586
|
-
// time: {
|
|
587
|
-
// hour: { type: Number },
|
|
588
|
-
// minute: { type: Number, default: 0 },
|
|
589
|
-
// second: { type: Number, default: 0 }
|
|
590
|
-
// }
|
|
591
|
-
// },
|
|
592
|
-
|
|
593
583
|
query.exec(function(err, result) {
|
|
594
584
|
|
|
595
585
|
if (err) { return cb(err, null); }
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
586
|
return cb(null, result);
|
|
600
587
|
|
|
601
588
|
});
|