@dhyasama/totem-models 8.67.0 → 8.69.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 +5 -0
- package/lib/Organization.js +6 -1
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
package/lib/Organization.js
CHANGED
|
@@ -207,7 +207,12 @@ module.exports = function(mongoose, config) {
|
|
|
207
207
|
by: { type: String, trim: true },
|
|
208
208
|
reverse: { type: Boolean, default: false }
|
|
209
209
|
},
|
|
210
|
-
fields: [{
|
|
210
|
+
fields: [{
|
|
211
|
+
key: { type: String, trim: true },
|
|
212
|
+
label: { type: String, trim: true },
|
|
213
|
+
total: { type: String, enum: [null, 'sum', 'average', 'count', 'multiple']},
|
|
214
|
+
width: { type: Number, default: 150 },
|
|
215
|
+
}]
|
|
211
216
|
}],
|
|
212
217
|
|
|
213
218
|
financials: {
|