@dhyasama/totem-models 6.7.2 → 6.8.1
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/Organization.js +22 -11
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -230,7 +230,14 @@ module.exports = function(mongoose, config) {
|
|
|
230
230
|
showOnList: { type: Boolean, default: true }
|
|
231
231
|
},
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
raise: {
|
|
234
|
+
order: { type: Number, default: 99 },
|
|
235
|
+
colspan: { type: Number, default: 1 },
|
|
236
|
+
showOnFilter: { type: Boolean, default: true },
|
|
237
|
+
showOnList: { type: Boolean, default: true }
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
valuation: {
|
|
234
241
|
order: { type: Number, default: 99 },
|
|
235
242
|
colspan: { type: Number, default: 1 },
|
|
236
243
|
showOnFilter: { type: Boolean, default: true },
|
|
@@ -541,21 +548,25 @@ module.exports = function(mongoose, config) {
|
|
|
541
548
|
});
|
|
542
549
|
}
|
|
543
550
|
|
|
544
|
-
if (standardFields.
|
|
551
|
+
if (standardFields.raise.showOnList) {
|
|
545
552
|
result.push({
|
|
546
|
-
name: '
|
|
553
|
+
name: 'Raise',
|
|
547
554
|
type: 'Number',
|
|
548
555
|
isStandard: true,
|
|
549
|
-
order: standardFields.
|
|
550
|
-
colspan: standardFields.
|
|
551
|
-
showOnFilter: standardFields.
|
|
552
|
-
}
|
|
553
|
-
|
|
556
|
+
order: standardFields.raise.order * 10,
|
|
557
|
+
colspan: standardFields.raise.colspan || 1,
|
|
558
|
+
showOnFilter: standardFields.raise.showOnFilter === true ? true : false
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if(standardFields.valuation.showOnList) {
|
|
563
|
+
result.push({
|
|
564
|
+
name: 'Valuation',
|
|
554
565
|
type: 'Number',
|
|
555
566
|
isStandard: true,
|
|
556
|
-
order: standardFields.
|
|
557
|
-
colspan: standardFields.
|
|
558
|
-
showOnFilter: standardFields.
|
|
567
|
+
order: standardFields.valuation.order * 10 + 1,
|
|
568
|
+
colspan: standardFields.valuation.colspan || 1,
|
|
569
|
+
showOnFilter: standardFields.valuation.showOnFilter === true ? true : false
|
|
559
570
|
});
|
|
560
571
|
}
|
|
561
572
|
|