taxtank-core 0.33.24 → 0.33.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,9 +21,6 @@ export class TransactionCollection extends TransactionBaseCollection {
21
21
  getSoleTransactions() {
22
22
  return this.filter((transaction) => transaction.isSoleTank());
23
23
  }
24
- get amount() {
25
- return this.sumBy('amount');
26
- }
27
24
  getFindAndMatch(allocations) {
28
25
  return this.filter((transaction) => transaction.canFindAndMatch(allocations));
29
26
  }
@@ -39,15 +36,18 @@ export class TransactionCollection extends TransactionBaseCollection {
39
36
  getLastTransactionDate() {
40
37
  return new Date(Math.max.apply(Math, this.items.map((transaction) => transaction.date)));
41
38
  }
39
+ get amount() {
40
+ return this.sumBy('amount');
41
+ }
42
42
  get claimAmount() {
43
43
  return this.items.reduce((sum, transaction) => sum + transaction.claimAmount, 0);
44
44
  }
45
- get grossClaimAmount() {
46
- return this.items.reduce((sum, transaction) => sum + transaction.grossClaimAmount, 0);
47
- }
48
45
  get grossAmount() {
49
46
  return this.items.reduce((sum, transaction) => sum + transaction.grossAmount, 0);
50
47
  }
48
+ get grossClaimAmount() {
49
+ return this.items.reduce((sum, transaction) => sum + transaction.grossClaimAmount, 0);
50
+ }
51
51
  getByChartAccountsCategories(categories) {
52
52
  return new TransactionCollection(this.items.filter((transaction) => categories.includes(transaction.chartAccounts.category)));
53
53
  }
@@ -228,4 +228,4 @@ export class TransactionCollection extends TransactionBaseCollection {
228
228
  return this.filter(transaction => transaction.claimPercent > 0);
229
229
  }
230
230
  }
231
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbX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ZXNzSWQgPyB0aGlzLmZpbHRlckJ5KCdidXNpbmVzcy5pZCcsIGJ1c2luZXNzSWQpIDogdGhpcztcbiAgICBjb25zdCBleHBlbnNlcyA9IHRyYW5zYWN0aW9ucy5nZXRFeHBlbnNlVHJhbnNhY3Rpb25zKCk7XG4gICAgY29uc3QgaW5jb21lcyA9IHRyYW5zYWN0aW9ucy5nZXRJbmNvbWVUcmFuc2FjdGlvbnMoKTtcblxuICAgIHJldHVybiBpbmNvbWVzLnN1bUJ5KCdjbGFpbUFtb3VudCcpICsgZXhwZW5zZXMuc3VtQnkoJ2NsYWltQW1vdW50Jyk7XG4gIH1cblxuICBnZXRUYXhhYmxlKCk6IHRoaXMge1xuICAgIHJldHVybiB0aGlzLmZpbHRlcih0cmFuc2FjdGlvbiA9PiB0cmFuc2FjdGlvbi5jbGFpbVBlcmNlbnQgPiAwKTtcbiAgfVxufVxuIl19
@@ -5,12 +5,12 @@ export class TransactionReportItem {
5
5
  this.category = firstTransaction.chartAccounts.category;
6
6
  this.name = firstTransaction.chartAccounts.name;
7
7
  new FinancialYear().getPastMonths().forEach(month => {
8
- this[month] = transactions.getByMonth(month).sumBy('grossAmount');
8
+ this[month] = transactions.getByMonth(month).sumBy('grossAmountWithoutGst');
9
9
  });
10
- this.amount = transactions.sumBy('grossAmount');
11
- this.claimAmount = transactions.sumBy('grossClaimAmount');
12
- this.priorAmount = priorTransactions.sumBy('grossAmount');
13
- this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmount');
10
+ this.amount = transactions.sumBy('grossAmountWithoutGst');
11
+ this.claimAmount = transactions.sumBy('grossClaimAmountWithoutGst');
12
+ this.priorAmount = priorTransactions.sumBy('grossAmountWithoutGst');
13
+ this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmountWithoutGst');
14
14
  }
15
15
  }
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVwb3J0LWl0ZW0uanMiLCJ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@@ -152,7 +152,10 @@ export class Transaction extends TransactionBase {
152
152
  * Total transaction amount including taxes and other additional amounts
153
153
  */
154
154
  get grossAmount() {
155
- let grossAmount = super.grossAmount + this.tax;
155
+ return this.grossAmountWithoutGst + this.gstAmount;
156
+ }
157
+ get grossAmountWithoutGst() {
158
+ let grossAmount = this.amount + this.tax;
156
159
  if (this.isExpense()) {
157
160
  return grossAmount;
158
161
  }
@@ -168,6 +171,9 @@ export class Transaction extends TransactionBase {
168
171
  }
169
172
  return grossAmount;
170
173
  }
174
+ get grossClaimAmountWithoutGst() {
175
+ return this.grossAmountWithoutGst * this.claimRatio;
176
+ }
171
177
  /**
172
178
  * @TODO vik confusing logic demanded by Nicole, we need a better ux to fix it
173
179
  * netAmount matches received payment (bankTransaction amount), includes gst and salary included adjustments
@@ -228,4 +234,4 @@ __decorate([
228
234
  __decorate([
229
235
  Transform(({ value }) => +value)
230
236
  ], Transaction.prototype, "tax", void 0);
231
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3RyYW5zYWN0aW9uL3RyYW5zYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxJQUFJLGVBQWUsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQzNFLE9BQU8sRUFDc0IscUJBQXFCLEVBQ2hELHFCQUFxQixFQUNyQiw4QkFBOEIsRUFBRSxrQ0FBa0MsR0FDbkUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QixPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwyQ0FB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gnYW1vdW50JykgKyB0aGlzLmFtb3VudFdpdGhHc3Q7XG4gIH1cblxuICAvKipcbiAgICogbW9zdCBvZiB0aGUgdHJhbnNhY3Rpb25zIGNvdWxkIGhhdmUgb25seSBwb3NpdGl2ZSBvciBuZWdhdGl2ZSBhbW91bnQgZGVwZW5kcyBvbiBjaGFydEFjY291bnRzLCBzbyB3ZSBpZ25vcmVcbiAgICogdXNlcidzIGNob2ljZSBhbmQgdHJhbnNmb3JtIGFtb3VudCwgYnV0IHRoZXJlIGFyZSBleGNlcHRpb25zIGxpa2UgYWR2YW5jZSAobmVnYXRpdmUgb3IgcG9zaXRpdmUgYW1vdW50KVxuICAgKi9cbiAgaWdub3JlU2lnbigpOiBib29sZWFuIHtcbiAgICByZXR1cm4gISh0aGlzLmNoYXJ0QWNjb3VudHM/LmlkIGluIENoYXJ0QWNjb3VudHNLZWVwU2lnbik7XG4gIH1cblxuICBzZXRQYXJlbnQodHJhbnNhY3Rpb246IFRyYW5zYWN0aW9uKTogdm9pZCB7XG4gICAgdGhpcy5kZXNjcmlwdGlvbiA9IHRoaXMuY2hhcnRBY2NvdW50cy5uYW1lO1xuICAgIHRoaXMuZGF0ZSA9IHRyYW5zYWN0aW9uLmRhdGU7XG4gICAgdGhpcy5jbGFpbVBlcmNlbnQgPSB0cmFuc2FjdGlvbi5jbGFpbVBlcmNlbnQ7XG4gICAgdGhpcy5wcm9wZXJ0eSA9IHRyYW5zYWN0aW9uLnByb3BlcnR5O1xuICAgIHRoaXMubG9hbiA9IHRyYW5zYWN0aW9uLmxvYW47XG4gICAgdGhpcy5pbmNvbWVTb3VyY2UgPSB0cmFuc2FjdGlvbi5pbmNvbWVTb3VyY2U7XG4gICAgdGhpcy5idXNpbmVzcyA9IHRyYW5zYWN0aW9uLmJ1c2luZXNzO1xuICB9XG59XG4iXX0=
@@ -63,7 +63,7 @@ export class User extends BaseUser {
63
63
  return !!intersection(this.roles, roles).length;
64
64
  }
65
65
  getTankTypes() {
66
- const tankTypes = [];
66
+ const tankTypes = [TankTypeEnum.PERSONAL];
67
67
  if (this.roles.includes(UserRolesEnum.WORK_TANK)) {
68
68
  tankTypes.push(TankTypeEnum.WORK);
69
69
  }
@@ -161,4 +161,4 @@ __decorate([
161
161
  __decorate([
162
162
  Type(() => AccountSetupItem)
163
163
  ], User.prototype, "blacklistSetupItems", void 0);
164
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvdXNlci91c2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsSUFBSSxJQUFJLFFBQVEsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzdELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNqRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNyQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQzFDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDekMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRTlELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxTQU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dpc3RlcmVkWWVhciAtIDEgZm9yIG9sZCB1c2Vyc1xuICAgKi9cbiAgZ2V0IGZpbmFuY2lhbFllYXJzKCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHJhbmdlKFxuICAgICAgTWF0aC5taW4oRmluYW5jaWFsWWVhci50b0ZpblllYXIodGhpcy5jcmVhdGVkQXQpIC0gMSwgMjAyMiksXG4gICAgICBGaW5hbmNpYWxZZWFyLnRvRmluWWVhcihuZXcgRGF0ZSgpKSArIDFcbiAgICApO1xuICB9XG5cbiAgZ2V0IGZpcm1CcmFuY2hOYW1lcygpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLmVtcGxveWVlRGV0YWlscy5maXJtQnJhbmNoTmFtZXM7XG4gIH1cbn1cblxuIl19
@@ -5543,7 +5543,7 @@ class User extends User$1 {
5543
5543
  return !!intersection(this.roles, roles).length;
5544
5544
  }
5545
5545
  getTankTypes() {
5546
- const tankTypes = [];
5546
+ const tankTypes = [TankTypeEnum.PERSONAL];
5547
5547
  if (this.roles.includes(UserRolesEnum.WORK_TANK)) {
5548
5548
  tankTypes.push(TankTypeEnum.WORK);
5549
5549
  }
@@ -6528,7 +6528,10 @@ class Transaction extends Transaction$1 {
6528
6528
  * Total transaction amount including taxes and other additional amounts
6529
6529
  */
6530
6530
  get grossAmount() {
6531
- let grossAmount = super.grossAmount + this.tax;
6531
+ return this.grossAmountWithoutGst + this.gstAmount;
6532
+ }
6533
+ get grossAmountWithoutGst() {
6534
+ let grossAmount = this.amount + this.tax;
6532
6535
  if (this.isExpense()) {
6533
6536
  return grossAmount;
6534
6537
  }
@@ -6544,6 +6547,9 @@ class Transaction extends Transaction$1 {
6544
6547
  }
6545
6548
  return grossAmount;
6546
6549
  }
6550
+ get grossClaimAmountWithoutGst() {
6551
+ return this.grossAmountWithoutGst * this.claimRatio;
6552
+ }
6547
6553
  /**
6548
6554
  * @TODO vik confusing logic demanded by Nicole, we need a better ux to fix it
6549
6555
  * netAmount matches received payment (bankTransaction amount), includes gst and salary included adjustments
@@ -6954,9 +6960,6 @@ class TransactionCollection extends TransactionBaseCollection {
6954
6960
  getSoleTransactions() {
6955
6961
  return this.filter((transaction) => transaction.isSoleTank());
6956
6962
  }
6957
- get amount() {
6958
- return this.sumBy('amount');
6959
- }
6960
6963
  getFindAndMatch(allocations) {
6961
6964
  return this.filter((transaction) => transaction.canFindAndMatch(allocations));
6962
6965
  }
@@ -6972,15 +6975,18 @@ class TransactionCollection extends TransactionBaseCollection {
6972
6975
  getLastTransactionDate() {
6973
6976
  return new Date(Math.max.apply(Math, this.items.map((transaction) => transaction.date)));
6974
6977
  }
6978
+ get amount() {
6979
+ return this.sumBy('amount');
6980
+ }
6975
6981
  get claimAmount() {
6976
6982
  return this.items.reduce((sum, transaction) => sum + transaction.claimAmount, 0);
6977
6983
  }
6978
- get grossClaimAmount() {
6979
- return this.items.reduce((sum, transaction) => sum + transaction.grossClaimAmount, 0);
6980
- }
6981
6984
  get grossAmount() {
6982
6985
  return this.items.reduce((sum, transaction) => sum + transaction.grossAmount, 0);
6983
6986
  }
6987
+ get grossClaimAmount() {
6988
+ return this.items.reduce((sum, transaction) => sum + transaction.grossClaimAmount, 0);
6989
+ }
6984
6990
  getByChartAccountsCategories(categories) {
6985
6991
  return new TransactionCollection(this.items.filter((transaction) => categories.includes(transaction.chartAccounts.category)));
6986
6992
  }
@@ -8264,12 +8270,12 @@ class TransactionReportItem {
8264
8270
  this.category = firstTransaction.chartAccounts.category;
8265
8271
  this.name = firstTransaction.chartAccounts.name;
8266
8272
  new FinancialYear().getPastMonths().forEach(month => {
8267
- this[month] = transactions.getByMonth(month).sumBy('grossAmount');
8273
+ this[month] = transactions.getByMonth(month).sumBy('grossAmountWithoutGst');
8268
8274
  });
8269
- this.amount = transactions.sumBy('grossAmount');
8270
- this.claimAmount = transactions.sumBy('grossClaimAmount');
8271
- this.priorAmount = priorTransactions.sumBy('grossAmount');
8272
- this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmount');
8275
+ this.amount = transactions.sumBy('grossAmountWithoutGst');
8276
+ this.claimAmount = transactions.sumBy('grossClaimAmountWithoutGst');
8277
+ this.priorAmount = priorTransactions.sumBy('grossAmountWithoutGst');
8278
+ this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmountWithoutGst');
8273
8279
  }
8274
8280
  }
8275
8281