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
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLXRyYW5zYWN0aW9uLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnNhY3Rpb24vYWxsb2NhdGlvbi1ydWxlLXRyYW5zYWN0aW9uLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFFTCxrQ0FBa0MsRUFHbEMsWUFBWSxFQUNiLE1BQU0sY0FBYyxDQUFDO0FBQ3RCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxrQkF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cm9wZXJ0eScpLnZhbHVlQ2hhbmdlcy5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgdGhpcy51cGRhdGVDbGFpbVBlcmNlbnQoKTtcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBVcGRhdGUgY2xhaW0gcGVyY2VudCB2YWx1ZSBhbmQgc3RhdGUgZGVwZW5kcyBvbiBidXNpbmVzcyBsb2dpY1xuICAgKi9cbiAgcHJpdmF0ZSB1cGRhdGVDbGFpbVBlcmNlbnQoKTogdm9pZCB7XG4gICAgY29uc3QgY2xhaW1QZXJjZW50Q29udHJvbDogVW50eXBlZEZvcm1Db250cm9sID0gdGhpcy5nZXQoJ2NsYWltUGVyY2VudCcpIGFzIFVudHlwZWRGb3JtQ29udHJvbDtcblxuICAgIC8vIGNsYWltIHBlcmNlbnQgaXMgY2hhbmdlYWJsZSBvbmx5IGZvciB3b3JrIGFuZCBzb2xlIGV4cGVuc2VzIGV4Y2VwdCB2ZWhpY2xlIGFuZCBwZXJzb25hbFxuICAgIGNsYWltUGVyY2VudENvbnRyb2wuZGlzYWJsZSgpO1xuXG4gICAgaWYgKCF0aGlzLmN1cnJlbnRWYWx1ZS5jaGFydEFjY291bnRzKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgaWYgKHRoaXMuY3VycmVudFZhbHVlLmNoYXJ0QWNjb3VudHMuaXNDbGFpbVBlcmNlbnRFZGl0YWJsZSgpKSB7XG4gICAgICBjbGFpbVBlcmNlbnRDb250cm9sLmVuYWJsZSgpO1xuICAgIH1cblxuICAgIGNsYWltUGVyY2VudENvbnRyb2wuc2V0VmFsdWUodGhpcy5jdXJyZW50VmFsdWUuY2FsY3VsYXRlQ2xhaW1QZXJjZW50KCkpO1xuICB9XG59XG4iXX0=
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsb2NhdGlvbi1ydWxlLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnNhY3Rpb24vYWxsb2NhdGlvbi1ydWxlLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBa0IseUJBQXlCLEVBQUUseUJBQXlCLEVBQWlCLE1BQU0sY0FBYyxDQUFDO0FBQ25ILE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsa0JBQWtCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbEYsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sb0RBQW9ELENBQUM7QUFDN0YsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDL0UsT0FBTyxFQUFFLDZCQUE2QixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDbkYsT0FBTyxFQUFFLHNCQUFzQixFQUE2QixNQUFNLGdCQUFnQixDQUFDO0FBQ25GLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUU3RCxPQUFPLFlBQVksTUFBTSxxQkFBcUIsQ0FBQztBQUUvQzs7R0FFRztBQUNILE1BQU0sT0FBT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sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5nZXQoJ3RyYW5zYWN0aW9uJykuZ2V0KCd0YW5rVHlwZScpLnZhbHVlID09PSBUYW5rVHlwZUVudW0uU09MRTtcbiAgfVxuXG4gIGlzUHJvcGVydHlJbmNvbWUoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuaXNJbmNvbWUoKSAmJiB0aGlzLmlzUHJvcGVydHlUYW5rKCk7XG4gIH1cblxuICBpc1dvcmtJbmNvbWUoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuaXNJbmNvbWUoKSAmJiB0aGlzLmlzV29ya1RhbmsoKTtcbiAgfVxuXG4gIGlzU29sZUluY29tZSgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5pc0luY29tZSgpICYmIHRoaXMuaXNTb2xlVGFuaygpO1xuICB9XG59XG4iXX0=
|
@@ -3,7 +3,7 @@ import { ChartAccounts as ChartAccountsBase } from '../../db/Models/chart-accoun
|
|
3
3
|
import { Expose, Transform, Type } from 'class-transformer';
|
4
4
|
import { ChartAccountsHeading } from './chart-accounts-heading';
|
5
5
|
import { ChartAccountsMetaField } from './chart-accounts-meta-field';
|
6
|
-
import { ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryEnum, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum } from '../../db/Enums';
|
6
|
+
import { BusinessChartAccountsEnum, ChartAccountsAdjustmentIncludedListEnum, ChartAccountsCategoryEnum, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum } from '../../db/Enums';
|
7
7
|
import { CHART_ACCOUNTS_CATEGORIES } from './chart-accounts-categories.const';
|
8
8
|
import { FinancialYear } from '../financial-year';
|
9
9
|
import { ChartAccountsValue } from './chart-accounts-value';
|
@@ -17,6 +17,12 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
17
17
|
static { this.GSTRatio = 0.1; }
|
18
18
|
static { this.GSTCoefficient = 1.1; }
|
19
19
|
static { this.GSTPercent = 10; }
|
20
|
+
static { this.systemList = [
|
21
|
+
ChartAccountsListEnum.HOME_OFFICE_HOURS,
|
22
|
+
ChartAccountsListEnum.KMS_TRAVELLED,
|
23
|
+
BusinessChartAccountsEnum.HOME_OFFICE_HOURS,
|
24
|
+
BusinessChartAccountsEnum.KMS_TRAVELLED,
|
25
|
+
]; }
|
20
26
|
/**
|
21
27
|
* Return name as string
|
22
28
|
*/
|
@@ -27,16 +33,16 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
27
33
|
* Check if chart accounts id is related for 'Kms travelled for work' category
|
28
34
|
*/
|
29
35
|
isKmsForWork() {
|
30
|
-
return this.id === ChartAccountsListEnum.
|
36
|
+
return this.id === ChartAccountsListEnum.KMS_TRAVELLED;
|
31
37
|
}
|
32
38
|
/**
|
33
39
|
* Check if chart accounts id is related for 'Kms travelled for sole' category
|
34
40
|
*/
|
35
41
|
isKmsForSole() {
|
36
|
-
return this.id ===
|
42
|
+
return this.id === BusinessChartAccountsEnum.KMS_TRAVELLED;
|
37
43
|
}
|
38
44
|
isKms() {
|
39
|
-
return [ChartAccountsListEnum.
|
45
|
+
return [ChartAccountsListEnum.KMS_TRAVELLED, BusinessChartAccountsEnum.KMS_TRAVELLED].includes(this.id);
|
40
46
|
}
|
41
47
|
/**
|
42
48
|
* special type used for just pre-paying tax to the ATO, uses on tax summary
|
@@ -54,7 +60,7 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
54
60
|
* Check if chart accounts id is related for 'Motor Vehicles' category
|
55
61
|
*/
|
56
62
|
isVehicles() {
|
57
|
-
return [ChartAccountsListEnum.
|
63
|
+
return [ChartAccountsListEnum.VEHICLES, BusinessChartAccountsEnum.VEHICLES].includes(this.id);
|
58
64
|
}
|
59
65
|
/**
|
60
66
|
* Check if chart accounts id is related for 'Interest Earned' category
|
@@ -143,10 +149,10 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
143
149
|
return this.isVehicleLoanInterest() || this.isVehicleLoanPrinciple();
|
144
150
|
}
|
145
151
|
isVehicleLoanPrinciple() {
|
146
|
-
return [ChartAccountsListEnum.VEHICLE_LOAN_PRINCIPAL,
|
152
|
+
return [ChartAccountsListEnum.VEHICLE_LOAN_PRINCIPAL, BusinessChartAccountsEnum.VEHICLE_LOAN_PRINCIPAL].includes(this.id);
|
147
153
|
}
|
148
154
|
isVehicleLoanInterest() {
|
149
|
-
return [ChartAccountsListEnum.VEHICLE_LOAN_INTEREST,
|
155
|
+
return [ChartAccountsListEnum.VEHICLE_LOAN_INTEREST, BusinessChartAccountsEnum.VEHICLE_LOAN_INTEREST].includes(this.id);
|
150
156
|
}
|
151
157
|
/**
|
152
158
|
* Get chart accounts value for current financial year
|
@@ -163,11 +169,11 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
163
169
|
/**
|
164
170
|
* no way to check how much used for work/sole, so we let user adjust it
|
165
171
|
* except vehicle expense, which is equal to vehicleClaim.workUsage
|
166
|
-
* except when taxablePercent=0, but not
|
172
|
+
* except when taxablePercent=0, but not ENTERTAINMENT
|
167
173
|
*/
|
168
174
|
isClaimPercentEditable() {
|
169
175
|
return ((this.isWorkExpense() || this.isSoleExpense()) && !this.isVehicleExpense() && this.taxablePercent > 0)
|
170
|
-
|| this.id ===
|
176
|
+
|| this.id === BusinessChartAccountsEnum.ENTERTAINMENT;
|
171
177
|
}
|
172
178
|
/**
|
173
179
|
* get label for transaction tax field depended on selected chart account.
|
@@ -222,7 +228,7 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
222
228
|
return this.id === ChartAccountsListEnum.DIVIDENDS;
|
223
229
|
}
|
224
230
|
isHomeOfficeWorkHours() {
|
225
|
-
return this.id === ChartAccountsListEnum.
|
231
|
+
return this.id === ChartAccountsListEnum.HOME_OFFICE_HOURS;
|
226
232
|
}
|
227
233
|
/**
|
228
234
|
* income requiring extra data like adjustments/payer/etc
|
@@ -246,4 +252,4 @@ __decorate([
|
|
246
252
|
Transform(() => null, { toPlainOnly: true }),
|
247
253
|
Expose()
|
248
254
|
], ChartAccounts.prototype, "values", void 0);
|
249
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxJQUFJLGlCQUFpQixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDbkcsT0FBTyxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDNUQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDaEUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDckUsT0FBTyxFQUNMLHVDQUF1QyxFQUN2Qyx5QkFBeUIsRUFDekIsNEJBQTRCLEVBQzVCLHFDQUFxQyxFQUNyQywrQkFBK0IsRUFDL0IsbUNBQW1DLEVBQ25DLHFCQUFxQixFQUN0QixNQUFNLGdCQUFnQixDQUFDO0FBQ3hCLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQzlFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNsRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RCxPQUF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zVHJhbnNmZXIoKTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdGhpcy5pZCA9PT0gQ2hhcnRBY2NvdW50c0xpc3RFbnVtLlRSQU5TRkVSO1xyXG4gIH1cclxuXHJcbiAgaXNEaXZpZGVuZHMoKTogYm9vbGVhbiB7XHJcbiAgICByZXR1cm4gdGhpcy5pZCA9PT0gQ2hhcnRBY2NvdW50c0xpc3RFbnVtLkRJVklERU5EUztcclxuICB9XHJcblxyXG4gIGlzSG9tZU9mZmljZVdvcmtIb3VycygpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0aGlzLmlkID09PSBDaGFydEFjY291bnRzTGlzdEVudW0uSE9NRV9PRkZJQ0VfSE9VUlM7XHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKiBpbmNvbWUgcmVxdWlyaW5nIGV4dHJhIGRhdGEgbGlrZSBhZGp1c3RtZW50cy9wYXllci9ldGNcclxuICAgKi9cclxuICBpc0luY29tZVdpdGhNZXRhKCk6IGJvb2xlYW4ge1xyXG4gICAgaWYgKCF0aGlzLmlzSW5jb21lKCkgfHwgdGhpcy5pc1NvbGUoKSkge1xyXG4gICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIHRoaXMuaXNXb3JrKCkgfHwgdGhpcy5pc1RheGFibGUoKTtcclxuICB9XHJcbn1cclxuIl19
|
@@ -20,4 +20,4 @@ export class Endpoint {
|
|
20
20
|
return new RegExp(`^${this.method} \.\*${this.pattern}$`);
|
21
21
|
}
|
22
22
|
}
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5kcG9pbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2VuZHBvaW50L2VuZHBvaW50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