taxtank-core 0.28.80 → 0.28.81

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.
@@ -7962,7 +7962,7 @@
7962
7962
  * Cash position is equal to Total Amount because income is positive and expense is negative,
7963
7963
  */
7964
7964
  get: function () {
7965
- return this.claimAmount;
7965
+ return this.grossAmount;
7966
7966
  },
7967
7967
  enumerable: false,
7968
7968
  configurable: true
@@ -7983,6 +7983,13 @@
7983
7983
  enumerable: false,
7984
7984
  configurable: true
7985
7985
  });
7986
+ Object.defineProperty(TransactionCollection.prototype, "grossAmount", {
7987
+ get: function () {
7988
+ return this.items.reduce(function (sum, transaction) { return sum + transaction.grossAmount; }, 0);
7989
+ },
7990
+ enumerable: false,
7991
+ configurable: true
7992
+ });
7986
7993
  TransactionCollection.prototype.getByChartAccountsCategories = function (categories) {
7987
7994
  return new TransactionCollection(this.items.filter(function (transaction) { return categories.includes(transaction.chartAccounts.category); }));
7988
7995
  };