@barchart/portfolio-api-common 1.0.94 → 1.0.95

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.
@@ -60,8 +60,7 @@ module.exports = (() => {
60
60
  this._dataFormat.summaryTotalCurrent = null;
61
61
  this._dataActual.summaryTotalCurrentNegative = false;
62
62
  this._dataFormat.summaryTotalPrevious = null;
63
-
64
- this._dataFormat.unrealizedTodayNegative = false;
63
+ this._dataFormat.summaryTotalPreviousNegative = false;
65
64
 
66
65
  this._items.forEach((item) => {
67
66
  item.registerPriceChangeHandler((data, sender) => {
@@ -211,6 +210,7 @@ module.exports = (() => {
211
210
  format.income = formatCurrency(actual.income, currency);
212
211
  format.summaryTotalCurrent = formatCurrency(updates.summaryTotalCurrent, currency);
213
212
  format.summaryTotalPrevious = formatCurrency(updates.summaryTotalPrevious, currency);
213
+ format.summaryTotalPreviousNegative = updates.summaryTotalPrevious.getIsNegative();
214
214
  }
215
215
 
216
216
  function calculatePriceData(group, item, forceRefresh) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",
@@ -1040,8 +1040,7 @@ module.exports = (() => {
1040
1040
  this._dataFormat.summaryTotalCurrent = null;
1041
1041
  this._dataActual.summaryTotalCurrentNegative = false;
1042
1042
  this._dataFormat.summaryTotalPrevious = null;
1043
-
1044
- this._dataFormat.unrealizedTodayNegative = false;
1043
+ this._dataFormat.summaryTotalPreviousNegative = false;
1045
1044
 
1046
1045
  this._items.forEach((item) => {
1047
1046
  item.registerPriceChangeHandler((data, sender) => {
@@ -1191,6 +1190,7 @@ module.exports = (() => {
1191
1190
  format.income = formatCurrency(actual.income, currency);
1192
1191
  format.summaryTotalCurrent = formatCurrency(updates.summaryTotalCurrent, currency);
1193
1192
  format.summaryTotalPrevious = formatCurrency(updates.summaryTotalPrevious, currency);
1193
+ format.summaryTotalPreviousNegative = updates.summaryTotalPrevious.getIsNegative();
1194
1194
  }
1195
1195
 
1196
1196
  function calculatePriceData(group, item, forceRefresh) {