@dhyasama/totem-models 7.0.0 → 7.0.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/Financials.js CHANGED
@@ -176,7 +176,8 @@ module.exports = function(mongoose, config) {
176
176
 
177
177
  Financials.virtual('snapshotNames').get(function () {
178
178
  return _.map(this.snapshots, function(snapshot) {
179
- return snapshot.year + ' ' + snapshot.period;
179
+ if (snapshot.year) { return snapshot.year.toString() + ' ' + snapshot.period; }
180
+ else { return snapshot.period; }
180
181
  });
181
182
  });
182
183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",