taxtank-core 0.32.128 → 0.32.130
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/collections/bank-transaction.collection.mjs +2 -2
- package/esm2022/lib/collections/transaction/transaction.collection.mjs +4 -1
- package/esm2022/lib/db/Models/transaction/transaction-base.mjs +3 -4
- package/esm2022/lib/forms/abstract.form.mjs +3 -2
- package/esm2022/lib/forms/sole/bas-report.form.mjs +2 -2
- package/esm2022/lib/forms/transaction/sole/sole-income.form.mjs +1 -1
- package/fesm2022/taxtank-core.mjs +10 -6
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/collections/bank-transaction.collection.d.ts +3 -2
- package/lib/collections/transaction/transaction.collection.d.ts +1 -0
- package/package.json +1 -1
@@ -60,7 +60,7 @@ export class BankTransactionCollection extends Collection {
|
|
60
60
|
*/
|
61
61
|
getByBankAccounts(bankAccounts) {
|
62
62
|
const bankAccountIds = bankAccounts.map((bankAccount) => bankAccount.id);
|
63
|
-
return this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id));
|
63
|
+
return new BankTransactionCollection(this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id)));
|
64
64
|
}
|
65
65
|
/**
|
66
66
|
* get list of transactions by provided ids of bank accounts
|
@@ -128,4 +128,4 @@ export class BankTransactionCollection extends Collection {
|
|
128
128
|
return this.debitTransactions.getAllocatedAmount(allocations);
|
129
129
|
}
|
130
130
|
}
|
131
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi5jb2xsZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2JhbmstdHJhbnNhY3Rpb24uY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUs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uIl19
|
@@ -236,5 +236,8 @@ export class TransactionCollection extends ExportableCollection {
|
|
236
236
|
const incomes = transactions.getIncomeTransactions();
|
237
237
|
return incomes.sumBy('claimAmount') + expenses.sumBy('claimAmount');
|
238
238
|
}
|
239
|
+
getTaxable() {
|
240
|
+
return this.filter(transaction => transaction.claimPercent > 0);
|
241
|
+
}
|
239
242
|
}
|
240
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBSVgsTUFBTSxjQUFjLENBQUM7QUFFdEIsT0FBTyxFQUE2QixxQkFBcUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUM3RCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzdELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDJDQUEyQyxDQUFDO0FBQy9FLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQzFELE9BQU8sRUFBZ0IsYUFBYSxFQUFFLE1BQU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ATEGORIES, ChartAccounts } from '../../../mode
|
|
3
3
|
import { Exclude, Transform, Type } from 'class-transformer';
|
4
4
|
import { TankTypeEnum } from '../../Enums/tank-type.enum';
|
5
5
|
import { ObservableModel } from '../observable-model';
|
6
|
-
import round from 'lodash/round';
|
7
6
|
export class TransactionBase extends ObservableModel {
|
8
7
|
get gstCoefficient() {
|
9
8
|
return this.isGST ? ChartAccounts.GSTCoefficient : 1;
|
@@ -84,10 +83,10 @@ export class TransactionBase extends ObservableModel {
|
|
84
83
|
return CHART_ACCOUNTS_CATEGORIES.personal.includes(this.chartAccounts?.category);
|
85
84
|
}
|
86
85
|
get amountWithGst() {
|
87
|
-
return this.isGST ?
|
86
|
+
return this.isGST ? this.amount * ChartAccounts.GSTCoefficient : this.amount;
|
88
87
|
}
|
89
88
|
get gstAmount() {
|
90
|
-
return
|
89
|
+
return this.amountWithGst - this.amount;
|
91
90
|
}
|
92
91
|
get gstClaimAmount() {
|
93
92
|
return this.gstAmount * this.claimRatio;
|
@@ -120,4 +119,4 @@ __decorate([
|
|
120
119
|
__decorate([
|
121
120
|
Exclude()
|
122
121
|
], TransactionBase.prototype, "gstClaimAmount", null);
|
123
|
-
//# sourceMappingURL=data:application/json;base64,
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb24tYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUVwRixPQUFPLEVBQUUsT0FBTyxFQUFFLFNBQV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JlciB7XG4gICAgcmV0dXJuIHRoaXMuaXNHU1QgPyB0aGlzLmFtb3VudCAqIENoYXJ0QWNjb3VudHMuR1NUQ29lZmZpY2llbnQgOiB0aGlzLmFtb3VudDtcbiAgfVxuXG4gIEBFeGNsdWRlKClcbiAgZ2V0IGdzdEFtb3VudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmFtb3VudFdpdGhHc3QgLSB0aGlzLmFtb3VudDtcbiAgfVxuXG4gIEBFeGNsdWRlKClcbiAgZ2V0IGdzdENsYWltQW1vdW50KCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuZ3N0QW1vdW50ICogdGhpcy5jbGFpbVJhdGlvO1xuICB9XG5cbiAgLyoqXG4gICAqIGJhc2UgZ3Jvc3NBbW91bnQsIGV4dGVuZHMgaW4gY2hpbGQgY2xhc3Nlc1xuICAgKi9cbiAgZ2V0IGdyb3NzQW1vdW50KCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuYW1vdW50ICsgdGhpcy5nc3RBbW91bnQ7XG4gIH1cblxuICBnZXQgZ3Jvc3NDbGFpbUFtb3VudCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmdyb3NzQW1vdW50ICogdGhpcy5jbGFpbVJhdGlvO1xuICB9XG59XG4iXX0=
|
@@ -103,7 +103,8 @@ export class AbstractForm extends FormGroup {
|
|
103
103
|
if (control.value === value) {
|
104
104
|
return;
|
105
105
|
}
|
106
|
-
|
106
|
+
// @TODO remove when all number fields refactored to prime inputnumber
|
107
|
+
if (typeof value === 'number' && name !== 'amount') {
|
107
108
|
value = +value.toFixed(2);
|
108
109
|
}
|
109
110
|
control.patchValue(value);
|
@@ -112,4 +113,4 @@ export class AbstractForm extends FormGroup {
|
|
112
113
|
return this.get(name).value !== this.initialValue[name];
|
113
114
|
}
|
114
115
|
}
|
115
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3Qu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50Jykge1xuICAgICAgdmFsdWUgPSArdmFsdWUudG9GaXhlZCgyKTtcbiAgICB9XG5cbiAgICBjb250cm9sLnBhdGNoVmFsdWUodmFsdWUpO1xuICB9XG5cbiAgZmllbGRDaGFuZ2VkKG5hbWU6IHN0cmluZyk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmdldChuYW1lKS52YWx1ZSAhPT0gdGhpcy5pbml0aWFsVmFsdWVbbmFtZV07XG4gIH1cbn1cbiJdfQ==
|
@@ -49,7 +49,7 @@ export class BasReportForm extends AbstractForm {
|
|
49
49
|
this.get('paygTaxInstalment').valueChanges,
|
50
50
|
this.get('fuelTaxCredit').valueChanges,
|
51
51
|
]).subscribe(([incomeGST, expenseGST, taxWithheldTotal, paygTaxInstalment, fuelTaxCredit]) => {
|
52
|
-
this.patchField('gst', incomeGST
|
52
|
+
this.patchField('gst', incomeGST + expenseGST + taxWithheldTotal + paygTaxInstalment - fuelTaxCredit);
|
53
53
|
});
|
54
54
|
// emit init values to calculate dynamic fields
|
55
55
|
if (report.id) {
|
@@ -60,4 +60,4 @@ export class BasReportForm extends AbstractForm {
|
|
60
60
|
return super.submit(data, true);
|
61
61
|
}
|
62
62
|
}
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzLXJlcG9ydC5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3NvbGUvYmFzLXJlcG9ydC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQU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nZXhwZW5zZUdTVCcpLnZhbHVlQ2hhbmdlcyxcbiAgICAgIHRoaXMuZ2V0KCd0YXhXaXRoaGVsZFRvdGFsJykudmFsdWVDaGFuZ2VzLFxuICAgICAgdGhpcy5nZXQoJ3BheWdUYXhJbnN0YWxtZW50JykudmFsdWVDaGFuZ2VzLFxuICAgICAgdGhpcy5nZXQoJ2Z1ZWxUYXhDcmVkaXQnKS52YWx1ZUNoYW5nZXMsXG4gICAgXSkuc3Vic2NyaWJlKChbaW5jb21lR1NULCBleHBlbnNlR1NULCB0YXhXaXRoaGVsZFRvdGFsLCBwYXlnVGF4SW5zdGFsbWVudCwgZnVlbFRheENyZWRpdF0pID0+IHtcbiAgICAgIHRoaXMucGF0Y2hGaWVsZCgnZ3N0JywgaW5jb21lR1NUICsgZXhwZW5zZUdTVCArIHRheFdpdGhoZWxkVG90YWwgKyBwYXlnVGF4SW5zdGFsbWVudCAtIGZ1ZWxUYXhDcmVkaXQpO1xuICAgIH0pO1xuXG4gICAgLy8gZW1pdCBpbml0IHZhbHVlcyB0byBjYWxjdWxhdGUgZHluYW1pYyBmaWVsZHNcbiAgICBpZiAocmVwb3J0LmlkKSB7XG4gICAgICB0aGlzLmVtaXRWYWx1ZXMoKTtcbiAgICB9XG4gIH1cblxuICBzdWJtaXQoZGF0YTogb2JqZWN0ID0ge30pOiBCYXNSZXBvcnQge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoZGF0YSwgdHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -14,4 +14,4 @@ export class SoleIncomeForm extends SoleTransactionForm {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
}
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbmNvbWUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4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FNvbGVUcmFuc2FjdGlvbkZvcm0gfSBmcm9tICcuL3NvbGUtdHJhbnNhY3Rpb24uZm9ybSc7XG5cbmV4cG9ydCBjbGFzcyBTb2xlSW5jb21lRm9ybSBleHRlbmRzIFNvbGVUcmFuc2FjdGlvbkZvcm0ge1xuICBjb25zdHJ1Y3Rvcih0cmFuc2FjdGlvbjogVHJhbnNhY3Rpb24sIGFsbG9jYXRpb25zOiBUcmFuc2FjdGlvbkFsbG9jYXRpb25bXSwgcmVnaXN0ZXJlZEZvckdzdDogYm9vbGVhbikge1xuXG4gICAgc3VwZXIodHJhbnNhY3Rpb24sIHJlZ2lzdGVyZWRGb3JHc3QsIGFsbG9jYXRpb25zLCB7fSk7XG5cbiAgICAvLyBAVE9ETyBBbGV4OiBjb3B5cGFzdGVkIGZyb20gd29yayBpbmNvbWUgZm9ybVxuXG4gICAgLy8gZm9yYmlkIHRvIGVkaXQgc29tZSBmaWVsZHMgZm9yIGFsbG9jYXRlZCB0cmFuc2FjdGlvblxuICAgIGlmIChhbGxvY2F0aW9ucy5sZW5ndGgpIHtcbiAgICAgIHRoaXMuZ2V0KCdjaGFydEFjY291bnRzJykuZGlzYWJsZSgpO1xuICAgIH1cblxuICAgIC8vIGFtb3VudCBjaGFuZ2VzIGFyZSBub3QgYXZhaWxhYmxlIGZvciB0cmFuc2FjdGlvbnMgd2l0aCBhbGxvY2F0aW9ucyBvciBkdXJpbmcgYWxsb2NhdGUgcHJvY2Vzc1xuICAgIGlmIChhbGxvY2F0aW9ucy5sZW5ndGggfHwgdHJhbnNhY3Rpb24ub3BlcmF0aW9uID09PSBUcmFuc2FjdGlvbk9wZXJhdGlvbkVudW0uQUxMT0NBVEUpIHtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnQnKS5kaXNhYmxlKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -9,7 +9,6 @@ import { ReplaySubject, Subject, BehaviorSubject, Observable, throwError, combin
|
|
9
9
|
import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
|
10
10
|
import get from 'lodash/get';
|
11
11
|
import { __decorate } from 'tslib';
|
12
|
-
import round from 'lodash/round';
|
13
12
|
import flatten from 'lodash/flatten';
|
14
13
|
import hasIn from 'lodash/hasIn';
|
15
14
|
import intersection from 'lodash/intersection';
|
@@ -21,6 +20,7 @@ import uniq from 'lodash/uniq';
|
|
21
20
|
import moment from 'moment';
|
22
21
|
import { DateRange } from 'moment-range';
|
23
22
|
import ceil from 'lodash/ceil';
|
23
|
+
import round from 'lodash/round';
|
24
24
|
import range from 'lodash/range';
|
25
25
|
import { Validators, FormGroup, FormArray, UntypedFormControl, UntypedFormArray, UntypedFormGroup, FormControl } from '@angular/forms';
|
26
26
|
import compact from 'lodash/compact';
|
@@ -521,10 +521,10 @@ class TransactionBase extends ObservableModel {
|
|
521
521
|
return CHART_ACCOUNTS_CATEGORIES.personal.includes(this.chartAccounts?.category);
|
522
522
|
}
|
523
523
|
get amountWithGst() {
|
524
|
-
return this.isGST ?
|
524
|
+
return this.isGST ? this.amount * ChartAccounts.GSTCoefficient : this.amount;
|
525
525
|
}
|
526
526
|
get gstAmount() {
|
527
|
-
return
|
527
|
+
return this.amountWithGst - this.amount;
|
528
528
|
}
|
529
529
|
get gstClaimAmount() {
|
530
530
|
return this.gstAmount * this.claimRatio;
|
@@ -7235,6 +7235,9 @@ class TransactionCollection extends ExportableCollection {
|
|
7235
7235
|
const incomes = transactions.getIncomeTransactions();
|
7236
7236
|
return incomes.sumBy('claimAmount') + expenses.sumBy('claimAmount');
|
7237
7237
|
}
|
7238
|
+
getTaxable() {
|
7239
|
+
return this.filter(transaction => transaction.claimPercent > 0);
|
7240
|
+
}
|
7238
7241
|
}
|
7239
7242
|
|
7240
7243
|
class TransactionAllocationCollection extends Collection {
|
@@ -9106,7 +9109,7 @@ class BankTransactionCollection extends Collection {
|
|
9106
9109
|
*/
|
9107
9110
|
getByBankAccounts(bankAccounts) {
|
9108
9111
|
const bankAccountIds = bankAccounts.map((bankAccount) => bankAccount.id);
|
9109
|
-
return this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id));
|
9112
|
+
return new BankTransactionCollection(this.items.filter((bankTransaction) => bankAccountIds.includes(bankTransaction.bankAccount.id)));
|
9110
9113
|
}
|
9111
9114
|
/**
|
9112
9115
|
* get list of transactions by provided ids of bank accounts
|
@@ -20803,7 +20806,8 @@ class AbstractForm extends FormGroup {
|
|
20803
20806
|
if (control.value === value) {
|
20804
20807
|
return;
|
20805
20808
|
}
|
20806
|
-
|
20809
|
+
// @TODO remove when all number fields refactored to prime inputnumber
|
20810
|
+
if (typeof value === 'number' && name !== 'amount') {
|
20807
20811
|
value = +value.toFixed(2);
|
20808
20812
|
}
|
20809
20813
|
control.patchValue(value);
|
@@ -22003,7 +22007,7 @@ class BasReportForm extends AbstractForm {
|
|
22003
22007
|
this.get('paygTaxInstalment').valueChanges,
|
22004
22008
|
this.get('fuelTaxCredit').valueChanges,
|
22005
22009
|
]).subscribe(([incomeGST, expenseGST, taxWithheldTotal, paygTaxInstalment, fuelTaxCredit]) => {
|
22006
|
-
this.patchField('gst', incomeGST
|
22010
|
+
this.patchField('gst', incomeGST + expenseGST + taxWithheldTotal + paygTaxInstalment - fuelTaxCredit);
|
22007
22011
|
});
|
22008
22012
|
// emit init values to calculate dynamic fields
|
22009
22013
|
if (report.id) {
|