taxtank-core 0.33.47 → 0.33.48
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/home-office/home-office-claim.collection.mjs +7 -0
- package/esm2022/src/lib/collections/home-office/index.mjs +2 -0
- package/esm2022/src/lib/collections/index.mjs +2 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +10 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +6 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +1 -2
- package/esm2022/src/lib/forms/abstract.form.mjs +3 -3
- package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +25 -0
- package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +3 -3
- package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +2 -2
- package/esm2022/src/lib/forms/home-office/index.mjs +2 -1
- package/esm2022/src/lib/forms/transaction/work/work-expense.form.mjs +15 -2
- package/esm2022/src/lib/models/bank/bank-transaction-chart-data.mjs +2 -3
- package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +21 -2
- package/esm2022/src/lib/models/dictionary/dictionary.mjs +3 -2
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +5 -1
- package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +1 -1
- package/esm2022/src/lib/models/home-office/home-office-claim.mjs +31 -11
- package/esm2022/src/lib/models/transaction/transaction.mjs +5 -2
- package/esm2022/src/lib/services/data.service.mjs +2 -2
- package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +4 -4
- package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +2 -2
- package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +8 -1
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +24 -5
- package/esm2022/src/lib/validators/current-fin-year.validator.mjs +3 -2
- package/fesm2022/taxtank-core.mjs +147 -39
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/home-office/home-office-claim.collection.d.ts +5 -0
- package/src/lib/collections/home-office/index.d.ts +1 -0
- package/src/lib/collections/index.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +10 -1
- package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +6 -1
- package/src/lib/db/Enums/chart-accounts/index.d.ts +0 -1
- package/src/lib/forms/abstract.form.d.ts +1 -1
- package/src/lib/forms/home-office/home-office-calculator.form.d.ts +8 -0
- package/src/lib/forms/home-office/home-office-log.form.d.ts +1 -1
- package/src/lib/forms/home-office/index.d.ts +1 -0
- package/src/lib/forms/transaction/work/work-expense.form.d.ts +4 -2
- package/src/lib/models/bank/bank-transaction-chart-data.d.ts +2 -2
- package/src/lib/models/chart-accounts/chart-accounts.d.ts +2 -0
- package/src/lib/models/dictionary/dictionary.d.ts +2 -2
- package/src/lib/models/home-office/home-office-claim.d.ts +8 -4
- package/src/lib/models/home-office/home-office-claim.interface.d.ts +5 -2
- package/src/lib/models/transaction/transaction.d.ts +2 -1
- package/src/lib/services/http/home-office/home-office-claim.service.d.ts +4 -4
- package/src/lib/services/http/home-office/home-office-log.service.d.ts +1 -1
- package/src/lib/services/http/rest/rest-old.service.d.ts +4 -0
- package/src/lib/services/http/rest/rest.service.d.ts +1 -0
- package/esm2022/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.mjs +0 -18
- package/src/lib/db/Enums/chart-accounts/home-office-chart-accounts.enum.d.ts +0 -16
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Collection } from '../collection';
|
2
|
+
export class HomeOfficeClaimCollection extends Collection {
|
3
|
+
findByBusiness(business) {
|
4
|
+
return business ? this.findBy('business.id', business.id) : this.findBy('business', null);
|
5
|
+
}
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3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0 +1,2 @@
|
|
1
|
+
export * from './home-office-claim.collection';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtY2xhaW0uY29sbGVjdGlvbic7XG4iXX0=
|
@@ -33,4 +33,5 @@ export * from './holding';
|
|
33
33
|
export * from './asset-sale.collection';
|
34
34
|
export * from './user/user.collection';
|
35
35
|
export * from './chart-accounts';
|
36
|
-
|
36
|
+
export * from './home-office';
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvY29sbGVjdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUNBQXVDO0FBQ3ZDLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMseUJBQXlCLENBQUM7QUFFeEMsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQ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9ydCAqIGZyb20gJy4vaW5jb21lLXNvdXJjZSc7XG5leHBvcnQgKiBmcm9tICcuL3RheC1yZXZpZXcuY29sbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3VzZXItZXZlbnQtc2V0dGluZy5jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdXNlci1ldmVudC10eXBlLWNvbGxlY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vYXNzZXQtc2FsZS5jb2xsZWN0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi91c2VyL3VzZXIuY29sbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UnO1xuIl19
|
@@ -35,5 +35,14 @@ export var BusinessChartAccountsEnum;
|
|
35
35
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["PAYG_INSTALLMENTS"] = 878] = "PAYG_INSTALLMENTS";
|
36
36
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTEREST_EARNED"] = 879] = "INTEREST_EARNED";
|
37
37
|
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_HOURS"] = 888] = "HOME_OFFICE_HOURS";
|
38
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["ELECTRICITY_AND_GAS"] = 892] = "ELECTRICITY_AND_GAS";
|
39
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_CLEANING"] = 893] = "HOME_OFFICE_CLEANING";
|
40
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["INTERNET"] = 705] = "INTERNET";
|
41
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["TELEPHONE"] = 11860] = "TELEPHONE";
|
42
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["MOBILE_PHONE"] = 719] = "MOBILE_PHONE";
|
43
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RENT"] = 889] = "HOME_OFFICE_RENT";
|
44
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_LOAN"] = 890] = "HOME_OFFICE_LOAN";
|
45
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_RATES"] = 891] = "HOME_OFFICE_RATES";
|
46
|
+
BusinessChartAccountsEnum[BusinessChartAccountsEnum["HOME_OFFICE_OTHER"] = 894] = "HOME_OFFICE_OTHER";
|
38
47
|
})(BusinessChartAccountsEnum || (BusinessChartAccountsEnum = {}));
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVzaW5lc3MtY2hhcnQtYWNjb3VudHMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9FbnVtcy9jaGFydC1hY2NvdW50cy9idXNpbmVzcy1jaGFydC1hY2NvdW50cy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLHlCQTZDWDtBQTdDRCxXQUFZLHlCQUF5QjtJQUNuQyx1R0FBd0IsQ0FBQTtJQUN4QixtSEFBOEIsQ0FBQTtJQUM5QixpSEFBNkIsQ0FBQTtJQUM3Qiw2RUFBVyxDQUFBO0lBQ1gsK0VBQVksQ0FBQTtJQUNaLHlGQUFpQixDQUFBO0lBQ2pCLHVGQUFnQixDQUFBO0lBQ2hCLHFHQUF1QixDQUFBO0lBQ3ZCLDZHQUEyQixDQUFBO0lBQzNCLCtIQUFvQyxDQUFBO0lBQ3BDLHlIQUFpQyxDQUFBO0lBQ2pDLHVJQUF3QyxDQUFBO0lBQ3hDL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VEhFUl9BU1NFU1NBQkxFX1BBWU1FTlRTID0gODYxLFxuICBKT0JLRUVQRVIgPSA4NjIsXG4gIEdTVF9SRUZVTkQgPSA4NjQsXG4gIFBBWUdfSU5TVEFMTE1FTlRTID0gODc4LFxuICBJTlRFUkVTVF9FQVJORUQgPSA4NzksXG4gIEhPTUVfT0ZGSUNFX0hPVVJTID0gODg4LFxuICBFTEVDVFJJQ0lUWV9BTkRfR0FTID0gODkyLFxuICBIT01FX09GRklDRV9DTEVBTklORyA9IDg5MyxcbiAgSU5URVJORVQgPSA3MDUsXG4gIFRFTEVQSE9ORSA9IDExODYwLFxuICBNT0JJTEVfUEhPTkUgPSA3MTksXG4gIEhPTUVfT0ZGSUNFX1JFTlQgPSA4ODksXG4gIEhPTUVfT0ZGSUNFX0xPQU4gPSA4OTAsXG4gIEhPTUVfT0ZGSUNFX1JBVEVTID0gODkxLFxuICBIT01FX09GRklDRV9PVEhFUiA9IDg5NCxcbn1cbiJdfQ==
|
@@ -52,5 +52,10 @@ export var ChartAccountsListEnum;
|
|
52
52
|
ChartAccountsListEnum[ChartAccountsListEnum["PLATFORM_FEES"] = 857] = "PLATFORM_FEES";
|
53
53
|
ChartAccountsListEnum[ChartAccountsListEnum["AUSTRALIAN_GOVERNMENT_SPECIAL_PAYMENTS"] = 871] = "AUSTRALIAN_GOVERNMENT_SPECIAL_PAYMENTS";
|
54
54
|
ChartAccountsListEnum[ChartAccountsListEnum["FHSS"] = 872] = "FHSS";
|
55
|
+
ChartAccountsListEnum[ChartAccountsListEnum["MOBILE_PHONE"] = 90] = "MOBILE_PHONE";
|
56
|
+
ChartAccountsListEnum[ChartAccountsListEnum["INTERNET"] = 94] = "INTERNET";
|
57
|
+
ChartAccountsListEnum[ChartAccountsListEnum["ELECTRICITY_AND_GAS"] = 234] = "ELECTRICITY_AND_GAS";
|
58
|
+
ChartAccountsListEnum[ChartAccountsListEnum["TELEPHONE"] = 255] = "TELEPHONE";
|
59
|
+
ChartAccountsListEnum[ChartAccountsListEnum["HOME_OFFICE_CLEANING"] = 11861] = "HOME_OFFICE_CLEANING";
|
55
60
|
})(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMtbGlzdC5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL0VudW1zL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLWxpc3QuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxxQkEwRFg7QUExREQsV0FBWSxxQkFBcUI7SUFDL0IsdUZBQW1CLENBQUE7SUFDbkIsbUhBQWlDLENBQUE7SUFDakMsb0hBQWtDLENBQUE7SUFDbEMsOEVBQWUsQ0FBQTtJQUNmLDBGQUFxQixDQUFBO0lBQ3JCLHdGQUFvQixDQUFBO0lBQ3BCLG9GQUFrQixDQUFBO0lBQ2xCLDBFQUFhLENBQUE7SUFDYixnR0FBd0IsQ0FBQTtJQUN4QixvR0FBMEIsQ0FBQTtJQUMxQixzR0FBMkIsQ0FBQTtJQUMzQiw2RkFBdUIsQ0FBQTtJQUN2QixtR0FBMEIsQ0FBQTtJQUMxQix1RkFBb0IsQ0FBQTtJQUNwQix5R0FBNkIsQ0FBQTtJQUM3QiwyRkFBc0IsQ0FBQTtJQUN0Qiw2R0FBK0IsQ0FBQTtJQUMvQixpSkFBaUQsQ0FBQTtJQUNqRCwyR0FBOEIsQ0FBQTtJQUM5QixtRkFBa0IsQ0FBQTtJQUNsQixtR0FBMEIsQ0FBQTtJQUMxQixxRkFBbUIsQ0FBQTtJQUNuQixpR0FBeUIsQ0FBQTtJQUN6QiwyRkF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ElBTl9HT1ZFUk5NRU5UX1NQRUNJQUxfUEFZTUVOVFMgPSA4NzEsXG4gIEZIU1MgPSA4NzIsXG4gIE1PQklMRV9QSE9ORSA9IDkwLFxuICBJTlRFUk5FVCA9IDk0LFxuICBFTEVDVFJJQ0lUWV9BTkRfR0FTID0gMjM0LFxuICBURUxFUEhPTkUgPSAyNTUsXG4gIEhPTUVfT0ZGSUNFX0NMRUFOSU5HID0gMTE4NjEsXG59XG4iXX0=
|
@@ -14,5 +14,4 @@ export * from './chart-accounts-type.enum';
|
|
14
14
|
export * from './chart-accounts-keep-sign.enum';
|
15
15
|
export * from './chart-accounts-holding-untaxed-income-list.enum';
|
16
16
|
export * from './chart-accounts-property-adjustments-list.enum';
|
17
|
-
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvY2hhcnQtYWNjb3VudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyw4Q0FBOEMsQ0FBQztBQUM3RCxjQUFjLHVDQUF1QyxDQUFDO0FBQ3RELGNBQWMsNENBQTRDLENBQUM7QUFDM0QsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsZ0RBQWdELENBQUM7QUFDL0QsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQU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N0LmVudW0nO1xuZXhwb3J0ICogZnJvbSAnLi9jaGFydC1hY2NvdW50cy1wcm9wZXJ0eS1hZGp1c3RtZW50cy1saXN0LmVudW0nO1xuIl19
|
@@ -36,8 +36,8 @@ export class AbstractForm extends FormGroup {
|
|
36
36
|
get currentValue() {
|
37
37
|
return this.createModelInstance(Object.assign({}, this.model, this.getRawValue()));
|
38
38
|
}
|
39
|
-
toggleEnabledState() {
|
40
|
-
|
39
|
+
toggleEnabledState(control) {
|
40
|
+
control.enabled ? control.disable() : control.enable();
|
41
41
|
}
|
42
42
|
/**
|
43
43
|
* Check validation and return a new instance of generic model.
|
@@ -145,4 +145,4 @@ export class AbstractForm extends FormGroup {
|
|
145
145
|
});
|
146
146
|
}
|
147
147
|
}
|
148
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9hYnN0cmFjdC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBMEUsU0FBUyxFQUFlLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzVJLE9BQU8sRUFBRSxZQUFZLEVBQVEsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sT0FBTyxNQUFNLGdCQUFnQixDQUFDO0FBU3JDOzs7OztHQUtHO0FBQ0gsTUFBTSxPQUFnQixZQUE0RSxTQUFRLFNBQW1CO2FBQ3BILG1CQUFjLEdBQUcsRUFBRSxBQUFMLENBQU07SUFtQjNCLFlBQ0UsUUFBa0I7SUFDbEIsdURBQXVEO0lBQ3ZELEtBQWEsRUFDYixlQUE2RS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FtdKTogdm9pZCB7XG4gICAgaWYgKCFjb250cm9scy5sZW5ndGgpIHtcbiAgICAgIHJldHVybiBzdXBlci5lbmFibGUob3B0cyk7XG4gICAgfVxuXG4gICAgY29udHJvbHMuZm9yRWFjaChjb250cm9sID0+IHtcbiAgICAgIGNvbnRyb2wuZW5hYmxlKG9wdHMpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
2
|
+
import { plainToClass } from 'class-transformer';
|
3
|
+
import { AbstractForm } from '../abstract.form';
|
4
|
+
import { HomeOfficeClaim } from '../../models';
|
5
|
+
import round from 'lodash/round';
|
6
|
+
export class HomeOfficeCalculatorForm extends AbstractForm {
|
7
|
+
constructor(claim = plainToClass(HomeOfficeClaim, {})) {
|
8
|
+
super({
|
9
|
+
homeArea: new FormControl(claim.homeArea, [Validators.required]),
|
10
|
+
officeArea: new FormControl({ value: claim.officeArea, disabled: !!claim.dedicatedOffice }, [Validators.required]),
|
11
|
+
dedicatedOffice: new FormControl(claim.dedicatedOffice, [Validators.required]),
|
12
|
+
}, claim);
|
13
|
+
this.listenEvents();
|
14
|
+
}
|
15
|
+
listenEvents() {
|
16
|
+
this.get('dedicatedOffice').valueChanges.subscribe(() => {
|
17
|
+
this.toggleEnabledState(this.get('officeArea'));
|
18
|
+
});
|
19
|
+
}
|
20
|
+
submit() {
|
21
|
+
const officePercent = this.value.dedicatedOffice ? 100 : round(this.value.officeArea * 100 / this.value.homeArea, 2);
|
22
|
+
return super.submit({ officePercent });
|
23
|
+
}
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2FsY3VsYXRvci5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2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WNlUGVyY2VudCB9KTtcbiAgfVxufVxuIl19
|
@@ -13,7 +13,7 @@ export class HomeOfficeClaimForm extends AbstractForm {
|
|
13
13
|
internet: new FormControl(claim.internet, [Validators.required, Validators.min(0), Validators.max(100)]),
|
14
14
|
telephone: new FormControl(claim.telephone, [Validators.required, Validators.min(0), Validators.max(100)]),
|
15
15
|
mobile: new FormControl(claim.mobile, [Validators.required, Validators.min(0), Validators.max(100)]),
|
16
|
-
|
16
|
+
officePercent: new FormControl(claim.officePercent, [Validators.required, Validators.min(0), Validators.max(100)]),
|
17
17
|
}, claim);
|
18
18
|
this.listenEvents();
|
19
19
|
this.switchMethod(claim.method);
|
@@ -41,7 +41,7 @@ export class HomeOfficeClaimForm extends AbstractForm {
|
|
41
41
|
return [this.controls.electricityAndGas, this.controls.cleaning, this.controls.internet, this.controls.telephone, this.controls.mobile];
|
42
42
|
}
|
43
43
|
get occupancyControls() {
|
44
|
-
return [...this.actualControls, this.controls.
|
44
|
+
return [...this.actualControls, this.controls.officePercent];
|
45
45
|
}
|
46
46
|
}
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9ob21lLW9mZmljZS9ob21lLW9mZmljZS1jbGFpbS5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzFFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0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R1cm4gWy4uLnRoaXMuYWN0dWFsQ29udHJvbHMsIHRoaXMuY29udHJvbHMub2ZmaWNlUGVyY2VudF07XG4gIH1cbn1cbiJdfQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormControl, Validators } from '@angular/forms';
|
2
2
|
import { plainToClass } from 'class-transformer';
|
3
3
|
import { AbstractForm } from '../abstract.form';
|
4
|
-
import { HomeOfficeLog } from '../../models
|
4
|
+
import { HomeOfficeLog } from '../../models';
|
5
5
|
import { currentFinYearValidator } from '../../validators';
|
6
6
|
export class HomeOfficeLogForm extends AbstractForm {
|
7
7
|
constructor(log = plainToClass(HomeOfficeLog, {})) {
|
@@ -12,4 +12,4 @@ export class HomeOfficeLogForm extends AbstractForm {
|
|
12
12
|
}, log);
|
13
13
|
}
|
14
14
|
}
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaG9tZS1vZmZpY2UtbG9nLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN6RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDN0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFM0QsTUFBTSxP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ZW5kcyBBYnN0cmFjdEZvcm08SG9tZU9mZmljZUxvZz4ge1xuICBjb25zdHJ1Y3Rvcihsb2cgPSBwbGFpblRvQ2xhc3MoSG9tZU9mZmljZUxvZywge30pKSB7XG4gICAgc3VwZXIoe1xuICAgICAgZGF0ZTogbmV3IEZvcm1Db250cm9sKGxvZy5kYXRlLCBbVmFsaWRhdG9ycy5yZXF1aXJlZCwgY3VycmVudEZpblllYXJWYWxpZGF0b3IoKV0pLFxuICAgICAgaG91cnM6IG5ldyBGb3JtQ29udHJvbChsb2cuaG91cnMsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLm1pbigwKSwgVmFsaWRhdG9ycy5tYXgoNTAwMCldKSxcbiAgICAgIGRlc2NyaXB0aW9uOiBuZXcgRm9ybUNvbnRyb2wobG9nLmRlc2NyaXB0aW9uLCBbVmFsaWRhdG9ycy5yZXF1aXJlZF0pLFxuICAgIH0sIGxvZyk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export * from './home-office-claim.form';
|
2
2
|
export * from './home-office-log.form';
|
3
|
-
|
3
|
+
export * from './home-office-calculator.form';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaG9tZS1vZmZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWNsYWltLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZS1sb2cuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWNhbGN1bGF0b3IuZm9ybSc7XG4iXX0=
|
@@ -2,8 +2,9 @@ import { WorkTransactionForm } from './work-transaction.form';
|
|
2
2
|
import { Collection } from '../../../collections';
|
3
3
|
import { ChartAccountsMetaFieldListEnum } from '../../../db/Enums';
|
4
4
|
export class WorkExpenseForm extends WorkTransactionForm {
|
5
|
-
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
5
|
+
constructor(transaction, registeredForGst, allocations, homeOfficeClaim, controls = {}) {
|
6
6
|
super(transaction, registeredForGst, allocations, controls);
|
7
|
+
this.homeOfficeClaim = homeOfficeClaim;
|
7
8
|
// amount set automatically for chartAccounts with hours meta field
|
8
9
|
if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
|
9
10
|
this.get('amount').disable();
|
@@ -12,6 +13,7 @@ export class WorkExpenseForm extends WorkTransactionForm {
|
|
12
13
|
}
|
13
14
|
listenEvents() {
|
14
15
|
this.watchChartAccountsMetaFields();
|
16
|
+
this.watchChartAccounts();
|
15
17
|
}
|
16
18
|
watchChartAccountsMetaFields() {
|
17
19
|
this.get('metaFields').valueChanges.subscribe((metaFields) => {
|
@@ -29,5 +31,16 @@ export class WorkExpenseForm extends WorkTransactionForm {
|
|
29
31
|
this.get('amountWithGST').setValue(amount);
|
30
32
|
});
|
31
33
|
}
|
34
|
+
watchChartAccounts() {
|
35
|
+
super.watchChartAccounts();
|
36
|
+
this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
37
|
+
if (!chartAccounts.isHomeOfficeExpense() || !this.homeOfficeClaim) {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
const claims = this.homeOfficeClaim.getChartAccountsClaims();
|
41
|
+
this.get('claimPercent').patchValue(claims.get(chartAccounts.id));
|
42
|
+
this.get('claimPercent').disable();
|
43
|
+
});
|
44
|
+
}
|
32
45
|
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hpcy5nZXQoJ2Ftb3VudFdpdGhHU1QnKS5zZXRWYWx1ZShhbW91bnQpO1xuICAgIH0pO1xuICB9XG5cbiAgd2F0Y2hDaGFydEFjY291bnRzKCkge1xuICAgIHN1cGVyLndhdGNoQ2hhcnRBY2NvdW50cygpO1xuXG4gICAgdGhpcy5nZXQoJ2NoYXJ0QWNjb3VudHMnKS52YWx1ZUNoYW5nZXMuc3Vic2NyaWJlKChjaGFydEFjY291bnRzOiBDaGFydEFjY291bnRzKSA9PiB7XG4gICAgICBpZiAoIWNoYXJ0QWNjb3VudHMuaXNIb21lT2ZmaWNlRXhwZW5zZSgpIHx8ICF0aGlzLmhvbWVPZmZpY2VDbGFpbSkge1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG5cbiAgICAgIGNvbnN0IGNsYWltcyA9IHRoaXMuaG9tZU9mZmljZUNsYWltLmdldENoYXJ0QWNjb3VudHNDbGFpbXMoKTtcblxuICAgICAgdGhpcy5nZXQoJ2NsYWltUGVyY2VudCcpLnBhdGNoVmFsdWUoY2xhaW1zLmdldChjaGFydEFjY291bnRzLmlkKSk7XG4gICAgICB0aGlzLmdldCgnY2xhaW1QZXJjZW50JykuZGlzYWJsZSgpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { MonthNumberEnum } from '../financial-year
|
2
|
-
import { MonthNameShortEnum } from '../financial-year/month-name-short.enum';
|
1
|
+
import { MonthNameShortEnum, MonthNumberEnum } from '../financial-year';
|
3
2
|
import cloneDeep from 'lodash/cloneDeep';
|
4
3
|
/**
|
5
4
|
* bank transactions collection UI class with frontend specific data
|
@@ -97,4 +96,4 @@ export class BankTransactionChartData {
|
|
97
96
|
return filteredChartData;
|
98
97
|
}
|
99
98
|
}
|
100
|
-
//# sourceMappingURL=data:application/json;base64,
|
99
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuay10cmFuc2FjdGlvbi1j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1xuXG4gICAgICAgIH0sIDApO1xuXG4gICAgICAgIGNoYXJ0RGF0YVswXS5kYXRhLnB1c2goe1xuICAgICAgICAgIGxhYmVsOiBNb250aE5hbWVTaG9ydEVudW1ba2V5XSxcbiAgICAgICAgICB2YWx1ZTogYmFsYW5jZUZvck1vbnRoXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBjaGFydERhdGE7XG4gIH1cblxuICAvKipcbiAgICogZmlsdGVyIGNoYXJ0IGRhdGEgZm9yIHBhc3NlZCBtb250aHNcbiAgICovXG4gIHByaXZhdGUgZmlsdGVyQ2hhcnREYXRhQnlNb250aHMobW9udGhzOiBudW1iZXJbXSwgY2hhcnREYXRhOiBJQ2hhcnREYXRhW10pOiBJQ2hhcnREYXRhW10ge1xuICAgIGNvbnN0IG1vbnRoc05hbWVzOiBzdHJpbmdbXSA9IG1vbnRocy5tYXAoKG1vbnRoOiBudW1iZXIpID0+IE1vbnRoTnVtYmVyRW51bVttb250aF0pLm1hcCgoa2V5OiBzdHJpbmcpID0+IE1vbnRoTmFtZVNob3J0RW51bVtrZXldKTtcbiAgICBjb25zdCBmaWx0ZXJlZENoYXJ0RGF0YTogSUNoYXJ0RGF0YVtdID0gY2xvbmVEZWVwKGNoYXJ0RGF0YSk7XG4gICAgZmlsdGVyZWRDaGFydERhdGEuZm9yRWFjaCgoY2hhcnREYXRhSXRlbTogSUNoYXJ0RGF0YSkgPT4ge1xuICAgICAgY2hhcnREYXRhSXRlbS5kYXRhID0gY2hhcnREYXRhSXRlbS5kYXRhLmZpbHRlcigoc2VyaWU6IElDaGFydFNlcmllKSA9PiBtb250aHNOYW1lcy5pbmNsdWRlcyhzZXJpZS5sYWJlbCkpO1xuICAgIH0pO1xuICAgIHJldHVybiBmaWx0ZXJlZENoYXJ0RGF0YTtcbiAgfVxufVxuIl19
|
@@ -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 { BusinessChartAccountsEnum, 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';
|
@@ -23,6 +23,22 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
23
23
|
BusinessChartAccountsEnum.HOME_OFFICE_HOURS,
|
24
24
|
BusinessChartAccountsEnum.KMS_TRAVELLED,
|
25
25
|
]; }
|
26
|
+
static { this.homeOfficeList = [
|
27
|
+
ChartAccountsListEnum.MOBILE_PHONE,
|
28
|
+
ChartAccountsListEnum.INTERNET,
|
29
|
+
ChartAccountsListEnum.ELECTRICITY_AND_GAS,
|
30
|
+
ChartAccountsListEnum.TELEPHONE,
|
31
|
+
ChartAccountsListEnum.HOME_OFFICE_CLEANING,
|
32
|
+
BusinessChartAccountsEnum.ELECTRICITY_AND_GAS,
|
33
|
+
BusinessChartAccountsEnum.HOME_OFFICE_CLEANING,
|
34
|
+
BusinessChartAccountsEnum.INTERNET,
|
35
|
+
BusinessChartAccountsEnum.TELEPHONE,
|
36
|
+
BusinessChartAccountsEnum.MOBILE_PHONE,
|
37
|
+
BusinessChartAccountsEnum.HOME_OFFICE_RENT,
|
38
|
+
BusinessChartAccountsEnum.HOME_OFFICE_LOAN,
|
39
|
+
BusinessChartAccountsEnum.HOME_OFFICE_RATES,
|
40
|
+
BusinessChartAccountsEnum.HOME_OFFICE_OTHER,
|
41
|
+
]; }
|
26
42
|
/**
|
27
43
|
* Return name as string
|
28
44
|
*/
|
@@ -227,6 +243,9 @@ export class ChartAccounts extends ChartAccountsBase {
|
|
227
243
|
isDividends() {
|
228
244
|
return this.id === ChartAccountsListEnum.DIVIDENDS;
|
229
245
|
}
|
246
|
+
isHomeOfficeExpense() {
|
247
|
+
return ChartAccounts.homeOfficeList.includes(this.id);
|
248
|
+
}
|
230
249
|
isHomeOfficeWorkHours() {
|
231
250
|
return this.id === ChartAccountsListEnum.HOME_OFFICE_HOURS;
|
232
251
|
}
|
@@ -252,4 +271,4 @@ __decorate([
|
|
252
271
|
Transform(() => null, { toPlainOnly: true }),
|
253
272
|
Expose()
|
254
273
|
], ChartAccounts.prototype, "values", void 0);
|
255
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtYWNjb3VudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2NoYXJ0LWFjY291bnRzL2NoYXJ0LWFjY291bnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsYUFBYSxJQUFJLGlCQUFpQixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDbkcsT0FBTyxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDNUQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDaEUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1B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