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.
- package/bundles/taxtank-core.umd.js +8 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/transaction/transaction.collection.js +5 -2
- package/fesm2015/taxtank-core.js +4 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/transaction/transaction.collection.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
};
|