taxtank-core 0.33.45 → 0.33.47
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/chart-accounts/chart-accounts-value.collection.mjs +20 -0
- package/esm2022/src/lib/collections/chart-accounts/index.mjs +2 -0
- package/esm2022/src/lib/collections/chart-accounts.collection.mjs +2 -2
- package/esm2022/src/lib/collections/collection.mjs +2 -2
- package/esm2022/src/lib/collections/index.mjs +2 -1
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-field.enum.mjs → bank/allocation-rule/allocation-rule-condition-field.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-operator.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/bank/allocation-rule/allocation-rule-type.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/bank/allocation-rule/index.mjs +5 -0
- package/esm2022/src/lib/db/Enums/bank/index.mjs +2 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +39 -0
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +20 -66
- package/esm2022/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.mjs +18 -0
- package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +3 -3
- package/esm2022/src/lib/db/Enums/home-office/home-office-claim-method.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/home-office/index.mjs +2 -0
- package/esm2022/src/lib/db/Enums/index.mjs +2 -6
- package/esm2022/src/lib/db/Models/bank/bank-transaction.mjs +2 -2
- package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +1 -2
- package/esm2022/src/lib/db/Models/sole/sole-business.mjs +2 -1
- package/esm2022/src/lib/db/Models/sole/sole-details.mjs +2 -1
- package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
- package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +2 -1
- package/esm2022/src/lib/forms/abstract.form.mjs +34 -2
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +1 -1
- package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +47 -0
- package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +15 -0
- package/esm2022/src/lib/forms/home-office/index.mjs +3 -0
- package/esm2022/src/lib/forms/index.mjs +2 -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/models/chart-accounts/chart-accounts.mjs +17 -11
- package/esm2022/src/lib/models/endpoint/endpoint.mjs +1 -1
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +4 -1
- package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +2 -0
- package/esm2022/src/lib/models/home-office/home-office-claim.mjs +26 -0
- package/esm2022/src/lib/models/home-office/home-office-log.interface.mjs +2 -0
- package/esm2022/src/lib/models/home-office/home-office-log.mjs +14 -0
- package/esm2022/src/lib/models/home-office/index.mjs +5 -0
- package/esm2022/src/lib/models/index.mjs +2 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs +14 -14
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +18 -18
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +12 -12
- package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +25 -2
- package/esm2022/src/lib/models/transaction/transaction.mjs +6 -3
- package/esm2022/src/lib/services/http/home-office/home-office-claim-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +23 -0
- package/esm2022/src/lib/services/http/home-office/home-office-log-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +23 -0
- package/esm2022/src/lib/services/http/home-office/index.mjs +5 -0
- package/esm2022/src/lib/services/http/index.mjs +3 -1
- package/esm2022/src/lib/services/http/rest-messages.enum.mjs +7 -0
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +11 -7
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -12
- package/fesm2022/taxtank-core.mjs +383 -175
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/chart-accounts/chart-accounts-value.collection.d.ts +12 -0
- package/src/lib/collections/chart-accounts/index.d.ts +1 -0
- package/src/lib/collections/collection.d.ts +1 -1
- package/src/lib/collections/index.d.ts +1 -0
- package/src/lib/db/Enums/bank/allocation-rule/index.d.ts +4 -0
- package/src/lib/db/Enums/bank/index.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +37 -0
- package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +20 -66
- package/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.d.ts +16 -0
- package/src/lib/db/Enums/chart-accounts/index.d.ts +2 -2
- package/src/lib/db/Enums/home-office/home-office-claim-method.enum.d.ts +5 -0
- package/src/lib/db/Enums/home-office/index.d.ts +1 -0
- package/src/lib/db/Enums/index.d.ts +1 -4
- package/src/lib/db/Models/depreciation/depreciation.d.ts +0 -1
- package/src/lib/db/Models/sole/sole-business.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-details.d.ts +1 -0
- package/src/lib/db/Models/user/user.d.ts +1 -1
- package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +1 -0
- package/src/lib/forms/abstract.form.d.ts +10 -0
- package/src/lib/forms/home-office/home-office-claim.form.d.ts +12 -0
- package/src/lib/forms/home-office/home-office-log.form.d.ts +5 -0
- package/src/lib/forms/home-office/index.d.ts +2 -0
- package/src/lib/forms/index.d.ts +1 -0
- package/src/lib/forms/transaction/allocation-rule.form.d.ts +5 -4
- package/src/lib/models/chart-accounts/chart-accounts.d.ts +3 -1
- package/src/lib/models/home-office/home-office-claim.d.ts +22 -0
- package/src/lib/models/home-office/home-office-claim.interface.d.ts +17 -0
- package/src/lib/models/home-office/home-office-log.d.ts +11 -0
- package/src/lib/models/home-office/home-office-log.interface.d.ts +9 -0
- package/src/lib/models/home-office/index.d.ts +4 -0
- package/src/lib/models/index.d.ts +1 -0
- package/src/lib/models/sole/sole-invoice-item.d.ts +2 -1
- package/src/lib/models/transaction/transaction.d.ts +1 -0
- package/src/lib/services/http/home-office/home-office-claim-messages.enum.d.ts +6 -0
- package/src/lib/services/http/home-office/home-office-claim.service.d.ts +12 -0
- package/src/lib/services/http/home-office/home-office-log-messages.enum.d.ts +6 -0
- package/src/lib/services/http/home-office/home-office-log.service.d.ts +12 -0
- package/src/lib/services/http/home-office/index.d.ts +4 -0
- package/src/lib/services/http/index.d.ts +2 -0
- package/src/lib/services/http/rest-messages.enum.d.ts +5 -0
- package/src/lib/services/http/transaction/transaction.service.d.ts +2 -1
- package/src/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts +3 -7
- package/esm2022/src/lib/db/Enums/allocation-rule-type.enum.mjs +0 -7
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.mjs +0 -25
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.mjs +0 -6
- package/esm2022/src/lib/validators/address-corelogic.validator.mjs +0 -19
- package/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.d.ts +0 -23
- package/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.d.ts +0 -4
- package/src/lib/validators/address-corelogic.validator.d.ts +0 -6
- /package/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-condition-field.enum.d.ts → bank/allocation-rule/allocation-rule-condition-field.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-condition-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-operator.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-type.enum.d.ts → bank/allocation-rule/allocation-rule-type.enum.d.ts} +0 -0
@@ -1,24 +1,16 @@
|
|
1
1
|
import { Injectable } from '@angular/core';
|
2
|
-
import {
|
3
|
-
import { ChartAccountsValue
|
2
|
+
import { ChartAccountsValueCollection } from '../../../collections';
|
3
|
+
import { ChartAccountsValue } from '../../../models';
|
4
4
|
import ChartAccountsValues from '../../../db/Json/chart-accounts/chart-accounts-value.json';
|
5
5
|
import { DataService } from '../../data.service';
|
6
|
-
import { ChartAccountsListEnum } from '../../../db/Enums';
|
7
6
|
import * as i0 from "@angular/core";
|
8
7
|
export class ChartAccountsValueService extends DataService {
|
9
8
|
constructor() {
|
10
9
|
super();
|
11
10
|
this.modelClass = ChartAccountsValue;
|
12
|
-
this.collectionClass =
|
11
|
+
this.collectionClass = ChartAccountsValueCollection;
|
13
12
|
this.setCache(ChartAccountsValues);
|
14
13
|
}
|
15
|
-
/**
|
16
|
-
* $ amount u can claim per 1km
|
17
|
-
*/
|
18
|
-
getKmsRate(isSole) {
|
19
|
-
const chartAccountsId = isSole ? ChartAccountsListEnum.KLMS_TRAVELLED : ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK;
|
20
|
-
return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
|
21
|
-
}
|
22
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
23
15
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' }); }
|
24
16
|
}
|
@@ -28,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
28
20
|
providedIn: 'root'
|
29
21
|
}]
|
30
22
|
}], ctorParameters: () => [] });
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtdmFsdWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9qc29uL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLXZhbHVlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNyRCxPQUFPLG1CQUFtQixNQUFNLDJEQUEyRCxDQUFDO0FBQzVGLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFLakQsTUFBTSxPQUFPLHlCQUEwQixTQUFRLFdBQXFGO0lBSWxJO1FBQ0UsS0FBSyxFQUFFLENBQUM7UUFKVixlQUFVLEdBQThCLGtCQUFrQixDQUFDO1FBQzNELG9CQUFlLEdBQUcsNEJBQTRCLENBQUM7UUFJN0MsSUFBSSxDQUFDLFFBQVEsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO0lBQ3JDLENBQUM7K0dBUFUse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