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.
|
7
|
-
this.
|
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('
|
9
|
+
this.months.push(transactions.getByMonth(month).sumBy('grossAmount'));
|
10
10
|
});
|
11
|
-
this.amount = transactions.sumBy('
|
12
|
-
this.claimAmount = transactions.sumBy('
|
13
|
-
this.priorAmount = priorTransactions.sumBy('
|
14
|
-
this.priorClaimAmount = priorTransactions.sumBy('
|
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,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVwb3J0LWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3JlcG9ydC9pbmNvbWUtZXhwZW5zZS90cmFuc2FjdGlvbi1yZXBvcnQtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFHckQsTUFBTSxPQUFPLHFCQUFxQjtJQVNoQyxZQUFZLFlB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DbGFpbUFtb3VudCcpO1xuICAgIHRoaXMucHJpb3JBbW91bnQgPSBwcmlvclRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NBbW91bnQnKTtcbiAgICB0aGlzLnByaW9yQ2xhaW1BbW91bnQgPSBwcmlvclRyYW5zYWN0aW9ucy5zdW1CeSgnZ3Jvc3NDbGFpbUFtb3VudCcpO1xuICB9XG59XG4iXX0=
|
@@ -8262,15 +8262,15 @@ class TransactionReportItem {
|
|
8262
8262
|
constructor(transactions, priorTransactions) {
|
8263
8263
|
this.months = [];
|
8264
8264
|
const firstTransaction = transactions.first;
|
8265
|
-
this.
|
8266
|
-
this.
|
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('
|
8268
|
+
this.months.push(transactions.getByMonth(month).sumBy('grossAmount'));
|
8269
8269
|
});
|
8270
|
-
this.amount = transactions.sumBy('
|
8271
|
-
this.claimAmount = transactions.sumBy('
|
8272
|
-
this.priorAmount = priorTransactions.sumBy('
|
8273
|
-
this.priorClaimAmount = priorTransactions.sumBy('
|
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
|
|