taxtank-core 0.33.45 → 0.33.46
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +1 -1
- package/esm2022/src/lib/forms/transaction/allocation-rule-transaction.form.mjs +4 -2
- package/esm2022/src/lib/forms/transaction/allocation-rule.form.mjs +13 -13
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +3 -3
- package/fesm2022/taxtank-core.mjs +15 -14
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/forms/transaction/allocation-rule.form.d.ts +5 -4
- package/src/lib/services/http/transaction/transaction.service.d.ts +1 -1
@@ -21,4 +21,4 @@ export class EmployeeInviteForm extends AbstractForm {
|
|
21
21
|
}, invite);
|
22
22
|
}
|
23
23
|
}
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wbG95ZWUtaW52aXRlLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9lbXBsb3llZS1pbnZpdGUuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsWUFBWSxFQUFxQixNQUFNLGtCQUFrQixDQUFDO0FBQ25FLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUN2RSxPQUFPLEVBQXdCLG1CQUFtQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0UsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDeEQsT0FBTyxFQUFFLF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dfQ==
|
@@ -101,7 +101,9 @@ export class AllocationRuleTransactionForm extends AbstractForm {
|
|
101
101
|
listenTankTypeChanges() {
|
102
102
|
this.get('tankType').valueChanges.subscribe(() => {
|
103
103
|
this.get('chartAccounts').reset();
|
104
|
-
this.
|
104
|
+
this.get('property').reset();
|
105
|
+
this.get('business').reset();
|
106
|
+
this.childTransactionsArray.clear();
|
105
107
|
});
|
106
108
|
}
|
107
109
|
/**
|
@@ -141,4 +143,4 @@ export class AllocationRuleTransactionForm extends AbstractForm {
|
|
141
143
|
claimPercentControl.setValue(this.currentValue.calculateClaimPercent());
|
142
144
|
}
|
143
145
|
}
|
144
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLXRyYW5zYWN0aW9uLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnNhY3Rpb24vYWxsb2NhdGlvbi1ydWxlLXRyYW5zYWN0aW9uLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFFTCxrQ0FBa0MsRUFHbEMsWUFBWSxFQUNiLE1BQU0sY0FBYyxDQUFDO0FBQ3RCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxrQkFBa0IsRUFBRSxnQkFBZ0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsc0NBQXNDLEVBQUUsTUFBTSwrQ0FBK0MsQ0FBQztBQUV2RyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1B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9cbiAgcHJpdmF0ZSB1cGRhdGVDbGFpbVBlcmNlbnQoKTogdm9pZCB7XG4gICAgY29uc3QgY2xhaW1QZXJjZW50Q29udHJvbDogVW50eXBlZEZvcm1Db250cm9sID0gdGhpcy5nZXQoJ2NsYWltUGVyY2VudCcpIGFzIFVudHlwZWRGb3JtQ29udHJvbDtcblxuICAgIC8vIGNsYWltIHBlcmNlbnQgaXMgY2hhbmdlYWJsZSBvbmx5IGZvciB3b3JrIGFuZCBzb2xlIGV4cGVuc2VzIGV4Y2VwdCB2ZWhpY2xlIGFuZCBwZXJzb25hbFxuICAgIGNsYWltUGVyY2VudENvbnRyb2wuZGlzYWJsZSgpO1xuXG4gICAgaWYgKCF0aGlzLmN1cnJlbnRWYWx1ZS5jaGFydEFjY291bnRzKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuY3VycmVudFZhbHVlLmNoYXJ0QWNjb3VudHMuaXNDbGFpbVBlcmNlbnRFZGl0YWJsZSgpKSB7XG4gICAgICBjbGFpbVBlcmNlbnRDb250cm9sLmVuYWJsZSgpO1xuICAgIH1cblxuICAgIGNsYWltUGVyY2VudENvbnRyb2wuc2V0VmFsdWUodGhpcy5jdXJyZW50VmFsdWUuY2FsY3VsYXRlQ2xhaW1QZXJjZW50KCkpO1xuICB9XG59XG4iXX0=
|
@@ -1,31 +1,31 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
2
|
import { AllocationRuleTransaction, CHART_ACCOUNTS_CATEGORIES } from '../../models';
|
3
3
|
import { plainToClass } from 'class-transformer';
|
4
|
-
import {
|
4
|
+
import { FormArray, FormControl, Validators } from '@angular/forms';
|
5
5
|
import { AllocationRuleCondition } from '../../models/transaction/allocation-rule-condition';
|
6
6
|
import { AllocationRuleConditionForm } from './allocation-rule-condition.form';
|
7
7
|
import { AllocationRuleTransactionForm } from './allocation-rule-transaction.form';
|
8
8
|
import { AllocationRuleTypeEnum } from '../../db/Enums';
|
9
9
|
import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
|
10
10
|
import intersection from 'lodash/intersection';
|
11
|
+
import { RxwebValidators } from '@rxweb/reactive-form-validators';
|
11
12
|
/**
|
12
13
|
* @TODO move aux methods like isSplittable/isTaxFieldHidden/etc (used in view with ngIf) to properties to improve perf
|
13
14
|
*/
|
14
15
|
export class AllocationRuleForm extends AbstractForm {
|
15
|
-
constructor(
|
16
|
-
// rule is required because we have to keep bank account relation
|
17
|
-
rule,
|
18
|
-
// Flag to enable transaction GST field
|
19
|
-
isGST) {
|
16
|
+
constructor(rule, rules, isGST) {
|
20
17
|
super({
|
21
|
-
type: new
|
22
|
-
name: new
|
23
|
-
|
24
|
-
|
18
|
+
type: new FormControl(rule.type, Validators.required),
|
19
|
+
name: new FormControl(rule.name, [
|
20
|
+
Validators.required,
|
21
|
+
RxwebValidators.noneOf({ matchValues: rules.remove([rule]).mapBy('name') })
|
22
|
+
]),
|
23
|
+
conditionOperator: new FormControl(rule.conditionOperator, Validators.required),
|
24
|
+
conditions: new FormArray((rule.conditions || [plainToClass(AllocationRuleCondition, {})])
|
25
25
|
.map((condition) => new AllocationRuleConditionForm(condition))),
|
26
26
|
transaction: new AllocationRuleTransactionForm(rule.transaction || plainToClass(AllocationRuleTransaction, {}), isGST),
|
27
|
-
transferBankAccount: new
|
28
|
-
autoAllocate: new
|
27
|
+
transferBankAccount: new FormControl(rule.transferBankAccount, Validators.required),
|
28
|
+
autoAllocate: new FormControl(rule.autoAllocate || false, Validators.required),
|
29
29
|
}, rule);
|
30
30
|
this.isGST = isGST;
|
31
31
|
this.listenEvents();
|
@@ -185,4 +185,4 @@ export class AllocationRuleForm extends AbstractForm {
|
|
185
185
|
return this.isIncome() && this.isSoleTank();
|
186
186
|
}
|
187
187
|
}
|
188
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIi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W5rKCk7XG4gIH1cblxuICBpc1dvcmtJbmNvbWUoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuaXNJbmNvbWUoKSAmJiB0aGlzLmlzV29ya1RhbmsoKTtcbiAgfVxuXG4gIGlzU29sZUluY29tZSgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5pc0luY29tZSgpICYmIHRoaXMuaXNTb2xlVGFuaygpO1xuICB9XG59XG4iXX0=
|
@@ -36,8 +36,8 @@ export class TransactionService extends RestService {
|
|
36
36
|
this.listenPropertyForecastUpdate();
|
37
37
|
this.listenNotifications();
|
38
38
|
}
|
39
|
-
|
40
|
-
return super.
|
39
|
+
get(path = this.apiUrl) {
|
40
|
+
return super.get(path).pipe(map(transactions => {
|
41
41
|
transactions.forEach((transaction) => {
|
42
42
|
transaction.transactions = transactions
|
43
43
|
// get list of child transactions
|
@@ -259,4 +259,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
259
259
|
type: Inject,
|
260
260
|
args: ['environment']
|
261
261
|
}] }] });
|
262
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3RyYW5zYWN0aW9uL3RyYW5zYWN0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR2pFLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyQyxPQUFPLEVBQUUsT0FBTyxFQUFRLE1B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biAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIHJlcGxhY2VJbkNhY2hlKHRyYW5zYWN0aW9uVG9SZXBsYWNlOiBUcmFuc2FjdGlvbik6IHZvaWQge1xuICAgIHJlcGxhY2UodGhpcy5jYWNoZSwgdHJhbnNhY3Rpb25Ub1JlcGxhY2UpO1xuICAgIHRoaXMudXBkYXRlQ2FjaGUoKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdGVuTm90aWZpY2F0aW9ucygpOiB2b2lkIHtcbiAgICB0aGlzLmV2ZW50RGlzcGF0Y2hlclNlcnZpY2Uub24oQXBwRXZlbnRUeXBlRW51bS5OT1RJRklDQVRJT05fQURERUQpLnN1YnNjcmliZSgobm90aWZpY2F0aW9uOiBOb3RpZmljYXRpb24pID0+IHtcbiAgICAgIGNvbnN0IGV2ZW50cyA9IFtcbiAgICAgICAgVXNlckV2ZW50VHlwZVR5cGVFbnVtLklOVk9JQ0VfQVVUT19BTExPQ0FURUQsXG4gICAgICAgIFVzZXJFdmVudFR5cGVUeXBlRW51bS5JTlZPSUNFX0FVVE9fUEFSVF9BTExPQ0FURUQsXG4gICAgICAgIFVzZXJFdmVudFR5cGVUeXBlRW51bS5SVUxFU19BVVRPX0FMTE9DQVRFRFxuICAgICAgXTtcblxuICAgICAgaWYgKCFub3RpZmljYXRpb24uaXNSZWFkICYmIGV2ZW50cy5pbmNsdWRlcyhub3RpZmljYXRpb24uZXZlbnRUeXBlKSkge1xuICAgICAgICAvLyBAVE9ETyBUVC0zODI2IG1vdmUgdG8gdW5pZmllZCBtZXJjdXJlIGV2ZW50XG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgIHRoaXMucmVmcmVzaENhY2hlKCk7XG4gICAgICAgIH0sIDMwMDApXG4gICAgICB9XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
262
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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BvZiByZWxhdGVkIHRyYW5zZmVyIHRyYW5zYWN0aW9uXG4gICAgICAgICAgICAgIGlmIChtb2RlbC50cmFuc2Zlcikge1xuICAgICAgICAgICAgICAgIC8vIGp1c3QgdGFrZSBpZCBpZiB3ZSBkZWxldGUgc291cmNlIHRyYW5zYWN0aW9uXG4gICAgICAgICAgICAgICAgaWRzLnB1c2gobW9kZWwudHJhbnNmZXIuaWQpO1xuICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIC8vIGZpbmQgc291cmNlIHRyYW5zYWN0aW9uIGlkIGlmIHdlIGRlbGV0ZSBkZXN0aW5hdGlvbiB0cmFuc2FjdGlvblxuICAgICAgICAgICAgICAgIGlkcy5wdXNoKHRoaXMuY2FjaGUuZmluZCgodDogVHJhbnNhY3Rpb24pOiBib29sZWFuID0+IHQudHJhbnNmZXIuaWQgPT09IG1vZGVsLmlkKS5pZCk7XG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICByZXR1cm4gIWlkcy5pbmNsdWRlcyh0cmFuc2FjdGlvbi5pZCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiB0cmFuc2FjdGlvbi5pZCAhPT0gbW9kZWwuaWQgJiYgdHJhbnNhY3Rpb24ucGFyZW50VHJhbnNhY3Rpb24/LmlkICE9PSBtb2RlbC5pZDtcbiAgICAgICAgICB9KTtcblxuICAgICAgICAgIHRoaXMuZXZlbnREaXNwYXRjaGVyU2VydmljZS5kaXNwYXRjaChcbiAgICAgICAgICAgIG5ldyBBcHBFdmVudDxUcmFuc2FjdGlvbj4oQXBwRXZlbnRUeXBlRW51bS5UUkFOU0FDVElPTl9ERUxFVEVELCBtb2RlbClcbiAgICAgICAgICApO1xuXG4gICAgICAgICAgdGhpcy51cGRhdGVDYWNoZSgpO1xuICAgICAgICAgIHRoaXMudHJhbnNhY3Rpb25EZWxldGVkLmVtaXQobW9kZWwpO1xuICAgICAgICB9KVxuICAgICAgKTtcb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LmV2ZW50VHlwZSkpIHtcbiAgICAgICAgLy8gQFRPRE8gVFQtMzgyNiBtb3ZlIHRvIHVuaWZpZWQgbWVyY3VyZSBldmVudFxuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICB0aGlzLnJlZnJlc2hDYWNoZSgpO1xuICAgICAgICB9LCAzMDAwKVxuICAgICAgfVxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -15262,8 +15262,8 @@ class TransactionService extends RestService {
|
|
15262
15262
|
this.listenPropertyForecastUpdate();
|
15263
15263
|
this.listenNotifications();
|
15264
15264
|
}
|
15265
|
-
|
15266
|
-
return super.
|
15265
|
+
get(path = this.apiUrl) {
|
15266
|
+
return super.get(path).pipe(map(transactions => {
|
15267
15267
|
transactions.forEach((transaction) => {
|
15268
15268
|
transaction.transactions = transactions
|
15269
15269
|
// get list of child transactions
|
@@ -23386,7 +23386,9 @@ class AllocationRuleTransactionForm extends AbstractForm {
|
|
23386
23386
|
listenTankTypeChanges() {
|
23387
23387
|
this.get('tankType').valueChanges.subscribe(() => {
|
23388
23388
|
this.get('chartAccounts').reset();
|
23389
|
-
this.
|
23389
|
+
this.get('property').reset();
|
23390
|
+
this.get('business').reset();
|
23391
|
+
this.childTransactionsArray.clear();
|
23390
23392
|
});
|
23391
23393
|
}
|
23392
23394
|
/**
|
@@ -23431,20 +23433,19 @@ class AllocationRuleTransactionForm extends AbstractForm {
|
|
23431
23433
|
* @TODO move aux methods like isSplittable/isTaxFieldHidden/etc (used in view with ngIf) to properties to improve perf
|
23432
23434
|
*/
|
23433
23435
|
class AllocationRuleForm extends AbstractForm {
|
23434
|
-
constructor(
|
23435
|
-
// rule is required because we have to keep bank account relation
|
23436
|
-
rule,
|
23437
|
-
// Flag to enable transaction GST field
|
23438
|
-
isGST) {
|
23436
|
+
constructor(rule, rules, isGST) {
|
23439
23437
|
super({
|
23440
|
-
type: new
|
23441
|
-
name: new
|
23442
|
-
|
23443
|
-
|
23438
|
+
type: new FormControl(rule.type, Validators.required),
|
23439
|
+
name: new FormControl(rule.name, [
|
23440
|
+
Validators.required,
|
23441
|
+
RxwebValidators.noneOf({ matchValues: rules.remove([rule]).mapBy('name') })
|
23442
|
+
]),
|
23443
|
+
conditionOperator: new FormControl(rule.conditionOperator, Validators.required),
|
23444
|
+
conditions: new FormArray((rule.conditions || [plainToClass(AllocationRuleCondition, {})])
|
23444
23445
|
.map((condition) => new AllocationRuleConditionForm(condition))),
|
23445
23446
|
transaction: new AllocationRuleTransactionForm(rule.transaction || plainToClass(AllocationRuleTransaction, {}), isGST),
|
23446
|
-
transferBankAccount: new
|
23447
|
-
autoAllocate: new
|
23447
|
+
transferBankAccount: new FormControl(rule.transferBankAccount, Validators.required),
|
23448
|
+
autoAllocate: new FormControl(rule.autoAllocate || false, Validators.required),
|
23448
23449
|
}, rule);
|
23449
23450
|
this.isGST = isGST;
|
23450
23451
|
this.listenEvents();
|