taxtank-core 0.33.22 → 0.33.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,15 +3,15 @@ export class TransactionReportItem {
3
3
  constructor(transactions, priorTransactions) {
4
4
  this.months = [];
5
5
  const firstTransaction = transactions.first;
6
- this.tankType = firstTransaction.tankType;
7
- this.category = firstTransaction.chartAccounts.name;
6
+ this.category = firstTransaction.chartAccounts.category;
7
+ this.name = firstTransaction.chartAccounts.name;
8
8
  new FinancialYear().getPastMonths().forEach(month => {
9
- this.months.push(transactions.getByMonth(month).sumBy('amount'));
9
+ this.months.push(transactions.getByMonth(month).sumBy('grossAmount'));
10
10
  });
11
- this.amount = transactions.sumBy('amount');
12
- this.claimAmount = transactions.sumBy('claimAmount');
13
- this.priorAmount = priorTransactions.sumBy('amount');
14
- this.priorClaimAmount = priorTransactions.sumBy('claimAmount');
11
+ this.amount = transactions.sumBy('grossAmount');
12
+ this.claimAmount = transactions.sumBy('grossClaimAmount');
13
+ this.priorAmount = priorTransactions.sumBy('grossAmount');
14
+ this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmount');
15
15
  }
16
16
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVwb3J0LWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3JlcG9ydC9pbmNvbWUtZXhwZW5zZS90cmFuc2FjdGlvbi1yZXBvcnQtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFHckQsTUFBTSxPQUFPLHFCQUFxQjtJQVNoQyxZQUFZLFlBQW1DLEVBQUUsaUJBQXdDO1FBTnpGLFdBQU0sR0FBYSxFQUFFLENBQUM7UUFPcEIsTU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cnkgPSBmaXJzdFRyYW5zYWN0aW9uLmNoYXJ0QWNjb3VudHMuY2F0ZWdvcnk7XG4gICAgdGhpcy5uYW1lID0gZmlyc3RUcmFuc2FjdGlvbi5jaGFydEFjY291bnRzLm5hbWU7XG4gICAgbmV3IEZpbmFuY2lhbFllYXIoKS5nZXRQYXN0TW9udGhzKCkuZm9yRWFjaChtb250aCA9PiB7XG4gICAgICB0aGlzLm1vbnRocy5wdXNoKHRyYW5zYWN0aW9ucy5nZXRCeU1vbnRoKG1vbnRoKS5zdW1CeSgnZ3Jvc3NBbW91bnQnKSk7XG4gICAgfSk7XG4gICAgdGhpcy5hbW91bnQgPSB0cmFuc2FjdGlvbnMuc3VtQnkoJ2dyb3NzQW1vdW50Jyk7XG4gICAgdGhpcy5jbGFpbUFtb3VudCA9IHRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NDbGFpbUFtb3VudCcpO1xuICAgIHRoaXMucHJpb3JBbW91bnQgPSBwcmlvclRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NBbW91bnQnKTtcbiAgICB0aGlzLnByaW9yQ2xhaW1BbW91bnQgPSBwcmlvclRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NDbGFpbUFtb3VudCcpO1xuICB9XG59XG4iXX0=
@@ -8262,15 +8262,15 @@ class TransactionReportItem {
8262
8262
  constructor(transactions, priorTransactions) {
8263
8263
  this.months = [];
8264
8264
  const firstTransaction = transactions.first;
8265
- this.tankType = firstTransaction.tankType;
8266
- this.category = firstTransaction.chartAccounts.name;
8265
+ this.category = firstTransaction.chartAccounts.category;
8266
+ this.name = firstTransaction.chartAccounts.name;
8267
8267
  new FinancialYear().getPastMonths().forEach(month => {
8268
- this.months.push(transactions.getByMonth(month).sumBy('amount'));
8268
+ this.months.push(transactions.getByMonth(month).sumBy('grossAmount'));
8269
8269
  });
8270
- this.amount = transactions.sumBy('amount');
8271
- this.claimAmount = transactions.sumBy('claimAmount');
8272
- this.priorAmount = priorTransactions.sumBy('amount');
8273
- this.priorClaimAmount = priorTransactions.sumBy('claimAmount');
8270
+ this.amount = transactions.sumBy('grossAmount');
8271
+ this.claimAmount = transactions.sumBy('grossClaimAmount');
8272
+ this.priorAmount = priorTransactions.sumBy('grossAmount');
8273
+ this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmount');
8274
8274
  }
8275
8275
  }
8276
8276