taxtank-core 0.33.23 → 0.33.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,11 +6,8 @@ export class TransactionReportItemCollection extends Collection {
6
6
  const priorTransactionsByChartAccounts = priorTransactions.groupBy('chartAccounts.id');
7
7
  return new TransactionReportItemCollection(transactionsByChartAccounts.keys.map(chartAccountsId => new TransactionReportItem(transactionsByChartAccounts.get(chartAccountsId), priorTransactionsByChartAccounts.get(chartAccountsId))));
8
8
  }
9
- get months() {
10
- return this.first?.months.map((value, key) => this.reduce((sum, item) => sum + item.months[key], 0));
11
- }
12
9
  sumBy(path, abs = false) {
13
10
  return super.sumBy(path, abs);
14
11
  }
15
12
  }
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVwb3J0LWl0ZW0uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy9yZXBvcnQvaW5jb21lLWV4cGVuc2UvdHJhbnNhY3Rpb24tcmVwb3J0LWl0ZW0uY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDOUMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFHL0QsTUFBTSxPQUFPLCtCQUFnQyxTQUFRLFVBQWlDO0lBQ3BGLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxZQUFtQyxFQUFFLGlCQUF3QztRQUNuRyxNQUFNLDJCQUEyQixHQUFHLFlBQVksQ0FBQyxPQUFPLENBQUMsa0JBQWtCLENBQUMsQ0FBQztRQUM3RSxNQUFNLGdDQUFnQyxHQUFHLGlCQUFpQixDQUFDLE9BQU8sQ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W9uUmVwb3J0SXRlbSh0cmFuc2FjdGlvbnNCeUNoYXJ0QWNjb3VudHMuZ2V0KGNoYXJ0QWNjb3VudHNJZCksIHByaW9yVHJhbnNhY3Rpb25zQnlDaGFydEFjY291bnRzLmdldChjaGFydEFjY291bnRzSWQpKVxuICAgICkpO1xuICB9XG5cbiAgc3VtQnkocGF0aDogc3RyaW5nLCBhYnMgPSBmYWxzZSk6IG51bWJlciB7XG4gICAgcmV0dXJuIHN1cGVyLnN1bUJ5KHBhdGgsIGFicyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,2 +1,2 @@
1
- export const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Jan'];
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhzLmNvbnN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9maW5hbmNpYWwteWVhci9tb250aHMuY29uc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFhLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTU9OVEhTOiBzdHJpbmdbXSA9IFsnSmFuJywgJ0ZlYicsICdNYXInLCAnQXByJywgJ01heScsICdKdW4nLCAnSnVsJywgJ0F1ZycsICdTZXAnLCAnT2N0JywgJ05vdicsICdEZWMnLCAnSmFuJ107XG4iXX0=
1
+ export const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGhzLmNvbnN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9maW5hbmNpYWwteWVhci9tb250aHMuY29uc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFhLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBNT05USFM6IHN0cmluZ1tdID0gWydKYW4nLCAnRmViJywgJ01hcicsICdBcHInLCAnTWF5JywgJ0p1bicsICdKdWwnLCAnQXVnJywgJ1NlcCcsICdPY3QnLCAnTm92JywgJ0RlYyddO1xuIl19
@@ -1,12 +1,11 @@
1
1
  import { FinancialYear } from '../../financial-year';
2
2
  export class TransactionReportItem {
3
3
  constructor(transactions, priorTransactions) {
4
- this.months = [];
5
4
  const firstTransaction = transactions.first;
6
5
  this.category = firstTransaction.chartAccounts.category;
7
6
  this.name = firstTransaction.chartAccounts.name;
8
7
  new FinancialYear().getPastMonths().forEach(month => {
9
- this.months.push(transactions.getByMonth(month).sumBy('grossAmount'));
8
+ this[month] = transactions.getByMonth(month).sumBy('grossAmount');
10
9
  });
11
10
  this.amount = transactions.sumBy('grossAmount');
12
11
  this.claimAmount = transactions.sumBy('grossClaimAmount');
@@ -14,4 +13,4 @@ export class TransactionReportItem {
14
13
  this.priorClaimAmount = priorTransactions.sumBy('grossClaimAmount');
15
14
  }
16
15
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVwb3J0LWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3JlcG9ydC9pbmNvbWUtZXhwZW5zZS90cmFuc2FjdGlvbi1yZXBvcnQtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFHckQsTUFBTSxPQUFPLHFCQUFxQjtJQVNoQyxZQUFZLFlBQW1DLEVBQUUsaUJBQXdDO1FBTnpGLFdBQU0sR0FBYSxFQUFFLENBQUM7UUFPcEIsTUFBTSxnQkFBZ0IsR0FBRyxZQUFZLENBQUMsS0FBSyxDQUFDO1FBQzVDLElBQUksQ0FBQyxRQUFRLEdBQUcsZ0JBQWdCLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FBQztRQUN4RCxJQUFJLENBQUMsSUFBSSxHQUFHLGdCQUFnQixDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUM7UUFDaEQsSUFBSSxhQUFhLEVBQUUsQ0FBQyxhQUFhLEVBQUUsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7WUFDbEQsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxLQUFLLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQztRQUN4RSxDQUFDLENBQUMsQ0FBQztRQUNILElBQUksQ0FBQyxNQUFNLEd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ICAgIHRoaXMucHJpb3JBbW91bnQgPSBwcmlvclRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NBbW91bnQnKTtcbiAgICB0aGlzLnByaW9yQ2xhaW1BbW91bnQgPSBwcmlvclRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NDbGFpbUFtb3VudCcpO1xuICB9XG59XG4iXX0=
@@ -1,9 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
+ import { AbstractModel } from '../../db/Models';
2
3
  import { ReportItemDetails } from './report-item-details';
3
4
  import { Transform, Type } from 'class-transformer';
4
- import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
5
- import { AbstractModel } from '../../db/Models/abstract-model';
6
- import { Collection } from '../../collections/collection';
5
+ import { Collection, ReportItemCollection } from '../../collections';
7
6
  /**
8
7
  * @Todo no base model - should be generated on backend side
9
8
  * Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
@@ -26,4 +25,4 @@ __decorate([
26
25
  Type(() => ReportItemDetails),
27
26
  Transform(({ value }) => new Collection(value))
28
27
  ], ReportItem.prototype, "details", void 0);
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3RheC1zdW1tYXJ5L3JlcG9ydC1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ3BELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHNEQUFzRCxDQUFDO0FBQzVGLE9BQU8sRUFBRSxhQUFh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uZWVkIHRvIGFwcGx5IHRoaXMgZXZlcnl3aGVyZSAtIHRyYW5zZm9ybSBhbiBhcnJheSBpbnRvIGEgY29sbGVjdGlvbixcbiAgICogYnV0IGF0IHRoZSBtb21lbnQgd2UgY2FuJ3QgZG8gdGhpcyBkdWUgdG8gaW5oZXJpdGFuY2UgZnJvbSB0aGUgYmFzZSBtb2RlbC5cbiAgICogUG90ZW50aWFsIHNvbHV0aW9uOiBJbmhlcml0IENvbGxlY3Rpb24gZnJvbSBBcnJheVxuICAgKi9cbiAgQFR5cGUoKCkgPT4gUmVwb3J0SXRlbURldGFpbHMpXG4gIEBUcmFuc2Zvcm0oKHsgdmFsdWUgfSkgPT4gbmV3IENvbGxlY3Rpb248UmVwb3J0SXRlbURldGFpbHM+KHZhbHVlKSlcbiAgZGV0YWlsczogQ29sbGVjdGlvbjxSZXBvcnRJdGVtRGV0YWlscz47XG5cbiAgLyoqXG4gICAqIEdldCBhbW91bnQgZm9yIG9uZSBpbmNvbWUgc291cmNlXG4gICAqIEBwYXJhbSBuYW1lIE5hbWUgb2YgaW5jb21lIHNvdXJjZSBmb3IgZmlsdGVyXG4gICAqL1xuICBnZXRBbW91bnRCeUluY29tZVNvdXJjZU5hbWUobmFtZTogc3RyaW5nKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5kZXRhaWxzLmZpbmQoKGRldGFpbDogUmVwb3J0SXRlbURldGFpbHMpOiBib29sZWFuID0+IGRldGFpbC5uYW1lID09PSBuYW1lKT8uYW1vdW50IHx8IDA7XG4gIH1cbn1cbiJdfQ==
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { TaxSummarySectionEnum } from '../../db/Enums/tax-summary-section.enum';
3
3
  import { ReportItem } from './report-item';
4
- import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
4
+ import { ReportItemCollection } from '../../collections';
5
5
  import { Transform, Type } from 'class-transformer';
6
6
  /**
7
7
  * Base class for each sections of Tax Summary report, contains common properties/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FbnVtLk9USEVSX1RBTks6XG4gICAgICAgIHJldHVybiAndGF4U3VtbWFyeU90aGVySW5jb21lJztcbiAgICAgIGNhc2UgVGF4U3VtbWFyeVNlY3Rpb25FbnVtLlNPTEVfVEFOSzpcbiAgICAgICAgcmV0dXJuICd0YXhTdW1tYXJ5U29sZVRhbmsnO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgcmV0dXJuICd0YXhTdW1tYXJ5VG90YWwnO1xuICAgIH1cbiAgfSlcbiAgaWQ/OiBzdHJpbmc7XG59XG4iXX0=
@@ -1827,7 +1827,7 @@ var MonthNumberEnum;
1827
1827
  MonthNumberEnum[MonthNumberEnum["JUNE"] = 5] = "JUNE";
1828
1828
  })(MonthNumberEnum || (MonthNumberEnum = {}));
1829
1829
 
1830
- const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Jan'];
1830
+ const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
1831
1831
 
1832
1832
  /**
1833
1833
  * @TODO refactor with Map
@@ -8260,12 +8260,11 @@ const REPORTS = {
8260
8260
 
8261
8261
  class TransactionReportItem {
8262
8262
  constructor(transactions, priorTransactions) {
8263
- this.months = [];
8264
8263
  const firstTransaction = transactions.first;
8265
8264
  this.category = firstTransaction.chartAccounts.category;
8266
8265
  this.name = firstTransaction.chartAccounts.name;
8267
8266
  new FinancialYear().getPastMonths().forEach(month => {
8268
- this.months.push(transactions.getByMonth(month).sumBy('grossAmount'));
8267
+ this[month] = transactions.getByMonth(month).sumBy('grossAmount');
8269
8268
  });
8270
8269
  this.amount = transactions.sumBy('grossAmount');
8271
8270
  this.claimAmount = transactions.sumBy('grossClaimAmount');
@@ -8345,9 +8344,6 @@ class TransactionReportItemCollection extends Collection {
8345
8344
  const priorTransactionsByChartAccounts = priorTransactions.groupBy('chartAccounts.id');
8346
8345
  return new TransactionReportItemCollection(transactionsByChartAccounts.keys.map(chartAccountsId => new TransactionReportItem(transactionsByChartAccounts.get(chartAccountsId), priorTransactionsByChartAccounts.get(chartAccountsId))));
8347
8346
  }
8348
- get months() {
8349
- return this.first?.months.map((value, key) => this.reduce((sum, item) => sum + item.months[key], 0));
8350
- }
8351
8347
  sumBy(path, abs = false) {
8352
8348
  return super.sumBy(path, abs);
8353
8349
  }