taxtank-core 0.33.50 → 0.33.52
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/depreciation.collection.mjs +2 -2
- package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
- package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +4 -2
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
- package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +2 -2
- package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +2 -2
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-adjustment-included-list.enum.mjs +4 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +2 -2
- package/esm2022/src/lib/db/Enums/tank-type.enum.mjs +6 -6
- package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
- package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +6 -6
- package/esm2022/src/lib/forms/bank/bank-account/bank-account-allocation.form.mjs +3 -3
- package/esm2022/src/lib/forms/bank/bank-account/bank-account-properties.form.mjs +2 -2
- package/esm2022/src/lib/forms/sole/sole-business-allocations.form.mjs +2 -2
- package/esm2022/src/lib/forms/transaction/allocation-rule.form.mjs +11 -11
- package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +3 -3
- package/esm2022/src/lib/forms/transaction/work/work-income.form.mjs +6 -4
- package/esm2022/src/lib/models/bank/allocation-group.mjs +2 -2
- package/esm2022/src/lib/models/bank/bank-account.mjs +1 -12
- package/esm2022/src/lib/models/bank/bank-transaction.mjs +3 -2
- package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +2 -2
- package/esm2022/src/lib/models/report/vehicle-expense/vehicle-expense.mjs +1 -1
- package/esm2022/src/lib/models/transaction/allocation-rule.mjs +4 -4
- package/esm2022/src/lib/models/transaction/transaction.mjs +3 -4
- package/esm2022/src/lib/models/user/user.mjs +5 -5
- package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +2 -2
- package/esm2022/src/lib/models/vehicle/vehicle-logbook.mjs +3 -3
- package/fesm2022/taxtank-core.mjs +57 -62
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +1 -1
- package/src/lib/db/Enums/chart-accounts/chart-accounts-adjustment-included-list.enum.d.ts +3 -0
- package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +1 -1
- package/src/lib/db/Enums/tank-type.enum.d.ts +5 -5
- package/src/lib/db/Models/bank/bank-account.d.ts +2 -0
- package/src/lib/models/bank/bank-account.d.ts +0 -2
@@ -98,7 +98,7 @@ export class DepreciationCollection extends TransactionBaseCollection {
|
|
98
98
|
// sole tank may have multiple vehicle claims, so we need to filter by business.id
|
99
99
|
? this.getVehicleDepreciations().filterBy('business.id', vehicleClaim.business.id)
|
100
100
|
// work tank may have only one vehicle claim, so we need to filter by tank type
|
101
|
-
: this.getVehicleDepreciations().filterBy('tankType', TankTypeEnum.
|
101
|
+
: this.getVehicleDepreciations().filterBy('tankType', TankTypeEnum.WORK_TANK);
|
102
102
|
}
|
103
103
|
getExportBody(params) {
|
104
104
|
return [];
|
@@ -107,4 +107,4 @@ export class DepreciationCollection extends TransactionBaseCollection {
|
|
107
107
|
return [];
|
108
108
|
}
|
109
109
|
}
|
110
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvZGVwcmVjaWF0aW9uLmNvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDRCQUE0Q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xuICAgIHJldHVybiBbXTtcbiAgfVxuXG4gIGdldEV4cG9ydEhlYWRlcigpOiBzdHJpbmdbXSB7XG4gICAgcmV0dXJuIFtdO1xuICB9XG59XG4iXX0=
|
@@ -7,7 +7,7 @@ export class IncomeSourceCollection extends Collection {
|
|
7
7
|
filterByTank(tank) {
|
8
8
|
return this.items.filter((incomeSource) => {
|
9
9
|
switch (tank) {
|
10
|
-
case TankTypeEnum.
|
10
|
+
case TankTypeEnum.OTHER_TANK:
|
11
11
|
return incomeSource.isOtherIncome();
|
12
12
|
default:
|
13
13
|
return incomeSource.isWorkIncome();
|
@@ -40,4 +40,4 @@ export class IncomeSourceCollection extends Collection {
|
|
40
40
|
return this.items.map((incomeSource) => incomeSource.incomeSourceForecasts).flat();
|
41
41
|
}
|
42
42
|
}
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5jb21lLXNvdXJjZS5jb2xsZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2NvbGxlY3Rpb25zL2luY29tZS1zb3VyY2UvaW5jb21lLXNvdXJjZS5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBSTdEOztHQUVHO0FBQ0gsTUFBTSxPQUFPLHNCQUF1QixTQUFRLFVBQXdCO0lBQ2xFLFlBQVksQ0FBQyxJQUFrQjtRQUM3QixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsWUFBMEIsRUFBRSxFQUFFO1lBQ3RELFFBQVEsSUFB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mb3JlY2FzdHMpLmZsYXQoKTtcbiAgfVxuXG4gIGdldCBzYWxhcnlGb3JlY2FzdHMoKTogU2FsYXJ5Rm9yZWNhc3RbXSB7XG4gICAgcmV0dXJuIHRoaXMuaXRlbXMubWFwKChpbmNvbWVTb3VyY2U6IEluY29tZVNvdXJjZSkgPT4gaW5jb21lU291cmNlLnNhbGFyeUZvcmVjYXN0cykuZmxhdCgpO1xuICB9XG5cbiAgZ2V0IGluY29tZVNvdXJjZUZvcmVjYXN0cygpOiBJbmNvbWVTb3VyY2VGb3JlY2FzdFtdIHtcbiAgICByZXR1cm4gdGhpcy5pdGVtcy5tYXAoKGluY29tZVNvdXJjZTogSW5jb21lU291cmNlKSA9PiBpbmNvbWVTb3VyY2UuaW5jb21lU291cmNlRm9yZWNhc3RzKS5mbGF0KCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,13 +1,15 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
2
|
import flatten from 'lodash/flatten';
|
3
3
|
import { SoleInvoiceStateEnum, SoleInvoiceStatusesEnum } from '../../db/Enums';
|
4
|
+
import round from 'lodash/round';
|
4
5
|
export class SoleInvoiceCollection extends Collection {
|
5
6
|
getOverdue() {
|
6
7
|
return this.filter((invoice) => invoice.isOverdue());
|
7
8
|
}
|
8
9
|
getPaid(transactions) {
|
10
|
+
const amountPerInvoice = transactions.getAmountPerInvoice();
|
9
11
|
return this.filter(invoice => invoice.grossPrice > 0
|
10
|
-
&&
|
12
|
+
&& round(amountPerInvoice.get(invoice.id), 2) >= invoice.grossPrice);
|
11
13
|
}
|
12
14
|
getUnpaid(transactions) {
|
13
15
|
return this.getOpen().filter(invoice => transactions.getAmountPerInvoice().get(invoice.id) < invoice.grossPrice);
|
@@ -34,4 +36,4 @@ export class SoleInvoiceCollection extends Collection {
|
|
34
36
|
return flatten(this.map(invoice => invoice.allocate(bankTransaction, amount)));
|
35
37
|
}
|
36
38
|
}
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
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4gICAgKTtcbiAgICBpbnZvaWNlc0J5U3RhdGUuYWRkKFxuICAgICAgU29sZUludm9pY2VTdGF0dXNlc0VudW0uT1BFTixcbiAgICAgIGludm9pY2VzQnlTdGF0ZS5nZXQoU29sZUludm9pY2VTdGF0dXNlc0VudW0uT1BFTikucmVtb3ZlKGludm9pY2VzQnlTdGF0ZS5nZXQoU29sZUludm9pY2VTdGF0ZUVudW0uRlVMTFlfUEFJRCkudG9BcnJheSgpKVxuICAgICk7XG4gICAgaW52b2ljZXNCeVN0YXRlLmFkZChTb2xlSW52b2ljZVN0YXRlRW51bS5PVkVSRFVFLCB1bnBhaWRJbnZvaWNlcy5nZXRPdmVyZHVlKCkpO1xuXG4gICAgcmV0dXJuIGludm9pY2VzQnlTdGF0ZVxuICB9XG5cbiAgZ2V0VW5wYWlkQW1vdW50KHRyYW5zYWN0aW9uczogVHJhbnNhY3Rpb25Db2xsZWN0aW9uKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5zdW1CeSgnZ3Jvc3NQcmljZScpIC0gdHJhbnNhY3Rpb25zLmdldEJ5SW52b2ljZXModGhpcykuc3VtQnkoJ2dyb3NzQW1vdW50Jyk7XG4gIH1cblxuICBhbGxvY2F0ZShiYW5rVHJhbnNhY3Rpb246IEJhbmtUcmFuc2FjdGlvbiwgYW1vdW50PzogbnVtYmVyKTogVHJhbnNhY3Rpb25bXSB7XG4gICAgcmV0dXJuIGZsYXR0ZW4odGhpcy5tYXAoaW52b2ljZSA9PiBpbnZvaWNlLmFsbG9jYXRlKGJhbmtUcmFuc2FjdGlvbiwgYW1vdW50KSkpO1xuICB9XG59XG4iXX0=
|
@@ -114,7 +114,7 @@ export class TransactionCollection extends TransactionBaseCollection {
|
|
114
114
|
* Get new collection of property transactions
|
115
115
|
*/
|
116
116
|
getPropertyTransactions() {
|
117
|
-
return this.filterBy('tankType', TankTypeEnum.
|
117
|
+
return this.filterBy('tankType', TankTypeEnum.PROPERTY_TANK);
|
118
118
|
}
|
119
119
|
getDebitTransactions() {
|
120
120
|
return new TransactionCollection(this.items.filter((transaction) => transaction.isDebit()));
|
@@ -183,7 +183,7 @@ export class TransactionCollection extends TransactionBaseCollection {
|
|
183
183
|
// sole tank may have multiple vehicle claims, so we need to filter by business.id
|
184
184
|
? this.getVehicleTransactions().filterBy('business.id', vehicleClaim.business.id)
|
185
185
|
// work tank may have only one vehicle claim, so we need to filter by tank type
|
186
|
-
: this.getVehicleTransactions().filterBy('tankType', TankTypeEnum.
|
186
|
+
: this.getVehicleTransactions().filterBy('tankType', TankTypeEnum.WORK_TANK);
|
187
187
|
}
|
188
188
|
/**
|
189
189
|
* Get list of vehicle transactions except KMS transactions
|
@@ -231,4 +231,4 @@ export class TransactionCollection extends TransactionBaseCollection {
|
|
231
231
|
return this.filter(transaction => transaction.claimPercent > 0);
|
232
232
|
}
|
233
233
|
}
|
234
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9jb2xsZWN0aW9ucy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5jb2xsZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx5QkFBeUIsRUFDekIsVUFBVSxFQUlYLE1BQU0sY0FBYyxDQUFDO0FBRXRCLE9BQU8sRUFBRSx5QkFBeUIsRUFBNkIscUJBQXFCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3RyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDN0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxVQUFVLEVBQUUs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dldEluY29tZVRyYW5zYWN0aW9ucygpO1xuXG4gICAgcmV0dXJuIGluY29tZXMuc3VtQnkoJ2NsYWltQW1vdW50JykgKyBleHBlbnNlcy5zdW1CeSgnY2xhaW1BbW91bnQnKTtcbiAgfVxuXG4gIGdldFRheGFibGUoKTogdGhpcyB7XG4gICAgcmV0dXJuIHRoaXMuZmlsdGVyKHRyYW5zYWN0aW9uID0+IHRyYW5zYWN0aW9uLmNsYWltUGVyY2VudCA+IDApO1xuICB9XG59XG4iXX0=
|
@@ -22,7 +22,7 @@ export class VehicleLogbookCollection extends Collection {
|
|
22
22
|
// sole tank may have multiple vehicle claims, so we need to filter by business.id
|
23
23
|
? this.filterBy('business.id', vehicleClaim.business.id)
|
24
24
|
// work tank may have only one vehicle claim, so we need to filter by tank type
|
25
|
-
: this.filterBy('tankType', TankTypeEnum.
|
25
|
+
: this.filterBy('tankType', TankTypeEnum.WORK_TANK);
|
26
26
|
}
|
27
27
|
/**
|
28
28
|
* get collection of logbooks with the biggest work usage for {@link BestVehicleLogbookCollection.periodDuration}
|
@@ -40,4 +40,4 @@ export class VehicleLogbookCollection extends Collection {
|
|
40
40
|
return this.items[1];
|
41
41
|
}
|
42
42
|
}
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1sb2dib29rLmNvbGxlY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvdmVoaWNsZS92ZWhpY2xlLWxvZ2Jvb2suY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBRSxZQUFZLEVBQUUsT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nVsbCB7XG4gICAgcmV0dXJuIEJlc3RWZWhpY2xlTG9nYm9va0NvbGxlY3Rpb24uZnJvbUxvZ2Jvb2tzKHRoaXMpO1xuICB9XG5cbiAgZ2V0IGZpcnN0KCk6IFZlaGljbGVMb2dib29rIHtcbiAgICByZXR1cm4gc3VwZXIubGFzdDtcbiAgfVxuXG4gIGdldCBsYXN0KCk6IFZlaGljbGVMb2dib29rIHtcbiAgICByZXR1cm4gc3VwZXIuZmlyc3Q7XG4gIH1cblxuICBnZXQgcHJlTGFzdCgpOiBWZWhpY2xlTG9nYm9vayB7XG4gICAgcmV0dXJuIHRoaXMuaXRlbXNbMV07XG4gIH1cbn1cbiJdfQ==
|
@@ -38,11 +38,11 @@ export var BusinessChartAccountsEnum;
|
|
38
38
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["ELECTRICITY_AND_GAS"] = 892] = "ELECTRICITY_AND_GAS";
|
39
39
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_CLEANING"] = 893] = "HOME_OFFICE_CLEANING";
|
40
40
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTERNET"] = 705] = "INTERNET";
|
41
|
-
BusinessChartAccountsEnum[BusinessChartAccountsEnum["TELEPHONE"] =
|
41
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["TELEPHONE"] = 11862] = "TELEPHONE";
|
42
42
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["MOBILE_PHONE"] = 719] = "MOBILE_PHONE";
|
43
43
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RENT"] = 889] = "HOME_OFFICE_RENT";
|
44
44
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_LOAN"] = 890] = "HOME_OFFICE_LOAN";
|
45
45
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RATES"] = 891] = "HOME_OFFICE_RATES";
|
46
46
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_OTHER"] = 894] = "HOME_OFFICE_OTHER";
|
47
47
|
})(BusinessChartAccountsEnum || (BusinessChartAccountsEnum = {}));
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVzaW5lc3MtY2hhcnQtYWNjb3VudHMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9jaGFydC1hY2NvdW50cy9idXNpbmVzcy1jaGFydC1hY2NvdW50cy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLHlCQTZDWDtBQTdDRCxXQUFZLHlCQUF5QjtJQUNuQyx1R0FBd0IsQ0FBQTtJQUN4QixtSEFBOEIsQ0FBQTtJQUM5QixpSEFBNkIsQ0FBQTtJQUM3Qiw2RUFBVyxDQUFBO0lBQ1gsK0VBQVksQ0FBQTtJQUNaLHlGQUFpQixDQUFBO0lBQ2pCLHVGQUFnQixDQUFBO0lBQ2hCLHFHQUF1QixDQUFBO0lBQ3ZCLDZHQUEyQixDQUFBO0lBQzNCLCtIQUFvQyxDQUFBO0lBQ3BDLHlIQUFpQyxDQUFBO0lBQ2pDLHVJQUF3QyxDQUFBO0lBQ3hDLCtLQUE0RCxDQUFBO0lBQzVELHFIQUErQixDQUFBO0lBQy9CLHVIQUFnQyxDQUFBO0lBQ2hDLCtGQUFvQixDQUFBO0lBQ3BCLG1GQUFjLENBQUE7SUFDZCxxSEFBK0IsQ0FBQTtJQUMvQixxSUFBdUMsQ0FBQTtJQUN2Qyx5SEFBaUMsQ0FBQTtJQUNqQyx1SEFBZ0MsQ0FBQTtJQUNoQyw2RkFBbUIsQ0FBQTtJQUNuQiw2R0FBMkIsQ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9DTEVBTklORyA9IDg5MyxcbiAgSU5URVJORVQgPSA3MDUsXG4gIFRFTEVQSE9ORSA9IDExODYyLFxuICBNT0JJTEVfUEhPTkUgPSA3MTksXG4gIEhPTUVfT0ZGSUNFX1JFTlQgPSA4ODksXG4gIEhPTUVfT0ZGSUNFX0xPQU4gPSA4OTAsXG4gIEhPTUVfT0ZGSUNFX1JBVEVTID0gODkxLFxuICBIT01FX09GRklDRV9PVEhFUiA9IDg5NCxcbn1cbiJdfQ==
|
package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-adjustment-included-list.enum.mjs
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* list of child transactions included in parent amount
|
3
|
+
*/
|
1
4
|
export var ChartAccountsAdjustmentIncludedListEnum;
|
2
5
|
(function (ChartAccountsAdjustmentIncludedListEnum) {
|
3
6
|
ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
|
@@ -13,4 +16,4 @@ export var ChartAccountsAdjustmentIncludedListEnum;
|
|
13
16
|
ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["FUNDS_OVER_ADJUSTMENT"] = 906] = "FUNDS_OVER_ADJUSTMENT";
|
14
17
|
ChartAccountsAdjustmentIncludedListEnum[ChartAccountsAdjustmentIncludedListEnum["LANDLORD_REIMBURSEMENT"] = 908] = "LANDLORD_REIMBURSEMENT";
|
15
18
|
})(ChartAccountsAdjustmentIncludedListEnum || (ChartAccountsAdjustmentIncludedListEnum = {}));
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtYWRqdXN0bWVudC1pbmNsdWRlZC1saXN0LmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uL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ZVTkRTX09WRVJfQURKVVNUTUVOVCA9IDkwNixcbiAgTEFORExPUkRfUkVJTUJVUlNFTUVOVCA9IDkwOFxufVxuIl19
|
@@ -56,6 +56,6 @@ export var ChartAccountsListEnum;
|
|
56
56
|
ChartAccountsListEnum[ChartAccountsListEnum["INTERNET"] = 94] = "INTERNET";
|
57
57
|
ChartAccountsListEnum[ChartAccountsListEnum["ELECTRICITY_AND_GAS"] = 234] = "ELECTRICITY_AND_GAS";
|
58
58
|
ChartAccountsListEnum[ChartAccountsListEnum["TELEPHONE"] = 255] = "TELEPHONE";
|
59
|
-
ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_CLEANING"] =
|
59
|
+
ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_CLEANING"] = 11871] = "HOME_OFFICE_CLEANING";
|
60
60
|
})(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtbGlzdC5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL0VudW1zL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLWxpc3QuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxxQkEwRFg7QUExREQsV0FBWSxxQkFBcUI7SUFDL0IsdUZBQW1CLENBQUE7SUFDbkIsbUhBQWlDLENBQUE7SUFDakMsb0hBQWtDLENBQUE7SUFDbEMsOEVBQWUsQ0FBQTtJQUNmLDBGQUFxQixDQUFBO0lBQ3JCLHdGQUFvQixDQUFBO0lBQ3BCLG9GQUFrQixDQUFBO0lBQ2xCLDBFQUFhLENBQUE7SUFDY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U1FU19JTkNPTUUgPSA1OTAsXG4gIEZPUkVTVFJZX01BTkFHRURfSU5WRVNUTUVOVF9TQ0hFTUVTX0RFRFVDVElPTiA9IDU5MyxcbiAgQVNTRVNTQUJMRV9BTU9VTlRfQ0FQUEVEX0RFRklORURfQkVORUZJVCA9IDYzOSxcbiAgQ09ERV9BX1NVUEVSQU5OVUFUSU9OX0lOQ09NRV9TVFJFQU1TX0RFQVRIID0gNjQwLFxuICBUUkFOU0ZFUiA9IDYxNSxcbiAgUEVSU09OQUxfRVhQRU5TRVMgPSA2MjgsXG4gIFBFUlNPTkFMX0lOQ09NRSA9IDYzMCxcbiAgUExBVEZPUk1fRkVFUyA9IDg1NyxcbiAgQVVTVFJBTElBTl9HT1ZFUk5NRU5UX1NQRUNJQUxfUEFZTUVOVFMgPSA4NzEsXG4gIEZIU1MgPSA4NzIsXG4gIE1PQklMRV9QSE9ORSA9IDkwLFxuICBJTlRFUk5FVCA9IDk0LFxuICBFTEVDVFJJQ0lUWV9BTkRfR0FTID0gMjM0LFxuICBURUxFUEhPTkUgPSAyNTUsXG4gIEhPTUVfT0ZGSUNFX0NMRUFOSU5HID0gMTE4NzEsXG59XG4iXX0=
|
@@ -1,10 +1,10 @@
|
|
1
1
|
export var TankTypeEnum;
|
2
2
|
(function (TankTypeEnum) {
|
3
|
-
TankTypeEnum[TankTypeEnum["
|
4
|
-
TankTypeEnum[TankTypeEnum["
|
5
|
-
TankTypeEnum[TankTypeEnum["
|
6
|
-
TankTypeEnum[TankTypeEnum["
|
7
|
-
TankTypeEnum[TankTypeEnum["
|
3
|
+
TankTypeEnum[TankTypeEnum["PROPERTY_TANK"] = 1] = "PROPERTY_TANK";
|
4
|
+
TankTypeEnum[TankTypeEnum["WORK_TANK"] = 2] = "WORK_TANK";
|
5
|
+
TankTypeEnum[TankTypeEnum["OTHER_TANK"] = 3] = "OTHER_TANK";
|
6
|
+
TankTypeEnum[TankTypeEnum["SOLE_TANK"] = 4] = "SOLE_TANK";
|
7
|
+
TankTypeEnum[TankTypeEnum["HOLDING_TANK"] = 5] = "HOLDING_TANK";
|
8
8
|
TankTypeEnum[TankTypeEnum["PERSONAL"] = 6] = "PERSONAL";
|
9
9
|
})(TankTypeEnum || (TankTypeEnum = {}));
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFuay10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvdGFuay10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksWUFPWDtBQVBELFdBQVksWUFBWTtJQUN0QixpRUFBaUIsQ0FBQTtJQUNqQix5REFBYSxDQUFBO0lBQ2IsMkRBQWMsQ0FBQTtJQUNkLHlEQUFhLENBQUE7SUFDYiwrREFBZ0IsQ0FBQTtJQUNoQix1REFBWSxDQUFBO0FBQ2QsQ0FBQyxFQVBXLFlBQVksS0FBWixZQUFZLFFBT3ZCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gVGFua1R5cGVFbnVtIHtcbiAgUFJPUEVSVFlfVEFOSyA9IDEsXG4gIFdPUktfVEFOSyA9IDIsXG4gIE9USEVSX1RBTksgPSAzLFxuICBTT0xFX1RBTksgPSA0LFxuICBIT0xESU5HX1RBTksgPSA1LFxuICBQRVJTT05BTCA9IDYsXG59XG4iXX0=
|
@@ -7,4 +7,4 @@ export class BankAccount extends ObservableModel {
|
|
7
7
|
__decorate([
|
8
8
|
Type(() => Number)
|
9
9
|
], BankAccount.prototype, "currentBalance", void 0);
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay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1c2luZXNzQWxsb2NhdGlvbltdO1xuICBiYW5rVHJhbnNhY3Rpb25zPzogQmFua1RyYW5zYWN0aW9uW107XG4gIGJhbGFuY2VzPzogQmFua0FjY291bnRCYWxhbmNlW107XG4gIGxvYW4/OiBMb2FuO1xufVxuIl19
|
@@ -13,15 +13,15 @@ export class TransactionBase extends ObservableModel {
|
|
13
13
|
get tankType() {
|
14
14
|
switch (true) {
|
15
15
|
case this.isPropertyTank():
|
16
|
-
return TankTypeEnum.
|
16
|
+
return TankTypeEnum.PROPERTY_TANK;
|
17
17
|
case this.isWorkTank():
|
18
|
-
return TankTypeEnum.
|
18
|
+
return TankTypeEnum.WORK_TANK;
|
19
19
|
case this.isSoleTank():
|
20
|
-
return TankTypeEnum.
|
20
|
+
return TankTypeEnum.SOLE_TANK;
|
21
21
|
case this.isHoldingTank():
|
22
|
-
return TankTypeEnum.
|
22
|
+
return TankTypeEnum.HOLDING_TANK;
|
23
23
|
case this.isOtherTank():
|
24
|
-
return TankTypeEnum.
|
24
|
+
return TankTypeEnum.OTHER_TANK;
|
25
25
|
default:
|
26
26
|
return TankTypeEnum.PERSONAL;
|
27
27
|
}
|
@@ -85,4 +85,4 @@ __decorate([
|
|
85
85
|
__decorate([
|
86
86
|
Exclude()
|
87
87
|
], TransactionBase.prototype, "gstClaimAmount", null);
|
88
|
-
//# sourceMappingURL=data:application/json;base64,
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvdHJhbnNhY3Rpb24vdHJhbnNhY3Rpb24tYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLE9BQU8sRUFBRSx5QkF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sVGFuaygpOiBib29sZWFuIHtcbiAgICByZXR1cm4gQ0hBUlRfQUNDT1VOVFNfQ0FURUdPUklFUy5wZXJzb25hbC5pbmNsdWRlcyh0aGlzLmNoYXJ0QWNjb3VudHM/LmNhdGVnb3J5KTtcbiAgfVxuXG4gIEBFeGNsdWRlKClcbiAgZ2V0IGFtb3VudFdpdGhHc3QoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5pc0dTVCA/IHRoaXMuYW1vdW50ICogQ2hhcnRBY2NvdW50cy5HU1RDb2VmZmljaWVudCA6IHRoaXMuYW1vdW50O1xuICB9XG5cbiAgQEV4Y2x1ZGUoKVxuICBnZXQgZ3N0QW1vdW50KCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuYW1vdW50V2l0aEdzdCAtIHRoaXMuYW1vdW50O1xuICB9XG5cbiAgQEV4Y2x1ZGUoKVxuICBnZXQgZ3N0Q2xhaW1BbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5nc3RBbW91bnQgKiB0aGlzLmNsYWltUmF0aW87XG4gIH1cblxuICAvKipcbiAgICogYmFzZSBncm9zc0Ftb3VudCwgZXh0ZW5kcyBpbiBjaGlsZCBjbGFzc2VzXG4gICAqL1xuICBnZXQgZ3Jvc3NBbW91bnQoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5hbW91bnQgKyB0aGlzLmdzdEFtb3VudDtcbiAgfVxuXG4gIGdldCBncm9zc0NsYWltQW1vdW50KCk6IG51bWJlciB7XG4gICAgcmV0dXJuIHRoaXMuZ3Jvc3NBbW91bnQgKiB0aGlzLmNsYWltUmF0aW87XG4gIH1cbn1cbiJdfQ==
|
@@ -28,10 +28,10 @@ export class BankAccountAllocationForm extends AbstractForm {
|
|
28
28
|
this.removeControl('bankAccountProperties');
|
29
29
|
this.removeControl('businessAllocations');
|
30
30
|
switch (tankType) {
|
31
|
-
case TankTypeEnum.
|
31
|
+
case TankTypeEnum.PROPERTY_TANK:
|
32
32
|
this.addControl('bankAccountProperties', new BankAccountPropertiesForm(this.bankAccount?.bankAccountProperties));
|
33
33
|
break;
|
34
|
-
case TankTypeEnum.
|
34
|
+
case TankTypeEnum.SOLE_TANK:
|
35
35
|
this.addControl('businessAllocations', new SoleBusinessAllocationsForm(this.bankAccount?.businessAllocations));
|
36
36
|
break;
|
37
37
|
}
|
@@ -42,4 +42,4 @@ export class BankAccountAllocationForm extends AbstractForm {
|
|
42
42
|
return super.submit(Object.assign(data, { bankAccountProperties: [], businessAllocations: [] }, this.value));
|
43
43
|
}
|
44
44
|
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay1hY2NvdW50LWFsbG9jYXRpb24uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9iYW5rL2JhbmstYWNjb3VudC9iYW5rLWFjY291bnQtYWxsb2NhdGlvbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNuRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDOUMsT0FBTyxFQUFtQixrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNqRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQ2hFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSwyQkF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