@dhyasama/totem-models 8.66.0 → 8.68.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 +10 -5
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -306,7 +306,7 @@ module.exports = function(mongoose, config) {
|
|
|
306
306
|
'notifications.company.sendTo': { $gt: [] },
|
|
307
307
|
'notifications.company.initial.sendOn': { $lte: now },
|
|
308
308
|
'notifications.company.initial.sentOn': null,
|
|
309
|
-
'notifications.company.initial.sentToQueue':
|
|
309
|
+
'notifications.company.initial.sentToQueue': false,
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
});
|
|
@@ -335,6 +335,7 @@ module.exports = function(mongoose, config) {
|
|
|
335
335
|
});
|
|
336
336
|
|
|
337
337
|
results.push({
|
|
338
|
+
'financials': financial,
|
|
338
339
|
'uuid': snapshot.uuid,
|
|
339
340
|
'recipients': recipients
|
|
340
341
|
});
|
|
@@ -362,7 +363,7 @@ module.exports = function(mongoose, config) {
|
|
|
362
363
|
'notifications.company.sendTo': { $gt: [] },
|
|
363
364
|
'notifications.company.reminders.sendOn': { $lte: now },
|
|
364
365
|
'notifications.company.reminders.sentOn': null,
|
|
365
|
-
'notifications.company.reminders.sentToQueue':
|
|
366
|
+
'notifications.company.reminders.sentToQueue': false,
|
|
366
367
|
'$or': [
|
|
367
368
|
{
|
|
368
369
|
'submittedOn': null,
|
|
@@ -403,6 +404,7 @@ module.exports = function(mongoose, config) {
|
|
|
403
404
|
});
|
|
404
405
|
|
|
405
406
|
results.push({
|
|
407
|
+
'financials': financial,
|
|
406
408
|
'uuid': snapshot.uuid,
|
|
407
409
|
'recipients': recipients
|
|
408
410
|
});
|
|
@@ -430,7 +432,7 @@ module.exports = function(mongoose, config) {
|
|
|
430
432
|
'notifications.company.sendTo': { $gt: [] },
|
|
431
433
|
'notifications.company.rejections.sendOn': { $lte: now },
|
|
432
434
|
'notifications.company.rejections.sentOn': null,
|
|
433
|
-
'notifications.company.rejections.sentToQueue':
|
|
435
|
+
'notifications.company.rejections.sentToQueue': false,
|
|
434
436
|
'submittedOn': { $ne: null },
|
|
435
437
|
'rejection': { $ne: null }
|
|
436
438
|
}
|
|
@@ -464,6 +466,7 @@ module.exports = function(mongoose, config) {
|
|
|
464
466
|
});
|
|
465
467
|
|
|
466
468
|
results.push({
|
|
469
|
+
'financials': financial,
|
|
467
470
|
'uuid': snapshot.uuid,
|
|
468
471
|
'recipients': recipients
|
|
469
472
|
});
|
|
@@ -492,7 +495,7 @@ module.exports = function(mongoose, config) {
|
|
|
492
495
|
'notifications.stakeholders.sendTo.organization': { $ne: null },
|
|
493
496
|
'notifications.stakeholders.initial.sendOn': { $lte: now },
|
|
494
497
|
'notifications.stakeholders.initial.sentOn': null,
|
|
495
|
-
'notifications.stakeholders.initial.sentToQueue':
|
|
498
|
+
'notifications.stakeholders.initial.sentToQueue': false,
|
|
496
499
|
}
|
|
497
500
|
}
|
|
498
501
|
});
|
|
@@ -520,6 +523,7 @@ module.exports = function(mongoose, config) {
|
|
|
520
523
|
if(conditions) {
|
|
521
524
|
|
|
522
525
|
results.push({
|
|
526
|
+
'financials': financial,
|
|
523
527
|
'uuid': snapshot.uuid,
|
|
524
528
|
'recipients': [stakeholder.sendTo.email]
|
|
525
529
|
});
|
|
@@ -550,7 +554,7 @@ module.exports = function(mongoose, config) {
|
|
|
550
554
|
'notifications.stakeholders.sendTo.organization': { $ne: null },
|
|
551
555
|
'notifications.stakeholders.reminders.sendOn': { $lte: now },
|
|
552
556
|
'notifications.stakeholders.reminders.sentOn': null,
|
|
553
|
-
'notifications.stakeholders.reminders.sentToQueue':
|
|
557
|
+
'notifications.stakeholders.reminders.sentToQueue': false
|
|
554
558
|
}
|
|
555
559
|
}
|
|
556
560
|
});
|
|
@@ -579,6 +583,7 @@ module.exports = function(mongoose, config) {
|
|
|
579
583
|
if(conditions) {
|
|
580
584
|
|
|
581
585
|
results.push({
|
|
586
|
+
'financials': financial,
|
|
582
587
|
'uuid': snapshot.uuid,
|
|
583
588
|
'recipients': [stakeholder.sendTo.email]
|
|
584
589
|
});
|