taxtank-core 0.28.104 → 0.28.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taxtank-core.umd.js +1324 -929
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.js +17 -0
- package/esm2015/lib/db/Enums/index.js +2 -1
- package/esm2015/lib/forms/depreciation/depreciation.form.js +35 -0
- package/esm2015/lib/forms/depreciation/index.js +2 -0
- package/esm2015/lib/forms/form-validations.enum.js +12 -0
- package/esm2015/lib/forms/index.js +4 -1
- package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +16 -14
- package/esm2015/lib/forms/transaction/index.js +4 -0
- package/esm2015/lib/forms/transaction/messages.enum.js +5 -0
- package/esm2015/lib/forms/transaction/transaction-base.form.js +105 -0
- package/esm2015/lib/forms/transaction/transaction.form.js +12 -0
- package/esm2015/lib/forms/transaction/work-income.form.js +119 -0
- package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
- package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
- package/esm2015/lib/interceptors/interceptors.module.js +4 -4
- package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
- package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
- package/esm2015/lib/interceptors/user-switcher-interceptor.js +15 -5
- package/esm2015/lib/models/chart-accounts/chart-accounts.js +37 -1
- package/esm2015/lib/models/chart-accounts/index.js +9 -0
- package/esm2015/lib/models/document/index.js +3 -1
- package/esm2015/lib/models/income-source/salary-forecast.js +4 -1
- package/esm2015/lib/models/index.js +3 -1
- package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +14 -31
- package/esm2015/lib/models/transaction/index.js +7 -0
- package/esm2015/lib/models/transaction/transaction.js +2 -3
- package/esm2015/lib/models/vehicle/vehicle-logbook.js +2 -1
- package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
- package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
- package/esm2015/lib/services/asset/assets.service.js +3 -3
- package/esm2015/lib/services/auth/auth.service.js +3 -3
- package/esm2015/lib/services/auth/jwt.service.js +3 -3
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
- package/esm2015/lib/services/event/sse.service.js +3 -3
- package/esm2015/lib/services/export/export-formatter.service.js +3 -3
- package/esm2015/lib/services/header-title/header-title.service.js +3 -3
- package/esm2015/lib/services/http/address/address.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank.service.js +13 -9
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +6 -7
- package/esm2015/lib/services/http/chat/chat.service.js +3 -3
- package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
- package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
- package/esm2015/lib/services/http/document/document.service.js +3 -3
- package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/firm.service.js +3 -3
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
- package/esm2015/lib/services/http/loan/loan.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
- package/esm2015/lib/services/http/property/property.service.js +3 -3
- package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest.service.js +3 -3
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
- package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
- package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +4 -34
- package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
- package/esm2015/lib/services/http/user/user.service.js +3 -3
- package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
- package/esm2015/lib/services/intercom/intercom.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
- package/esm2015/lib/services/preloader/preloader.service.js +3 -3
- package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
- package/esm2015/lib/services/toast/toast.service.js +3 -3
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/user/user-switcher.service.js +3 -3
- package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
- package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
- package/esm2015/lib/tt-core.module.js +4 -4
- package/esm2015/lib/validators/current-fin-year.validator.js +14 -0
- package/esm2015/lib/validators/file.validator.js +27 -0
- package/esm2015/lib/validators/index.js +3 -1
- package/fesm2015/taxtank-core.js +1259 -925
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.d.ts +15 -0
- package/lib/db/Enums/index.d.ts +1 -0
- package/lib/forms/depreciation/depreciation.form.d.ts +5 -0
- package/lib/forms/depreciation/index.d.ts +1 -0
- package/lib/forms/form-validations.enum.d.ts +9 -0
- package/lib/forms/index.d.ts +3 -0
- package/lib/forms/transaction/index.d.ts +3 -0
- package/lib/forms/transaction/messages.enum.d.ts +3 -0
- package/lib/forms/transaction/transaction-base.form.d.ts +28 -0
- package/lib/forms/transaction/transaction.form.d.ts +8 -0
- package/lib/forms/transaction/work-income.form.d.ts +21 -0
- package/lib/models/chart-accounts/chart-accounts.d.ts +8 -0
- package/lib/models/chart-accounts/index.d.ts +8 -0
- package/lib/models/document/index.d.ts +2 -0
- package/lib/models/income-source/salary-forecast.d.ts +1 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +9 -14
- package/lib/models/transaction/index.d.ts +6 -0
- package/lib/models/transaction/transaction.d.ts +2 -2
- package/lib/services/http/bank/bank.service.d.ts +9 -5
- package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +1 -2
- package/lib/services/http/transaction/transaction.service.d.ts +0 -7
- package/lib/validators/current-fin-year.validator.d.ts +5 -0
- package/lib/validators/file.validator.d.ts +6 -0
- package/lib/validators/index.d.ts +2 -0
- package/package.json +1 -1
package/fesm2015/taxtank-core.js
CHANGED
|
@@ -73,9 +73,9 @@ class CorelogicService {
|
|
|
73
73
|
}));
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
77
|
-
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
76
|
+
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
+
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, providedIn: 'root' });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, decorators: [{
|
|
79
79
|
type: Injectable,
|
|
80
80
|
args: [{
|
|
81
81
|
providedIn: 'root'
|
|
@@ -115,9 +115,9 @@ class CorelogicInterceptor {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
119
|
-
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
118
|
+
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
119
|
+
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicInterceptor, decorators: [{
|
|
121
121
|
type: Injectable
|
|
122
122
|
}], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
|
|
123
123
|
type: Inject,
|
|
@@ -154,9 +154,9 @@ class FinancialYearInterceptor {
|
|
|
154
154
|
return next.handle(clonedReq);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
158
|
-
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
157
|
+
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
158
|
+
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor });
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
|
|
160
160
|
type: Injectable
|
|
161
161
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
162
162
|
type: Inject,
|
|
@@ -187,9 +187,9 @@ class JwtService extends JwtHelperService {
|
|
|
187
187
|
return this.getUser().id === userId;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
191
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
190
|
+
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
191
|
+
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, providedIn: 'root' });
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtService, decorators: [{
|
|
193
193
|
type: Injectable,
|
|
194
194
|
args: [{
|
|
195
195
|
providedIn: 'root'
|
|
@@ -299,9 +299,9 @@ class EventDispatcherService {
|
|
|
299
299
|
this.eventSubject2.next(event);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
303
|
-
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
302
|
+
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
303
|
+
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
305
305
|
type: Injectable,
|
|
306
306
|
args: [{
|
|
307
307
|
providedIn: 'root'
|
|
@@ -350,9 +350,9 @@ class AuthService {
|
|
|
350
350
|
location.replace(url);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
354
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
353
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
354
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, decorators: [{
|
|
356
356
|
type: Injectable,
|
|
357
357
|
args: [{
|
|
358
358
|
providedIn: 'root'
|
|
@@ -488,9 +488,9 @@ class JwtInterceptor {
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
492
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
493
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
491
|
+
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
492
|
+
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor });
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
494
494
|
type: Injectable
|
|
495
495
|
}], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
|
|
496
496
|
type: Inject,
|
|
@@ -523,9 +523,9 @@ class UserSwitcherService {
|
|
|
523
523
|
window.location.replace('/firm/dashboard');
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
527
|
-
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
526
|
+
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
527
|
+
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, decorators: [{
|
|
529
529
|
type: Injectable,
|
|
530
530
|
args: [{
|
|
531
531
|
providedIn: 'root'
|
|
@@ -548,7 +548,17 @@ class UserSwitcherInterceptor {
|
|
|
548
548
|
if (!req.url.includes(this.environment.api_uri) || !username) {
|
|
549
549
|
return req;
|
|
550
550
|
}
|
|
551
|
-
const params = new HttpParams({
|
|
551
|
+
const params = new HttpParams({
|
|
552
|
+
fromString: req.params.toString(),
|
|
553
|
+
// custom encoder to encode '+' symbol and other (Problem: TT-2359)
|
|
554
|
+
// https://stackoverflow.com/questions/49438737/how-to-escape-angular-httpparams
|
|
555
|
+
encoder: {
|
|
556
|
+
encodeKey: (key) => encodeURIComponent(key),
|
|
557
|
+
encodeValue: (value) => encodeURIComponent(value),
|
|
558
|
+
decodeKey: (key) => decodeURIComponent(key),
|
|
559
|
+
decodeValue: (value) => decodeURIComponent(value)
|
|
560
|
+
}
|
|
561
|
+
}).set('_switch_user', username);
|
|
552
562
|
return req.clone({ params });
|
|
553
563
|
// @TODO move to header solution when backend can support it
|
|
554
564
|
// return req.clone({
|
|
@@ -561,9 +571,9 @@ class UserSwitcherInterceptor {
|
|
|
561
571
|
return next.handle(this.switch(request, this.userSwitcherService.get()));
|
|
562
572
|
}
|
|
563
573
|
}
|
|
564
|
-
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
565
|
-
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
574
|
+
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
575
|
+
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor });
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
|
|
567
577
|
type: Injectable
|
|
568
578
|
}], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
|
|
569
579
|
type: Inject,
|
|
@@ -802,9 +812,9 @@ class PreloaderService {
|
|
|
802
812
|
this.activePreloaders.next(activePreloaders);
|
|
803
813
|
}
|
|
804
814
|
}
|
|
805
|
-
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
806
|
-
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
815
|
+
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
816
|
+
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, providedIn: 'root' });
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, decorators: [{
|
|
808
818
|
type: Injectable,
|
|
809
819
|
args: [{
|
|
810
820
|
providedIn: 'root'
|
|
@@ -832,9 +842,9 @@ class PreloaderInterceptor {
|
|
|
832
842
|
return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
|
|
833
843
|
}
|
|
834
844
|
}
|
|
835
|
-
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
836
|
-
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
845
|
+
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
846
|
+
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor });
|
|
847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, decorators: [{
|
|
838
848
|
type: Injectable
|
|
839
849
|
}], ctorParameters: function () { return [{ type: PreloaderService }]; } });
|
|
840
850
|
|
|
@@ -946,9 +956,9 @@ class ToastService {
|
|
|
946
956
|
}));
|
|
947
957
|
}
|
|
948
958
|
}
|
|
949
|
-
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
950
|
-
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
959
|
+
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
960
|
+
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, decorators: [{
|
|
952
962
|
type: Injectable,
|
|
953
963
|
args: [{
|
|
954
964
|
providedIn: 'root'
|
|
@@ -1159,9 +1169,9 @@ class RestService$1 {
|
|
|
1159
1169
|
*/
|
|
1160
1170
|
listenEvents() { }
|
|
1161
1171
|
}
|
|
1162
|
-
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1163
|
-
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1172
|
+
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1173
|
+
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService$1, providedIn: 'root' });
|
|
1174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService$1, decorators: [{
|
|
1165
1175
|
type: Injectable,
|
|
1166
1176
|
args: [{
|
|
1167
1177
|
providedIn: 'root'
|
|
@@ -2657,6 +2667,92 @@ const CHART_ACCOUNTS_CATEGORIES = {
|
|
|
2657
2667
|
]
|
|
2658
2668
|
};
|
|
2659
2669
|
|
|
2670
|
+
var ChartAccountsTaxLabelsEnum;
|
|
2671
|
+
(function (ChartAccountsTaxLabelsEnum) {
|
|
2672
|
+
ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
|
|
2673
|
+
ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
|
|
2674
|
+
ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
|
|
2675
|
+
})(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
|
|
2676
|
+
|
|
2677
|
+
function enumToList(data) {
|
|
2678
|
+
const list = [];
|
|
2679
|
+
for (const key in data) {
|
|
2680
|
+
if (Number(key) >= 0) {
|
|
2681
|
+
list.push({
|
|
2682
|
+
label: data[key],
|
|
2683
|
+
value: Number(key)
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
return list;
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
var ChartAccountsHeadingTaxableEnum;
|
|
2691
|
+
(function (ChartAccountsHeadingTaxableEnum) {
|
|
2692
|
+
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
|
|
2693
|
+
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
|
|
2694
|
+
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
|
|
2695
|
+
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
|
|
2696
|
+
})(ChartAccountsHeadingTaxableEnum || (ChartAccountsHeadingTaxableEnum = {}));
|
|
2697
|
+
|
|
2698
|
+
var ChartAccountsHeadingTaxDeductibleEnum;
|
|
2699
|
+
(function (ChartAccountsHeadingTaxDeductibleEnum) {
|
|
2700
|
+
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
|
|
2701
|
+
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
2702
|
+
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
|
|
2703
|
+
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
|
|
2704
|
+
})(ChartAccountsHeadingTaxDeductibleEnum || (ChartAccountsHeadingTaxDeductibleEnum = {}));
|
|
2705
|
+
|
|
2706
|
+
var ChartAccountsHeadingListEnum;
|
|
2707
|
+
(function (ChartAccountsHeadingListEnum) {
|
|
2708
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
|
|
2709
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
|
|
2710
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
|
|
2711
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
|
|
2712
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
|
|
2713
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
|
|
2714
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
|
|
2715
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
|
|
2716
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
|
|
2717
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
|
|
2718
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
|
|
2719
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
|
|
2720
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
|
|
2721
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
|
|
2722
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
|
|
2723
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
|
|
2724
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
|
|
2725
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
|
|
2726
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
|
|
2727
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
|
|
2728
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
|
|
2729
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
|
|
2730
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
|
|
2731
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
|
|
2732
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
|
|
2733
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
|
|
2734
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
|
|
2735
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
|
|
2736
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
|
|
2737
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
|
|
2738
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
|
|
2739
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
|
|
2740
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
|
|
2741
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
|
|
2742
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
|
|
2743
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
|
|
2744
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
|
|
2745
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
|
|
2746
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
|
|
2747
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
|
|
2748
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
|
|
2749
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
|
|
2750
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
|
|
2751
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
|
|
2752
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
|
|
2753
|
+
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
|
|
2754
|
+
})(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
|
|
2755
|
+
|
|
2660
2756
|
class ChartAccounts extends ChartAccounts$1 {
|
|
2661
2757
|
/**
|
|
2662
2758
|
* Return name as string
|
|
@@ -2807,6 +2903,37 @@ class ChartAccounts extends ChartAccounts$1 {
|
|
|
2807
2903
|
isClaimPercentEditable() {
|
|
2808
2904
|
return (this.isWorkExpense() || this.isSoleExpense()) && (!this.isVehicleExpense() && !this.isPersonalExpense());
|
|
2809
2905
|
}
|
|
2906
|
+
/**
|
|
2907
|
+
* get label for transaction tax field depended on selected chart account.
|
|
2908
|
+
* tax type depends on chart account heading or category.
|
|
2909
|
+
*/
|
|
2910
|
+
getTaxLabel() {
|
|
2911
|
+
var _a, _b;
|
|
2912
|
+
// get simple array of ids from enum with taxable chart accounts headings
|
|
2913
|
+
const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
|
|
2914
|
+
.map((item) => item.value);
|
|
2915
|
+
// get simple array of ids from enum with tax-deductible chart accounts headings
|
|
2916
|
+
const deductibleCAHeadingsIds = enumToList(ChartAccountsHeadingTaxDeductibleEnum)
|
|
2917
|
+
.map((item) => item.value);
|
|
2918
|
+
// check if one of ids arrays includes current chart accounts heading id and set tax label
|
|
2919
|
+
// otherwise label is empty for this class
|
|
2920
|
+
switch (true) {
|
|
2921
|
+
case taxableCAHeadingsIds.includes((_a = this.heading) === null || _a === void 0 ? void 0 : _a.id):
|
|
2922
|
+
return ChartAccountsTaxLabelsEnum.TAX_PAID;
|
|
2923
|
+
case deductibleCAHeadingsIds.includes((_b = this.heading) === null || _b === void 0 ? void 0 : _b.id):
|
|
2924
|
+
return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
|
|
2925
|
+
case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(this.category):
|
|
2926
|
+
return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
|
|
2927
|
+
default:
|
|
2928
|
+
return null;
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
isETP() {
|
|
2932
|
+
return this.heading.id === ChartAccountsHeadingListEnum.ETP;
|
|
2933
|
+
}
|
|
2934
|
+
isSalary() {
|
|
2935
|
+
return this.id === ChartAccountsListEnum.SALARY_OR_WAGES;
|
|
2936
|
+
}
|
|
2810
2937
|
}
|
|
2811
2938
|
/**
|
|
2812
2939
|
* Australian GST percent value (VAT)
|
|
@@ -2984,6 +3111,74 @@ class TransactionReceipt extends TransactionReceipt$1 {
|
|
|
2984
3111
|
}
|
|
2985
3112
|
}
|
|
2986
3113
|
|
|
3114
|
+
/**
|
|
3115
|
+
* @TODO Alex/Vik: think and create some new collection type
|
|
3116
|
+
* @TODO Alex: research all constants and make the same structure
|
|
3117
|
+
*/
|
|
3118
|
+
class ChartAccountsCategoryECollection {
|
|
3119
|
+
constructor(items) {
|
|
3120
|
+
this.items = items || [
|
|
3121
|
+
ChartAccountsCategoryEnum.PROPERTY_INCOME,
|
|
3122
|
+
ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
|
|
3123
|
+
ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
|
|
3124
|
+
ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
|
|
3125
|
+
ChartAccountsCategoryEnum.WORK_DEPRECIATION,
|
|
3126
|
+
ChartAccountsCategoryEnum.WORK_INCOME,
|
|
3127
|
+
ChartAccountsCategoryEnum.WORK_EXPENSE,
|
|
3128
|
+
ChartAccountsCategoryEnum.OTHER_INCOME,
|
|
3129
|
+
ChartAccountsCategoryEnum.OTHER_EXPENSE,
|
|
3130
|
+
ChartAccountsCategoryEnum.PERSONAL_INCOME,
|
|
3131
|
+
ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
|
|
3132
|
+
ChartAccountsCategoryEnum.SOLE_INCOME,
|
|
3133
|
+
ChartAccountsCategoryEnum.SOLE_EXPENSE,
|
|
3134
|
+
ChartAccountsCategoryEnum.SOLE_DEPRECIATION
|
|
3135
|
+
];
|
|
3136
|
+
}
|
|
3137
|
+
getByType(types) {
|
|
3138
|
+
if (!Array.isArray(types)) {
|
|
3139
|
+
types = [types];
|
|
3140
|
+
}
|
|
3141
|
+
const items = [];
|
|
3142
|
+
types.forEach((type) => {
|
|
3143
|
+
const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(type.toUpperCase()));
|
|
3144
|
+
items.push(...filtered);
|
|
3145
|
+
});
|
|
3146
|
+
return new ChartAccountsCategoryECollection(items);
|
|
3147
|
+
}
|
|
3148
|
+
getByTankType(tankTypes) {
|
|
3149
|
+
if (!Array.isArray(tankTypes)) {
|
|
3150
|
+
tankTypes = [tankTypes];
|
|
3151
|
+
}
|
|
3152
|
+
const items = [];
|
|
3153
|
+
tankTypes.forEach((tankType) => {
|
|
3154
|
+
const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()));
|
|
3155
|
+
items.push(...filtered);
|
|
3156
|
+
});
|
|
3157
|
+
return new ChartAccountsCategoryECollection(items);
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
class ChartAccountsDepreciation$1 extends AbstractModel {
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
|
|
3165
|
+
}
|
|
3166
|
+
__decorate([
|
|
3167
|
+
Type(() => ChartAccounts)
|
|
3168
|
+
], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
|
|
3169
|
+
__decorate([
|
|
3170
|
+
Transform(({ value }) => +value)
|
|
3171
|
+
], ChartAccountsDepreciation.prototype, "limit", void 0);
|
|
3172
|
+
__decorate([
|
|
3173
|
+
Transform(({ value }) => +value)
|
|
3174
|
+
], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
|
|
3175
|
+
|
|
3176
|
+
class ChartAccountsValue$1 extends AbstractModel {
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
class ChartAccountsValue extends ChartAccountsValue$1 {
|
|
3180
|
+
}
|
|
3181
|
+
|
|
2987
3182
|
class IncomeSource$1 extends AbstractModel {
|
|
2988
3183
|
}
|
|
2989
3184
|
|
|
@@ -2998,6 +3193,9 @@ class SalaryForecast$1 extends AbstractModel {
|
|
|
2998
3193
|
}
|
|
2999
3194
|
|
|
3000
3195
|
class SalaryForecast extends SalaryForecast$1 {
|
|
3196
|
+
get taxWithheld() {
|
|
3197
|
+
return this.grossAmount - this.netPay;
|
|
3198
|
+
}
|
|
3001
3199
|
}
|
|
3002
3200
|
__decorate([
|
|
3003
3201
|
Transform(({ obj }) => obj.netPay + obj.tax),
|
|
@@ -3958,6 +4156,7 @@ class Vehicle$1 extends AbstractModel {
|
|
|
3958
4156
|
class VehicleLogbook$1 extends AbstractModel {
|
|
3959
4157
|
}
|
|
3960
4158
|
|
|
4159
|
+
// problem with DateRange and typescript. See more https://github.com/rotaready/moment-range/issues/263
|
|
3961
4160
|
const moment = extendMoment(moment$1);
|
|
3962
4161
|
class VehicleLogbook extends VehicleLogbook$1 {
|
|
3963
4162
|
get kilometers() {
|
|
@@ -5860,6 +6059,29 @@ class Document extends Document$1 {
|
|
|
5860
6059
|
}
|
|
5861
6060
|
}
|
|
5862
6061
|
|
|
6062
|
+
const DOCUMENT_FILE_TYPES = {
|
|
6063
|
+
image: [
|
|
6064
|
+
'image/png',
|
|
6065
|
+
'image/jpg',
|
|
6066
|
+
'image/jpeg',
|
|
6067
|
+
'image/tiff',
|
|
6068
|
+
'image/bmp'
|
|
6069
|
+
],
|
|
6070
|
+
all: [
|
|
6071
|
+
'image/png',
|
|
6072
|
+
'image/jpg',
|
|
6073
|
+
'image/jpeg',
|
|
6074
|
+
'image/tiff',
|
|
6075
|
+
'image/bmp',
|
|
6076
|
+
'application/msword',
|
|
6077
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
6078
|
+
'application/pdf',
|
|
6079
|
+
'application/vnd.ms-excel',
|
|
6080
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
6081
|
+
'text/csv'
|
|
6082
|
+
]
|
|
6083
|
+
};
|
|
6084
|
+
|
|
5863
6085
|
class DocumentFolder$1 extends AbstractModel {
|
|
5864
6086
|
}
|
|
5865
6087
|
|
|
@@ -5869,6 +6091,23 @@ __decorate([
|
|
|
5869
6091
|
Type(() => Document)
|
|
5870
6092
|
], DocumentFolder.prototype, "documents", void 0);
|
|
5871
6093
|
|
|
6094
|
+
/**
|
|
6095
|
+
* Enum with income amount types (Net or Gross)
|
|
6096
|
+
*/
|
|
6097
|
+
var IncomeAmountTypeEnum;
|
|
6098
|
+
(function (IncomeAmountTypeEnum) {
|
|
6099
|
+
IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
|
|
6100
|
+
IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
|
|
6101
|
+
})(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
|
|
6102
|
+
|
|
6103
|
+
var TransactionCategoryEnum;
|
|
6104
|
+
(function (TransactionCategoryEnum) {
|
|
6105
|
+
TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
|
|
6106
|
+
TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
|
|
6107
|
+
TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
|
|
6108
|
+
TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
|
|
6109
|
+
})(TransactionCategoryEnum || (TransactionCategoryEnum = {}));
|
|
6110
|
+
|
|
5872
6111
|
/**
|
|
5873
6112
|
* BankConnection means user account at specific bank (usually each user has only one at the same bank)
|
|
5874
6113
|
* service handles BankConnection management
|
|
@@ -5955,9 +6194,9 @@ BankConnectionService.userEventTypes = [
|
|
|
5955
6194
|
UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
|
|
5956
6195
|
UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
|
|
5957
6196
|
];
|
|
5958
|
-
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
5959
|
-
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
5960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6197
|
+
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
6198
|
+
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
|
|
6199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
5961
6200
|
type: Injectable,
|
|
5962
6201
|
args: [{
|
|
5963
6202
|
providedIn: 'root'
|
|
@@ -6073,9 +6312,9 @@ BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
|
|
|
6073
6312
|
* Basiq does not provide a hook, so we have to check job status manually every x seconds
|
|
6074
6313
|
*/
|
|
6075
6314
|
BasiqService.bankCredintialsCheckInterval = 3000;
|
|
6076
|
-
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6077
|
-
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
6078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6315
|
+
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6316
|
+
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, providedIn: 'root' });
|
|
6317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, decorators: [{
|
|
6079
6318
|
type: Injectable,
|
|
6080
6319
|
args: [{
|
|
6081
6320
|
providedIn: 'root'
|
|
@@ -6109,9 +6348,9 @@ class BasiqTokenService {
|
|
|
6109
6348
|
return this.cacheSubject.asObservable();
|
|
6110
6349
|
}
|
|
6111
6350
|
}
|
|
6112
|
-
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6113
|
-
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
6114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6351
|
+
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6352
|
+
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
|
|
6353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, decorators: [{
|
|
6115
6354
|
type: Injectable,
|
|
6116
6355
|
args: [{
|
|
6117
6356
|
providedIn: 'root'
|
|
@@ -6145,9 +6384,9 @@ class BasiqTokenInterceptor {
|
|
|
6145
6384
|
});
|
|
6146
6385
|
}
|
|
6147
6386
|
}
|
|
6148
|
-
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6149
|
-
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
6150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6387
|
+
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6388
|
+
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor });
|
|
6389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
|
|
6151
6390
|
type: Injectable
|
|
6152
6391
|
}], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
|
|
6153
6392
|
|
|
@@ -6183,9 +6422,9 @@ class SseService {
|
|
|
6183
6422
|
}));
|
|
6184
6423
|
}
|
|
6185
6424
|
}
|
|
6186
|
-
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6187
|
-
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
6188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6425
|
+
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6426
|
+
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, providedIn: 'root' });
|
|
6427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, decorators: [{
|
|
6189
6428
|
type: Injectable,
|
|
6190
6429
|
args: [{
|
|
6191
6430
|
providedIn: 'root'
|
|
@@ -6352,9 +6591,9 @@ class UserService {
|
|
|
6352
6591
|
this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.resetCache());
|
|
6353
6592
|
}
|
|
6354
6593
|
}
|
|
6355
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6356
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
6357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6594
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6595
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
6596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, decorators: [{
|
|
6358
6597
|
type: Injectable,
|
|
6359
6598
|
args: [{
|
|
6360
6599
|
providedIn: 'root'
|
|
@@ -6384,17 +6623,17 @@ class BasiqClientIdInterceptor {
|
|
|
6384
6623
|
});
|
|
6385
6624
|
}
|
|
6386
6625
|
}
|
|
6387
|
-
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6388
|
-
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
6389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6626
|
+
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6627
|
+
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor });
|
|
6628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
|
|
6390
6629
|
type: Injectable
|
|
6391
6630
|
}], ctorParameters: function () { return [{ type: UserService }]; } });
|
|
6392
6631
|
|
|
6393
6632
|
class InterceptorsModule {
|
|
6394
6633
|
}
|
|
6395
|
-
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6396
|
-
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
6397
|
-
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
6634
|
+
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6635
|
+
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule });
|
|
6636
|
+
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, providers: [
|
|
6398
6637
|
{
|
|
6399
6638
|
provide: HTTP_INTERCEPTORS,
|
|
6400
6639
|
useClass: CorelogicInterceptor,
|
|
@@ -6432,7 +6671,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
6432
6671
|
multi: true
|
|
6433
6672
|
}
|
|
6434
6673
|
] });
|
|
6435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, decorators: [{
|
|
6436
6675
|
type: NgModule,
|
|
6437
6676
|
args: [{
|
|
6438
6677
|
providers: [
|
|
@@ -6490,14 +6729,14 @@ class TtCoreModule {
|
|
|
6490
6729
|
};
|
|
6491
6730
|
}
|
|
6492
6731
|
}
|
|
6493
|
-
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
6494
|
-
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
6732
|
+
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6733
|
+
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
6495
6734
|
InterceptorsModule] });
|
|
6496
|
-
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
6735
|
+
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [[
|
|
6497
6736
|
CommonModule,
|
|
6498
6737
|
InterceptorsModule
|
|
6499
6738
|
]] });
|
|
6500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
6739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
6501
6740
|
type: NgModule,
|
|
6502
6741
|
args: [{
|
|
6503
6742
|
declarations: [],
|
|
@@ -7545,53 +7784,6 @@ class ClientInviteCollection extends Collection {
|
|
|
7545
7784
|
}
|
|
7546
7785
|
}
|
|
7547
7786
|
|
|
7548
|
-
/**
|
|
7549
|
-
* @TODO Alex/Vik: think and create some new collection type
|
|
7550
|
-
* @TODO Alex: research all constants and make the same structure
|
|
7551
|
-
*/
|
|
7552
|
-
class ChartAccountsCategoryECollection {
|
|
7553
|
-
constructor(items) {
|
|
7554
|
-
this.items = items || [
|
|
7555
|
-
ChartAccountsCategoryEnum.PROPERTY_INCOME,
|
|
7556
|
-
ChartAccountsCategoryEnum.PROPERTY_EXPENSE,
|
|
7557
|
-
ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION,
|
|
7558
|
-
ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS,
|
|
7559
|
-
ChartAccountsCategoryEnum.WORK_DEPRECIATION,
|
|
7560
|
-
ChartAccountsCategoryEnum.WORK_INCOME,
|
|
7561
|
-
ChartAccountsCategoryEnum.WORK_EXPENSE,
|
|
7562
|
-
ChartAccountsCategoryEnum.OTHER_INCOME,
|
|
7563
|
-
ChartAccountsCategoryEnum.OTHER_EXPENSE,
|
|
7564
|
-
ChartAccountsCategoryEnum.PERSONAL_INCOME,
|
|
7565
|
-
ChartAccountsCategoryEnum.PERSONAL_EXPENSE,
|
|
7566
|
-
ChartAccountsCategoryEnum.SOLE_INCOME,
|
|
7567
|
-
ChartAccountsCategoryEnum.SOLE_EXPENSE,
|
|
7568
|
-
ChartAccountsCategoryEnum.SOLE_DEPRECIATION
|
|
7569
|
-
];
|
|
7570
|
-
}
|
|
7571
|
-
getByType(types) {
|
|
7572
|
-
if (!Array.isArray(types)) {
|
|
7573
|
-
types = [types];
|
|
7574
|
-
}
|
|
7575
|
-
const items = [];
|
|
7576
|
-
types.forEach((type) => {
|
|
7577
|
-
const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(type.toUpperCase()));
|
|
7578
|
-
items.push(...filtered);
|
|
7579
|
-
});
|
|
7580
|
-
return new ChartAccountsCategoryECollection(items);
|
|
7581
|
-
}
|
|
7582
|
-
getByTankType(tankTypes) {
|
|
7583
|
-
if (!Array.isArray(tankTypes)) {
|
|
7584
|
-
tankTypes = [tankTypes];
|
|
7585
|
-
}
|
|
7586
|
-
const items = [];
|
|
7587
|
-
tankTypes.forEach((tankType) => {
|
|
7588
|
-
const filtered = this.items.filter((item) => ChartAccountsCategoryEnum[item].includes(tankType.toUpperCase()));
|
|
7589
|
-
items.push(...filtered);
|
|
7590
|
-
});
|
|
7591
|
-
return new ChartAccountsCategoryECollection(items);
|
|
7592
|
-
}
|
|
7593
|
-
}
|
|
7594
|
-
|
|
7595
7787
|
var DocumentTypeEnum;
|
|
7596
7788
|
(function (DocumentTypeEnum) {
|
|
7597
7789
|
DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
|
|
@@ -7606,6 +7798,23 @@ var AnnualFrequencyEnum;
|
|
|
7606
7798
|
AnnualFrequencyEnum[AnnualFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
|
|
7607
7799
|
})(AnnualFrequencyEnum || (AnnualFrequencyEnum = {}));
|
|
7608
7800
|
|
|
7801
|
+
var ChartAccountsSalaryAdjustmentsListEnum;
|
|
7802
|
+
(function (ChartAccountsSalaryAdjustmentsListEnum) {
|
|
7803
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ALLOWANCE"] = 4] = "ALLOWANCE";
|
|
7804
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TIPS"] = 5] = "TIPS";
|
|
7805
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["REIMBURSEMENTS"] = 555] = "REIMBURSEMENTS";
|
|
7806
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["ADVANCE"] = 556] = "ADVANCE";
|
|
7807
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["POST_TAX_DEDUCTIONS_OTHER"] = 644] = "POST_TAX_DEDUCTIONS_OTHER";
|
|
7808
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PRE_TAX_DEDUCTIONS_OTHER"] = 645] = "PRE_TAX_DEDUCTIONS_OTHER";
|
|
7809
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["PHONE_ALLOWANCE"] = 646] = "PHONE_ALLOWANCE";
|
|
7810
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["UNIFORM_ALLOWANCE"] = 647] = "UNIFORM_ALLOWANCE";
|
|
7811
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["META_ALLOWANCE"] = 648] = "META_ALLOWANCE";
|
|
7812
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["TRAVEL_ALLOWANCE"] = 649] = "TRAVEL_ALLOWANCE";
|
|
7813
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["OTHER_ALLOWANCE"] = 650] = "OTHER_ALLOWANCE";
|
|
7814
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["LAFH"] = 651] = "LAFH";
|
|
7815
|
+
ChartAccountsSalaryAdjustmentsListEnum[ChartAccountsSalaryAdjustmentsListEnum["WORK_PLACE_GIVING"] = 653] = "WORK_PLACE_GIVING";
|
|
7816
|
+
})(ChartAccountsSalaryAdjustmentsListEnum || (ChartAccountsSalaryAdjustmentsListEnum = {}));
|
|
7817
|
+
|
|
7609
7818
|
// @TODO Artem TT-2308 move everything
|
|
7610
7819
|
|
|
7611
7820
|
var ChartAccountsEtpEnum;
|
|
@@ -7617,72 +7826,6 @@ var ChartAccountsEtpEnum;
|
|
|
7617
7826
|
ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_B"] = 553] = "ETP_B";
|
|
7618
7827
|
})(ChartAccountsEtpEnum || (ChartAccountsEtpEnum = {}));
|
|
7619
7828
|
|
|
7620
|
-
var ChartAccountsHeadingListEnum;
|
|
7621
|
-
(function (ChartAccountsHeadingListEnum) {
|
|
7622
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 2] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
|
|
7623
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS"] = 4] = "AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS";
|
|
7624
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES"] = 5] = "AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES";
|
|
7625
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_CAR_EXPENSES"] = 8] = "WORK_RELATED_CAR_EXPENSES";
|
|
7626
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_VEHICLES"] = 9] = "DEPRECIATION_VEHICLES";
|
|
7627
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["WORK_RELATED_TRAVEL_EXPENSES"] = 10] = "WORK_RELATED_TRAVEL_EXPENSES";
|
|
7628
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["COMPULSORY_WORK_UNIFORM"] = 11] = "COMPULSORY_WORK_UNIFORM";
|
|
7629
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PROTECTION_CLOTHING"] = 12] = "PROTECTION_CLOTHING";
|
|
7630
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OCCUPATIONAL_SPECIFIC_CLOTHING"] = 13] = "OCCUPATIONAL_SPECIFIC_CLOTHING";
|
|
7631
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SELF_EDUCATIONAL_EXPENSES"] = 14] = "SELF_EDUCATIONAL_EXPENSES";
|
|
7632
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_WORK_RELATED_EXPENSES"] = 15] = "OTHER_WORK_RELATED_EXPENSES";
|
|
7633
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUBSCRIPTIONS"] = 16] = "SUBSCRIPTIONS";
|
|
7634
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_RUNNING"] = 17] = "HOME_OFFICE_RUNNING";
|
|
7635
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TOOLS_EQUIPMENT"] = 18] = "TOOLS_EQUIPMENT";
|
|
7636
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["HOME_OFFICE_OCCUPANCY"] = 19] = "HOME_OFFICE_OCCUPANCY";
|
|
7637
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE"] = 20] = "AWARD_OVERTIME_MEAL_ALLOWANCE_EXPENSE";
|
|
7638
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["NEWSPAPER"] = 21] = "NEWSPAPER";
|
|
7639
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PRINTING_POSTAGE_STATIONERY"] = 22] = "PRINTING_POSTAGE_STATIONERY";
|
|
7640
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SEMINARS_ETC"] = 23] = "SEMINARS_ETC";
|
|
7641
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TELEPHONE"] = 24] = "TELEPHONE";
|
|
7642
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["UNION_FEES"] = 25] = "UNION_FEES";
|
|
7643
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER"] = 26] = "OTHER";
|
|
7644
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DONATIONS"] = 27] = "DONATIONS";
|
|
7645
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PSI"] = 30] = "PSI";
|
|
7646
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BONUSES"] = 34] = "BONUSES";
|
|
7647
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_DEDUCTIONS"] = 37] = "OTHER_DEDUCTIONS";
|
|
7648
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["ETP"] = 39] = "ETP";
|
|
7649
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_DEDUCTIONS"] = 47] = "INTEREST_DEDUCTIONS";
|
|
7650
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DIVIDEND_DEDUCTIONS"] = 48] = "DIVIDEND_DEDUCTIONS";
|
|
7651
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["PURCHASES_STOCK_INVENTORY"] = 52] = "PURCHASES_STOCK_INVENTORY";
|
|
7652
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["CONTRACTORS_COMMISSION"] = 53] = "CONTRACTORS_COMMISSION";
|
|
7653
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SUPERANNUATION"] = 54] = "SUPERANNUATION";
|
|
7654
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["BAD_DEBT"] = 55] = "BAD_DEBT";
|
|
7655
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_EXPENSES"] = 56] = "LEASE_EXPENSES";
|
|
7656
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["RENT_EXPENSES"] = 57] = "RENT_EXPENSES";
|
|
7657
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_AUSTRALIA"] = 58] = "INTEREST_EXPENSES_AUSTRALIA";
|
|
7658
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INTEREST_EXPENSES_OVERSEAS"] = 59] = "INTEREST_EXPENSES_OVERSEAS";
|
|
7659
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["KLMS"] = 60] = "KLMS";
|
|
7660
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["FUEL_OIL"] = 61] = "FUEL_OIL";
|
|
7661
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["SERVICES_MAINTENANCE"] = 62] = "SERVICES_MAINTENANCE";
|
|
7662
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["REGISTRATION"] = 63] = "REGISTRATION";
|
|
7663
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["LEASE_INTEREST_PAYMENTS"] = 64] = "LEASE_INTEREST_PAYMENTS";
|
|
7664
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["INSURANCE"] = 65] = "INSURANCE";
|
|
7665
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["TYRES_BATTERIES"] = 66] = "TYRES_BATTERIES";
|
|
7666
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["OTHER_EXPENSES"] = 67] = "OTHER_EXPENSES";
|
|
7667
|
-
ChartAccountsHeadingListEnum[ChartAccountsHeadingListEnum["DEPRECIATION_EXPENSES"] = 68] = "DEPRECIATION_EXPENSES";
|
|
7668
|
-
})(ChartAccountsHeadingListEnum || (ChartAccountsHeadingListEnum = {}));
|
|
7669
|
-
|
|
7670
|
-
var ChartAccountsHeadingTaxableEnum;
|
|
7671
|
-
(function (ChartAccountsHeadingTaxableEnum) {
|
|
7672
|
-
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["GROSS_INTEREST"] = 7] = "GROSS_INTEREST";
|
|
7673
|
-
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["DIVIDENDS"] = 38] = "DIVIDENDS";
|
|
7674
|
-
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["EMPLOYEE_SHARE_SCHEMES"] = 42] = "EMPLOYEE_SHARE_SCHEMES";
|
|
7675
|
-
ChartAccountsHeadingTaxableEnum[ChartAccountsHeadingTaxableEnum["PARTNERSHIPS_AND_TRUSTS_INCOME"] = 43] = "PARTNERSHIPS_AND_TRUSTS_INCOME";
|
|
7676
|
-
})(ChartAccountsHeadingTaxableEnum || (ChartAccountsHeadingTaxableEnum = {}));
|
|
7677
|
-
|
|
7678
|
-
var ChartAccountsHeadingTaxDeductibleEnum;
|
|
7679
|
-
(function (ChartAccountsHeadingTaxDeductibleEnum) {
|
|
7680
|
-
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ALLOWANCES_AND_PAYMENTS"] = 4] = "ALLOWANCES_AND_PAYMENTS";
|
|
7681
|
-
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
7682
|
-
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS"] = 40] = "ANNUITIES_AND_SUPERANNUATION_INCOME_STREAMS";
|
|
7683
|
-
ChartAccountsHeadingTaxDeductibleEnum[ChartAccountsHeadingTaxDeductibleEnum["SUPERANNUATION_LUMP_SUM"] = 41] = "SUPERANNUATION_LUMP_SUM";
|
|
7684
|
-
})(ChartAccountsHeadingTaxDeductibleEnum || (ChartAccountsHeadingTaxDeductibleEnum = {}));
|
|
7685
|
-
|
|
7686
7829
|
var ChartAccountsMetadataTypeEnum;
|
|
7687
7830
|
(function (ChartAccountsMetadataTypeEnum) {
|
|
7688
7831
|
ChartAccountsMetadataTypeEnum[ChartAccountsMetadataTypeEnum["NUMBER"] = 3] = "NUMBER";
|
|
@@ -8132,34 +8275,6 @@ class BorrowingExpenseLoan$1 extends AbstractModel {
|
|
|
8132
8275
|
class BorrowingExpenseLoan extends BorrowingExpenseLoan$1 {
|
|
8133
8276
|
}
|
|
8134
8277
|
|
|
8135
|
-
class ChartAccountsDepreciation$1 extends AbstractModel {
|
|
8136
|
-
}
|
|
8137
|
-
|
|
8138
|
-
class ChartAccountsDepreciation extends ChartAccountsDepreciation$1 {
|
|
8139
|
-
}
|
|
8140
|
-
__decorate([
|
|
8141
|
-
Type(() => ChartAccounts)
|
|
8142
|
-
], ChartAccountsDepreciation.prototype, "chartAccounts", void 0);
|
|
8143
|
-
__decorate([
|
|
8144
|
-
Transform(({ value }) => +value)
|
|
8145
|
-
], ChartAccountsDepreciation.prototype, "limit", void 0);
|
|
8146
|
-
__decorate([
|
|
8147
|
-
Transform(({ value }) => +value)
|
|
8148
|
-
], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
|
|
8149
|
-
|
|
8150
|
-
var ChartAccountsTaxLabelsEnum;
|
|
8151
|
-
(function (ChartAccountsTaxLabelsEnum) {
|
|
8152
|
-
ChartAccountsTaxLabelsEnum["TAX_WITHHELD"] = "Tax withheld";
|
|
8153
|
-
ChartAccountsTaxLabelsEnum["TAX_PAID"] = "Tax Paid";
|
|
8154
|
-
ChartAccountsTaxLabelsEnum["TAX_DEDUCTED"] = "Tax Deducted";
|
|
8155
|
-
})(ChartAccountsTaxLabelsEnum || (ChartAccountsTaxLabelsEnum = {}));
|
|
8156
|
-
|
|
8157
|
-
class ChartAccountsValue$1 extends AbstractModel {
|
|
8158
|
-
}
|
|
8159
|
-
|
|
8160
|
-
class ChartAccountsValue extends ChartAccountsValue$1 {
|
|
8161
|
-
}
|
|
8162
|
-
|
|
8163
8278
|
class Chat$1 extends AbstractModel {
|
|
8164
8279
|
}
|
|
8165
8280
|
|
|
@@ -8539,29 +8654,6 @@ class DepreciationReceipt extends DepreciationReceipt$1 {
|
|
|
8539
8654
|
}
|
|
8540
8655
|
}
|
|
8541
8656
|
|
|
8542
|
-
const DOCUMENT_FILE_TYPES = {
|
|
8543
|
-
image: [
|
|
8544
|
-
'image/png',
|
|
8545
|
-
'image/jpg',
|
|
8546
|
-
'image/jpeg',
|
|
8547
|
-
'image/tiff',
|
|
8548
|
-
'image/bmp'
|
|
8549
|
-
],
|
|
8550
|
-
all: [
|
|
8551
|
-
'image/png',
|
|
8552
|
-
'image/jpg',
|
|
8553
|
-
'image/jpeg',
|
|
8554
|
-
'image/tiff',
|
|
8555
|
-
'image/bmp',
|
|
8556
|
-
'application/msword',
|
|
8557
|
-
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
8558
|
-
'application/pdf',
|
|
8559
|
-
'application/vnd.ms-excel',
|
|
8560
|
-
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
8561
|
-
'text/csv'
|
|
8562
|
-
]
|
|
8563
|
-
};
|
|
8564
|
-
|
|
8565
8657
|
class EmployeeInvite$1 extends AbstractModel {
|
|
8566
8658
|
}
|
|
8567
8659
|
|
|
@@ -9718,23 +9810,22 @@ class MyTaxPartnershipsAndTrusts {
|
|
|
9718
9810
|
constructor(transactions, incomeSources) {
|
|
9719
9811
|
this.transactions = transactions;
|
|
9720
9812
|
this.incomeSources = incomeSources;
|
|
9721
|
-
this.
|
|
9722
|
-
this.
|
|
9813
|
+
this.partnershipsIncomes = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.PARTNERSHIP_INCOME);
|
|
9814
|
+
this.partnershipsExpenses = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.PARTNERSHIP_EXPENSES);
|
|
9723
9815
|
this.trustsIncomes = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TRUST_INCOME);
|
|
9724
9816
|
this.trustsExpenses = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TRUST_EXPENSES);
|
|
9725
|
-
this.
|
|
9726
|
-
this.
|
|
9727
|
-
|
|
9728
|
-
this.
|
|
9729
|
-
|
|
9730
|
-
this.
|
|
9731
|
-
this.
|
|
9732
|
-
this.partnershipExpenses.sumBy('amount');
|
|
9733
|
-
this.trustsSmallBusinessNetIncome = this.trustsIncomes.sumBy('amount') -
|
|
9734
|
-
this.trustsExpenses.sumBy('amount');
|
|
9735
|
-
this.taxPaidTotal = this.transactions
|
|
9817
|
+
this.partnershipsIncomeTotalAmount = this.partnershipsIncomes.sumBy('amount');
|
|
9818
|
+
this.partnershipsExpenseTotalAmount = this.partnershipsExpenses.sumBy('amount');
|
|
9819
|
+
this.trustsIncomeTotalAmount = this.trustsIncomes.sumBy('amount');
|
|
9820
|
+
this.trustsExpenseTotalAmount = this.trustsExpenses.sumBy('amount');
|
|
9821
|
+
this.partnershipsNetNonPrimaryProductionAmount = this.partnershipsIncomeTotalAmount - this.partnershipsExpenseTotalAmount;
|
|
9822
|
+
this.trustsNetNonPrimaryProductionAmount = this.trustsIncomeTotalAmount - this.trustsExpenseTotalAmount;
|
|
9823
|
+
this.frankingCreditsTotal = this.transactions
|
|
9736
9824
|
.filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
|
|
9737
|
-
.
|
|
9825
|
+
.getTransactionsMetadata()
|
|
9826
|
+
.filterBy('chartAccountsMetadata.id', ChartAccountsMetadataListEnum.FRANKING_CREDIT)
|
|
9827
|
+
.sumBy('value');
|
|
9828
|
+
this.trustsIncomeTotalTax = this.trustsIncomes.sumBy('tax');
|
|
9738
9829
|
this.frankingCreditsTotal = this.transactions
|
|
9739
9830
|
.filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
|
|
9740
9831
|
.getTransactionsMetadata()
|
|
@@ -9742,22 +9833,6 @@ class MyTaxPartnershipsAndTrusts {
|
|
|
9742
9833
|
.sumBy('value');
|
|
9743
9834
|
this.taxOffsetNRASTotalAmount = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S).sumBy('amount');
|
|
9744
9835
|
}
|
|
9745
|
-
/**
|
|
9746
|
-
* Get Income source forecast trust type, related to trust income with max amount
|
|
9747
|
-
*/
|
|
9748
|
-
getTrustType() {
|
|
9749
|
-
const filteredTrustIncomes = this.trustsIncomes
|
|
9750
|
-
.filterBy('incomeSource.id', this.incomeSources
|
|
9751
|
-
.removeBy('actualForecast.trustType', null)
|
|
9752
|
-
.getIds());
|
|
9753
|
-
if (!filteredTrustIncomes.length) {
|
|
9754
|
-
return null;
|
|
9755
|
-
}
|
|
9756
|
-
return this.incomeSources
|
|
9757
|
-
.findBy('id', filteredTrustIncomes.maxBy('amount').incomeSource.id)
|
|
9758
|
-
.actualForecast
|
|
9759
|
-
.trustType;
|
|
9760
|
-
}
|
|
9761
9836
|
}
|
|
9762
9837
|
|
|
9763
9838
|
class MyTaxRent {
|
|
@@ -10132,23 +10207,6 @@ var TaxSummaryTypeEnum;
|
|
|
10132
10207
|
TaxSummaryTypeEnum["FORECASTS"] = "forecasts";
|
|
10133
10208
|
})(TaxSummaryTypeEnum || (TaxSummaryTypeEnum = {}));
|
|
10134
10209
|
|
|
10135
|
-
/**
|
|
10136
|
-
* Enum with income amount types (Net or Gross)
|
|
10137
|
-
*/
|
|
10138
|
-
var IncomeAmountTypeEnum;
|
|
10139
|
-
(function (IncomeAmountTypeEnum) {
|
|
10140
|
-
IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
|
|
10141
|
-
IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
|
|
10142
|
-
})(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
|
|
10143
|
-
|
|
10144
|
-
var TransactionCategoryEnum;
|
|
10145
|
-
(function (TransactionCategoryEnum) {
|
|
10146
|
-
TransactionCategoryEnum[TransactionCategoryEnum["PROPERTY"] = 0] = "PROPERTY";
|
|
10147
|
-
TransactionCategoryEnum[TransactionCategoryEnum["WORK"] = 1] = "WORK";
|
|
10148
|
-
TransactionCategoryEnum[TransactionCategoryEnum["SOLE"] = 2] = "SOLE";
|
|
10149
|
-
TransactionCategoryEnum[TransactionCategoryEnum["PERSONAL"] = 3] = "PERSONAL";
|
|
10150
|
-
})(TransactionCategoryEnum || (TransactionCategoryEnum = {}));
|
|
10151
|
-
|
|
10152
10210
|
class MyAccountHistory {
|
|
10153
10211
|
}
|
|
10154
10212
|
|
|
@@ -10253,9 +10311,9 @@ class AddressService {
|
|
|
10253
10311
|
return this.countriesSubject.asObservable();
|
|
10254
10312
|
}
|
|
10255
10313
|
}
|
|
10256
|
-
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10257
|
-
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10314
|
+
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10315
|
+
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, providedIn: 'root' });
|
|
10316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, decorators: [{
|
|
10259
10317
|
type: Injectable,
|
|
10260
10318
|
args: [{
|
|
10261
10319
|
providedIn: 'root'
|
|
@@ -10359,9 +10417,9 @@ class BankAccountService extends RestService$1 {
|
|
|
10359
10417
|
});
|
|
10360
10418
|
}
|
|
10361
10419
|
}
|
|
10362
|
-
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10363
|
-
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10420
|
+
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10421
|
+
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, providedIn: 'root' });
|
|
10422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, decorators: [{
|
|
10365
10423
|
type: Injectable,
|
|
10366
10424
|
args: [{
|
|
10367
10425
|
providedIn: 'root'
|
|
@@ -10440,9 +10498,9 @@ class BankTransactionService extends RestService$1 {
|
|
|
10440
10498
|
});
|
|
10441
10499
|
}
|
|
10442
10500
|
}
|
|
10443
|
-
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10444
|
-
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10501
|
+
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10502
|
+
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
|
|
10503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
10446
10504
|
type: Injectable,
|
|
10447
10505
|
args: [{
|
|
10448
10506
|
providedIn: 'root'
|
|
@@ -10450,79 +10508,297 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
10450
10508
|
}] });
|
|
10451
10509
|
|
|
10452
10510
|
/**
|
|
10453
|
-
*
|
|
10511
|
+
* Abstract base service that implements common services functionality
|
|
10512
|
+
* and describe abstract methods/properties that have to be implemented in child services
|
|
10513
|
+
* Model - entity service is working with
|
|
10514
|
+
* BaseModel - base entity model that extends by Model
|
|
10515
|
+
* CollectionModel - entity collection class
|
|
10454
10516
|
*/
|
|
10455
|
-
class
|
|
10456
|
-
constructor() {
|
|
10457
|
-
|
|
10458
|
-
this.
|
|
10459
|
-
this.
|
|
10460
|
-
|
|
10517
|
+
class RestService {
|
|
10518
|
+
constructor(http, eventDispatcherService, environment) {
|
|
10519
|
+
this.http = http;
|
|
10520
|
+
this.eventDispatcherService = eventDispatcherService;
|
|
10521
|
+
this.environment = environment;
|
|
10522
|
+
/**
|
|
10523
|
+
* Subject for service cache
|
|
10524
|
+
*/
|
|
10525
|
+
this.cacheSubject = new ReplaySubject(1);
|
|
10526
|
+
/**
|
|
10527
|
+
* List of methods unavailable for current API
|
|
10528
|
+
*/
|
|
10529
|
+
this.disabledMethods = [];
|
|
10530
|
+
this.listenEvents();
|
|
10531
|
+
}
|
|
10532
|
+
get apiUrl() {
|
|
10533
|
+
return `${this.environment.apiV2}/${this.entityUrl}`;
|
|
10461
10534
|
}
|
|
10462
10535
|
get() {
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10536
|
+
this.handleAccessError('get');
|
|
10537
|
+
// Set cache as empty collection to avoid multiple requests before cache filled
|
|
10538
|
+
if (!this.cache) {
|
|
10539
|
+
this.cache = this.createCollectionInstance(this.collectionClass, []);
|
|
10540
|
+
this.resetCache();
|
|
10541
|
+
}
|
|
10542
|
+
return this.cacheSubject.asObservable();
|
|
10467
10543
|
}
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
type: Injectable,
|
|
10473
|
-
args: [{
|
|
10474
|
-
providedIn: 'root'
|
|
10475
|
-
}]
|
|
10476
|
-
}] });
|
|
10477
|
-
|
|
10478
|
-
/**
|
|
10479
|
-
* Service to work with depreciation chart accounts
|
|
10480
|
-
*/
|
|
10481
|
-
class ChartAccountsDepreciationService extends RestService$1 {
|
|
10482
|
-
constructor() {
|
|
10483
|
-
super(...arguments);
|
|
10484
|
-
this.url = 'chart-accounts-depreciations';
|
|
10485
|
-
this.modelClass = ChartAccountsDepreciation;
|
|
10486
|
-
this.isHydra = true;
|
|
10544
|
+
;
|
|
10545
|
+
getSingle() {
|
|
10546
|
+
this.handleAccessError('get');
|
|
10547
|
+
return this.get().pipe(map((collection) => collection.first));
|
|
10487
10548
|
}
|
|
10488
10549
|
/**
|
|
10489
|
-
*
|
|
10550
|
+
* Create a new Model instance in database
|
|
10490
10551
|
*/
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10552
|
+
post(model) {
|
|
10553
|
+
this.handleAccessError('post');
|
|
10554
|
+
return this.http.post(this.apiUrl, model)
|
|
10555
|
+
.pipe(map((response) => {
|
|
10556
|
+
const result = this.createModelInstance(this.modelClass, response);
|
|
10557
|
+
this.handleResponse([result], 'post');
|
|
10558
|
+
return result;
|
|
10498
10559
|
}));
|
|
10499
10560
|
}
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
* Chart accounts service
|
|
10512
|
-
*/
|
|
10513
|
-
class ChartAccountsService {
|
|
10514
|
-
constructor(http, environment) {
|
|
10515
|
-
this.http = http;
|
|
10516
|
-
this.environment = environment;
|
|
10517
|
-
this.chartAccountsSubject = new ReplaySubject(1);
|
|
10561
|
+
/**
|
|
10562
|
+
* Create multiple new Model instances in database
|
|
10563
|
+
*/
|
|
10564
|
+
postBatch(models) {
|
|
10565
|
+
this.handleAccessError('postBatch');
|
|
10566
|
+
return this.http.post(this.apiUrl, models)
|
|
10567
|
+
.pipe(map((response) => {
|
|
10568
|
+
const result = response.map((item) => this.createModelInstance(this.modelClass, item));
|
|
10569
|
+
this.handleResponse(result, 'post');
|
|
10570
|
+
return result;
|
|
10571
|
+
}));
|
|
10518
10572
|
}
|
|
10519
10573
|
/**
|
|
10520
|
-
*
|
|
10574
|
+
* Change an existing Model instance in database
|
|
10521
10575
|
*/
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10576
|
+
put(model) {
|
|
10577
|
+
this.handleAccessError('put');
|
|
10578
|
+
return this.http.put(`${this.apiUrl}/${model.id}`, model)
|
|
10579
|
+
.pipe(map((response) => {
|
|
10580
|
+
const result = this.createModelInstance(this.modelClass, response);
|
|
10581
|
+
this.handleResponse([result], 'put');
|
|
10582
|
+
return result;
|
|
10583
|
+
}));
|
|
10584
|
+
}
|
|
10585
|
+
/**
|
|
10586
|
+
* Change multiple existing Model instances in database
|
|
10587
|
+
*/
|
|
10588
|
+
putBatch(models) {
|
|
10589
|
+
this.handleAccessError('putBatch');
|
|
10590
|
+
return this.http.put(this.apiUrl, models)
|
|
10591
|
+
.pipe(map((response) => {
|
|
10592
|
+
const result = response.map((item) => this.createModelInstance(this.modelClass, item));
|
|
10593
|
+
this.handleResponse(result, 'put');
|
|
10594
|
+
return result;
|
|
10595
|
+
}));
|
|
10596
|
+
}
|
|
10597
|
+
/**
|
|
10598
|
+
* Remove a Model instance from database
|
|
10599
|
+
*/
|
|
10600
|
+
delete(model) {
|
|
10601
|
+
this.handleAccessError('delete');
|
|
10602
|
+
return this.http.delete(`${this.apiUrl}/${model.id}`)
|
|
10603
|
+
.pipe(map(() => {
|
|
10604
|
+
this.handleResponse([model], 'delete');
|
|
10605
|
+
}));
|
|
10606
|
+
}
|
|
10607
|
+
/**
|
|
10608
|
+
* Remove multiple Model instances from database
|
|
10609
|
+
*/
|
|
10610
|
+
deleteBatch(models) {
|
|
10611
|
+
this.handleAccessError('deleteBatch');
|
|
10612
|
+
return this.http.post(`${this.apiUrl}/delete`, models)
|
|
10613
|
+
.pipe(map(() => {
|
|
10614
|
+
this.handleResponse(models, 'delete');
|
|
10615
|
+
}));
|
|
10616
|
+
}
|
|
10617
|
+
/**
|
|
10618
|
+
* Refresh cache with actual backend data
|
|
10619
|
+
*/
|
|
10620
|
+
resetCache() {
|
|
10621
|
+
this.fetch()
|
|
10622
|
+
.pipe(first$1())
|
|
10623
|
+
.subscribe();
|
|
10624
|
+
}
|
|
10625
|
+
/**
|
|
10626
|
+
* Get data from backend and fill the cache
|
|
10627
|
+
*/
|
|
10628
|
+
fetch() {
|
|
10629
|
+
return this.http.get(this.apiUrl)
|
|
10630
|
+
.pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
|
|
10631
|
+
const items = response.map((item) => this.createModelInstance(this.modelClass, item));
|
|
10632
|
+
this.cache = this.createCollectionInstance(this.collectionClass, items);
|
|
10633
|
+
this.cacheSubject.next(this.cache);
|
|
10634
|
+
return this.cache;
|
|
10635
|
+
}));
|
|
10636
|
+
}
|
|
10637
|
+
;
|
|
10638
|
+
/**
|
|
10639
|
+
* Handle response data - update cache and dispatch event if it is needed
|
|
10640
|
+
*/
|
|
10641
|
+
handleResponse(response, method) {
|
|
10642
|
+
this.updateCache(response, method);
|
|
10643
|
+
// dispatch event for interested services
|
|
10644
|
+
if (response[0] instanceof ObservableModel) {
|
|
10645
|
+
this.dispatchEvent(method, response);
|
|
10646
|
+
}
|
|
10647
|
+
}
|
|
10648
|
+
/**
|
|
10649
|
+
* Update cache with passed items. Add/Update detects automatically, Delete via optional flag
|
|
10650
|
+
*/
|
|
10651
|
+
updateCache(items, method) {
|
|
10652
|
+
switch (method) {
|
|
10653
|
+
case 'post':
|
|
10654
|
+
this.cache = this.cache.push(...items);
|
|
10655
|
+
break;
|
|
10656
|
+
case 'put':
|
|
10657
|
+
items.forEach((item) => {
|
|
10658
|
+
this.cache = this.cache.replaceBy('id', item.id, item);
|
|
10659
|
+
});
|
|
10660
|
+
break;
|
|
10661
|
+
case 'delete':
|
|
10662
|
+
this.cache = this.cache.removeBy('id', items.map((item) => item.id));
|
|
10663
|
+
}
|
|
10664
|
+
this.cacheSubject.next(this.cache);
|
|
10665
|
+
}
|
|
10666
|
+
/**
|
|
10667
|
+
* Generate and dispatch rest event
|
|
10668
|
+
*/
|
|
10669
|
+
dispatchEvent(method, items) {
|
|
10670
|
+
const eventName = this.modelClass.getEventName(method);
|
|
10671
|
+
this.eventDispatcherService.dispatch2(new AppEvent2(eventName, items));
|
|
10672
|
+
}
|
|
10673
|
+
/**
|
|
10674
|
+
* Create new instance of class
|
|
10675
|
+
* @param model The class whose instance to be created
|
|
10676
|
+
* @param plain Single object or array from which will be created model instance(s)
|
|
10677
|
+
*/
|
|
10678
|
+
createModelInstance(model, plain) {
|
|
10679
|
+
// excludePrefixes - class-transformer option is using to ignore hydra fields
|
|
10680
|
+
return plainToClass(model, plain, { excludePrefixes: ['@'] });
|
|
10681
|
+
}
|
|
10682
|
+
createCollectionInstance(collectionClass, items) {
|
|
10683
|
+
return new collectionClass(items);
|
|
10684
|
+
}
|
|
10685
|
+
/**
|
|
10686
|
+
* Check if method is not disabled. Throw exception otherwise.
|
|
10687
|
+
* Some entities does not have endpoints for all methods.
|
|
10688
|
+
*/
|
|
10689
|
+
handleAccessError(method) {
|
|
10690
|
+
if (!this.disabledMethods.includes(method)) {
|
|
10691
|
+
return;
|
|
10692
|
+
}
|
|
10693
|
+
throw new Error(`Method ${method}() is not allowed for ${this.constructor.name}`);
|
|
10694
|
+
}
|
|
10695
|
+
/**
|
|
10696
|
+
* Subscribe to http events and run callback
|
|
10697
|
+
* @param type The class whose changes should be listened for
|
|
10698
|
+
* @param methods The list of http methods should be listened for
|
|
10699
|
+
* @param callback The function to be called when event triggered
|
|
10700
|
+
*/
|
|
10701
|
+
listenCSE(modelClass, methods, callback) {
|
|
10702
|
+
methods.forEach((method) => {
|
|
10703
|
+
this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe((data) => {
|
|
10704
|
+
callback(data);
|
|
10705
|
+
});
|
|
10706
|
+
});
|
|
10707
|
+
}
|
|
10708
|
+
/**
|
|
10709
|
+
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|
|
10710
|
+
*/
|
|
10711
|
+
listenEvents() { }
|
|
10712
|
+
}
|
|
10713
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10714
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
10715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, decorators: [{
|
|
10716
|
+
type: Injectable,
|
|
10717
|
+
args: [{
|
|
10718
|
+
providedIn: 'root'
|
|
10719
|
+
}]
|
|
10720
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
10721
|
+
type: Inject,
|
|
10722
|
+
args: ['environment']
|
|
10723
|
+
}] }]; } });
|
|
10724
|
+
|
|
10725
|
+
/**
|
|
10726
|
+
* Service that handling banks logic
|
|
10727
|
+
*/
|
|
10728
|
+
class BankService extends RestService {
|
|
10729
|
+
constructor() {
|
|
10730
|
+
super(...arguments);
|
|
10731
|
+
this.modelClass = Bank;
|
|
10732
|
+
this.collectionClass = Collection;
|
|
10733
|
+
this.entityUrl = 'banks';
|
|
10734
|
+
this.isApiPlatform = true;
|
|
10735
|
+
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
10736
|
+
}
|
|
10737
|
+
get() {
|
|
10738
|
+
return super.get()
|
|
10739
|
+
.pipe(map((banks) => {
|
|
10740
|
+
// exclude basiq banks without login fields (basiq may return broken banks without loginFields)
|
|
10741
|
+
return banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields));
|
|
10742
|
+
}));
|
|
10743
|
+
}
|
|
10744
|
+
}
|
|
10745
|
+
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10746
|
+
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, providedIn: 'root' });
|
|
10747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, decorators: [{
|
|
10748
|
+
type: Injectable,
|
|
10749
|
+
args: [{
|
|
10750
|
+
providedIn: 'root'
|
|
10751
|
+
}]
|
|
10752
|
+
}] });
|
|
10753
|
+
|
|
10754
|
+
/**
|
|
10755
|
+
* Service to work with depreciation chart accounts
|
|
10756
|
+
*/
|
|
10757
|
+
class ChartAccountsDepreciationService extends RestService$1 {
|
|
10758
|
+
constructor() {
|
|
10759
|
+
super(...arguments);
|
|
10760
|
+
this.url = 'chart-accounts-depreciations';
|
|
10761
|
+
this.modelClass = ChartAccountsDepreciation;
|
|
10762
|
+
this.isHydra = true;
|
|
10763
|
+
}
|
|
10764
|
+
/**
|
|
10765
|
+
* Get depreciation chart accounts for current financial year
|
|
10766
|
+
*/
|
|
10767
|
+
getCurrent() {
|
|
10768
|
+
return this.get()
|
|
10769
|
+
.pipe(map((chartAccountsDepreciations) => {
|
|
10770
|
+
return chartAccountsDepreciations
|
|
10771
|
+
.find((chartAccountsDepreciation) => {
|
|
10772
|
+
return chartAccountsDepreciation.effectiveYear === new FinancialYear().year;
|
|
10773
|
+
});
|
|
10774
|
+
}));
|
|
10775
|
+
}
|
|
10776
|
+
}
|
|
10777
|
+
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10778
|
+
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
10779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
|
10780
|
+
type: Injectable,
|
|
10781
|
+
args: [{
|
|
10782
|
+
providedIn: 'root'
|
|
10783
|
+
}]
|
|
10784
|
+
}] });
|
|
10785
|
+
|
|
10786
|
+
/**
|
|
10787
|
+
* Chart accounts service
|
|
10788
|
+
*/
|
|
10789
|
+
class ChartAccountsService {
|
|
10790
|
+
constructor(http, environment) {
|
|
10791
|
+
this.http = http;
|
|
10792
|
+
this.environment = environment;
|
|
10793
|
+
this.chartAccountsSubject = new ReplaySubject(1);
|
|
10794
|
+
}
|
|
10795
|
+
/**
|
|
10796
|
+
* get all parent and child chart accounts and group it
|
|
10797
|
+
*/
|
|
10798
|
+
getChartAccounts() {
|
|
10799
|
+
if (!this._chartAccounts) {
|
|
10800
|
+
this._chartAccounts = [];
|
|
10801
|
+
this.http.get(`${this.environment.apiV2}/chart-accounts`)
|
|
10526
10802
|
.pipe(map((response) => {
|
|
10527
10803
|
return response.map((item) => plainToClass(ChartAccounts, item));
|
|
10528
10804
|
}))
|
|
@@ -10542,12 +10818,11 @@ class ChartAccountsService {
|
|
|
10542
10818
|
}
|
|
10543
10819
|
/**
|
|
10544
10820
|
* Get list of chart accounts heading
|
|
10545
|
-
* @param categories
|
|
10546
10821
|
*/
|
|
10547
|
-
getChartAccountsHeadings(categories = CHART_ACCOUNTS_CATEGORIES.all) {
|
|
10822
|
+
getChartAccountsHeadings(categories = CHART_ACCOUNTS_CATEGORIES.all, chartAccountsIds) {
|
|
10548
10823
|
return this.getChartAccounts()
|
|
10549
10824
|
.pipe(map((chartAccounts) => {
|
|
10550
|
-
const filteredChartAccounts = chartAccounts.filter((ca) => categories.includes(ca.category));
|
|
10825
|
+
const filteredChartAccounts = chartAccounts.filter((ca) => categories.includes(ca.category) && (!chartAccountsIds || chartAccountsIds.includes(ca.id)));
|
|
10551
10826
|
const headings = [];
|
|
10552
10827
|
filteredChartAccounts.forEach((ca) => {
|
|
10553
10828
|
let heading = headings.find((h) => { var _a; return h.id === ((_a = ca.heading) === null || _a === void 0 ? void 0 : _a.id); });
|
|
@@ -10582,9 +10857,9 @@ class ChartAccountsService {
|
|
|
10582
10857
|
}));
|
|
10583
10858
|
}
|
|
10584
10859
|
}
|
|
10585
|
-
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10586
|
-
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10860
|
+
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10861
|
+
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
|
|
10862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, decorators: [{
|
|
10588
10863
|
type: Injectable,
|
|
10589
10864
|
args: [{
|
|
10590
10865
|
providedIn: 'root'
|
|
@@ -10630,9 +10905,9 @@ class MessageService extends RestService$1 {
|
|
|
10630
10905
|
});
|
|
10631
10906
|
}
|
|
10632
10907
|
}
|
|
10633
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10634
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10908
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10909
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
10910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
|
|
10636
10911
|
type: Injectable,
|
|
10637
10912
|
args: [{
|
|
10638
10913
|
providedIn: 'root'
|
|
@@ -10738,9 +11013,9 @@ class MessageDocumentService {
|
|
|
10738
11013
|
}));
|
|
10739
11014
|
}
|
|
10740
11015
|
}
|
|
10741
|
-
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10742
|
-
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11016
|
+
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11017
|
+
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
|
|
11018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
10744
11019
|
type: Injectable,
|
|
10745
11020
|
args: [{
|
|
10746
11021
|
providedIn: 'root'
|
|
@@ -10814,9 +11089,9 @@ class ChatService extends RestService$1 {
|
|
|
10814
11089
|
});
|
|
10815
11090
|
}
|
|
10816
11091
|
}
|
|
10817
|
-
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10818
|
-
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11092
|
+
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11093
|
+
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, providedIn: 'root' });
|
|
11094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, decorators: [{
|
|
10820
11095
|
type: Injectable,
|
|
10821
11096
|
args: [{
|
|
10822
11097
|
providedIn: 'root'
|
|
@@ -10882,9 +11157,9 @@ class ReceiptService {
|
|
|
10882
11157
|
return plainToClass(this.modelClass, data);
|
|
10883
11158
|
}
|
|
10884
11159
|
}
|
|
10885
|
-
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10886
|
-
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11160
|
+
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11161
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
11162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, decorators: [{
|
|
10888
11163
|
type: Injectable,
|
|
10889
11164
|
args: [{
|
|
10890
11165
|
providedIn: 'root'
|
|
@@ -10913,9 +11188,9 @@ class DepreciationReceiptService extends ReceiptService {
|
|
|
10913
11188
|
this.listenEvents();
|
|
10914
11189
|
}
|
|
10915
11190
|
}
|
|
10916
|
-
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10917
|
-
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10918
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11191
|
+
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11192
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
11193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
10919
11194
|
type: Injectable,
|
|
10920
11195
|
args: [{
|
|
10921
11196
|
providedIn: 'root'
|
|
@@ -11066,9 +11341,9 @@ class DepreciationService extends RestService$1 {
|
|
|
11066
11341
|
});
|
|
11067
11342
|
}
|
|
11068
11343
|
}
|
|
11069
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11070
|
-
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11344
|
+
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11345
|
+
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
11346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, decorators: [{
|
|
11072
11347
|
type: Injectable,
|
|
11073
11348
|
args: [{
|
|
11074
11349
|
providedIn: 'root'
|
|
@@ -11120,9 +11395,9 @@ class DepreciationCapitalProjectService {
|
|
|
11120
11395
|
}));
|
|
11121
11396
|
}
|
|
11122
11397
|
}
|
|
11123
|
-
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11124
|
-
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11398
|
+
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11399
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
11400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
11126
11401
|
type: Injectable,
|
|
11127
11402
|
args: [{
|
|
11128
11403
|
providedIn: 'root'
|
|
@@ -11139,9 +11414,9 @@ class DocumentService extends RestService$1 {
|
|
|
11139
11414
|
this.modelClass = Document;
|
|
11140
11415
|
}
|
|
11141
11416
|
}
|
|
11142
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11143
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11417
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11418
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
11419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, decorators: [{
|
|
11145
11420
|
type: Injectable,
|
|
11146
11421
|
args: [{
|
|
11147
11422
|
providedIn: 'root'
|
|
@@ -11207,9 +11482,9 @@ class DocumentFolderService extends RestService$1 {
|
|
|
11207
11482
|
}));
|
|
11208
11483
|
}
|
|
11209
11484
|
}
|
|
11210
|
-
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11211
|
-
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11485
|
+
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11486
|
+
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
11487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
11213
11488
|
type: Injectable,
|
|
11214
11489
|
args: [{
|
|
11215
11490
|
providedIn: 'root'
|
|
@@ -11286,9 +11561,9 @@ FacebookService.authOptions = {
|
|
|
11286
11561
|
auth_type: 'rerequest',
|
|
11287
11562
|
return_scopes: true
|
|
11288
11563
|
};
|
|
11289
|
-
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11290
|
-
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11564
|
+
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1$1.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11565
|
+
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, providedIn: 'root' });
|
|
11566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, decorators: [{
|
|
11292
11567
|
type: Injectable,
|
|
11293
11568
|
args: [{
|
|
11294
11569
|
providedIn: 'root'
|
|
@@ -11331,9 +11606,9 @@ class ClientIncomeTypesService {
|
|
|
11331
11606
|
}));
|
|
11332
11607
|
}
|
|
11333
11608
|
}
|
|
11334
|
-
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11335
|
-
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11609
|
+
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11610
|
+
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
|
|
11611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
|
|
11337
11612
|
type: Injectable,
|
|
11338
11613
|
args: [{
|
|
11339
11614
|
providedIn: 'root'
|
|
@@ -11451,9 +11726,9 @@ class ClientInviteService extends RestService$1 {
|
|
|
11451
11726
|
});
|
|
11452
11727
|
}
|
|
11453
11728
|
}
|
|
11454
|
-
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11455
|
-
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11729
|
+
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11730
|
+
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
|
|
11731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
11457
11732
|
type: Injectable,
|
|
11458
11733
|
args: [{
|
|
11459
11734
|
providedIn: 'root'
|
|
@@ -11532,9 +11807,9 @@ class ClientMovementService extends RestService$1 {
|
|
|
11532
11807
|
});
|
|
11533
11808
|
}
|
|
11534
11809
|
}
|
|
11535
|
-
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11536
|
-
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11810
|
+
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11811
|
+
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
|
|
11812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
11538
11813
|
type: Injectable,
|
|
11539
11814
|
args: [{
|
|
11540
11815
|
providedIn: 'root'
|
|
@@ -11563,9 +11838,9 @@ class EmployeeService extends RestService$1 {
|
|
|
11563
11838
|
}));
|
|
11564
11839
|
}
|
|
11565
11840
|
}
|
|
11566
|
-
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11567
|
-
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11841
|
+
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11842
|
+
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, providedIn: 'root' });
|
|
11843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, decorators: [{
|
|
11569
11844
|
type: Injectable,
|
|
11570
11845
|
args: [{
|
|
11571
11846
|
providedIn: 'root'
|
|
@@ -11608,9 +11883,9 @@ class EmployeeInviteService extends RestService$1 {
|
|
|
11608
11883
|
}));
|
|
11609
11884
|
}
|
|
11610
11885
|
}
|
|
11611
|
-
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11612
|
-
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11886
|
+
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11887
|
+
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
|
|
11888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, decorators: [{
|
|
11614
11889
|
type: Injectable,
|
|
11615
11890
|
args: [{
|
|
11616
11891
|
providedIn: 'root'
|
|
@@ -11635,9 +11910,9 @@ class ClientPortfolioReportService {
|
|
|
11635
11910
|
}));
|
|
11636
11911
|
}
|
|
11637
11912
|
}
|
|
11638
|
-
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11639
|
-
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11913
|
+
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11914
|
+
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
|
|
11915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
|
|
11641
11916
|
type: Injectable,
|
|
11642
11917
|
args: [{
|
|
11643
11918
|
providedIn: 'root'
|
|
@@ -11707,9 +11982,9 @@ class FirmService {
|
|
|
11707
11982
|
}));
|
|
11708
11983
|
}
|
|
11709
11984
|
}
|
|
11710
|
-
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11711
|
-
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11985
|
+
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11986
|
+
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, providedIn: 'root' });
|
|
11987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, decorators: [{
|
|
11713
11988
|
type: Injectable,
|
|
11714
11989
|
args: [{
|
|
11715
11990
|
providedIn: 'root'
|
|
@@ -11782,9 +12057,9 @@ class IncomeSourceForecastService extends RestService$1 {
|
|
|
11782
12057
|
}).flat();
|
|
11783
12058
|
}
|
|
11784
12059
|
}
|
|
11785
|
-
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11786
|
-
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12060
|
+
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12061
|
+
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
12062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
11788
12063
|
type: Injectable,
|
|
11789
12064
|
args: [{
|
|
11790
12065
|
providedIn: 'root'
|
|
@@ -11854,9 +12129,9 @@ class SalaryForecastService extends RestService$1 {
|
|
|
11854
12129
|
}).flat();
|
|
11855
12130
|
}
|
|
11856
12131
|
}
|
|
11857
|
-
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11858
|
-
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12132
|
+
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12133
|
+
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
|
|
12134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
11860
12135
|
type: Injectable,
|
|
11861
12136
|
args: [{
|
|
11862
12137
|
providedIn: 'root'
|
|
@@ -11932,9 +12207,9 @@ class SoleForecastService extends RestService$1 {
|
|
|
11932
12207
|
});
|
|
11933
12208
|
}
|
|
11934
12209
|
}
|
|
11935
|
-
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11936
|
-
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12210
|
+
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12211
|
+
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
|
|
12212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
11938
12213
|
type: Injectable,
|
|
11939
12214
|
args: [{
|
|
11940
12215
|
providedIn: 'root'
|
|
@@ -12033,9 +12308,9 @@ class IncomeSourceService extends RestService$1 {
|
|
|
12033
12308
|
});
|
|
12034
12309
|
}
|
|
12035
12310
|
}
|
|
12036
|
-
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12037
|
-
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12311
|
+
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12312
|
+
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
|
|
12313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
12039
12314
|
type: Injectable,
|
|
12040
12315
|
args: [{
|
|
12041
12316
|
providedIn: 'root'
|
|
@@ -12095,9 +12370,9 @@ class BorrowingExpenseService {
|
|
|
12095
12370
|
}));
|
|
12096
12371
|
}
|
|
12097
12372
|
}
|
|
12098
|
-
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12099
|
-
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12373
|
+
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12374
|
+
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
|
|
12375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, decorators: [{
|
|
12101
12376
|
type: Injectable,
|
|
12102
12377
|
args: [{
|
|
12103
12378
|
providedIn: 'root'
|
|
@@ -12224,9 +12499,9 @@ class LoanService extends RestService$1 {
|
|
|
12224
12499
|
}));
|
|
12225
12500
|
}
|
|
12226
12501
|
}
|
|
12227
|
-
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12228
|
-
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12502
|
+
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12503
|
+
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, providedIn: 'root' });
|
|
12504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, decorators: [{
|
|
12230
12505
|
type: Injectable,
|
|
12231
12506
|
args: [{
|
|
12232
12507
|
providedIn: 'root'
|
|
@@ -12243,9 +12518,9 @@ class PropertyCategoryService extends RestService$1 {
|
|
|
12243
12518
|
this.url = 'properties/categories';
|
|
12244
12519
|
}
|
|
12245
12520
|
}
|
|
12246
|
-
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12247
|
-
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12521
|
+
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12522
|
+
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
|
|
12523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, decorators: [{
|
|
12249
12524
|
type: Injectable,
|
|
12250
12525
|
args: [{
|
|
12251
12526
|
providedIn: 'root'
|
|
@@ -12283,9 +12558,9 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
|
12283
12558
|
}));
|
|
12284
12559
|
}
|
|
12285
12560
|
}
|
|
12286
|
-
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12287
|
-
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12561
|
+
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12562
|
+
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
12563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
|
|
12289
12564
|
type: Injectable,
|
|
12290
12565
|
args: [{
|
|
12291
12566
|
providedIn: 'root'
|
|
@@ -12337,9 +12612,9 @@ class PropertyDocumentService extends RestService$1 {
|
|
|
12337
12612
|
});
|
|
12338
12613
|
}
|
|
12339
12614
|
}
|
|
12340
|
-
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12341
|
-
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12615
|
+
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12616
|
+
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
|
|
12617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, decorators: [{
|
|
12343
12618
|
type: Injectable,
|
|
12344
12619
|
args: [{
|
|
12345
12620
|
providedIn: 'root'
|
|
@@ -12354,9 +12629,9 @@ class TaxExemptionService extends RestService$1 {
|
|
|
12354
12629
|
this.isHydra = true;
|
|
12355
12630
|
}
|
|
12356
12631
|
}
|
|
12357
|
-
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12358
|
-
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12632
|
+
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12633
|
+
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
|
|
12634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, decorators: [{
|
|
12360
12635
|
type: Injectable,
|
|
12361
12636
|
args: [{
|
|
12362
12637
|
providedIn: 'root'
|
|
@@ -12387,9 +12662,9 @@ class PropertySaleService extends RestService$1 {
|
|
|
12387
12662
|
}));
|
|
12388
12663
|
}
|
|
12389
12664
|
}
|
|
12390
|
-
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12391
|
-
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12665
|
+
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12666
|
+
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
|
|
12667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, decorators: [{
|
|
12393
12668
|
type: Injectable,
|
|
12394
12669
|
args: [{
|
|
12395
12670
|
providedIn: 'root'
|
|
@@ -12418,316 +12693,101 @@ class PropertyShareService extends RestService$1 {
|
|
|
12418
12693
|
update(propertyShare) {
|
|
12419
12694
|
return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyShare.id}`, propertyShare)
|
|
12420
12695
|
.pipe(map((updatedPropertyShareBase) => {
|
|
12421
|
-
const updatedPropertyShare = plainToClass(PropertyShare, updatedPropertyShareBase);
|
|
12422
|
-
// if loan type is NOT vehicle - fire EventDispatcher event
|
|
12423
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_SHARE_UPDATED, null));
|
|
12424
|
-
replace(this.cache, updatedPropertyShare);
|
|
12425
|
-
this.updateCache();
|
|
12426
|
-
return updatedPropertyShare;
|
|
12427
|
-
}));
|
|
12428
|
-
}
|
|
12429
|
-
/**
|
|
12430
|
-
* Re-invite property share
|
|
12431
|
-
* @param share user to share property
|
|
12432
|
-
*/
|
|
12433
|
-
reinvite(share) {
|
|
12434
|
-
return this.http.post(`${this.environment.apiV2}/${this.url}/${share.id}/reinvite`, {});
|
|
12435
|
-
}
|
|
12436
|
-
getIncoming() {
|
|
12437
|
-
return this.get()
|
|
12438
|
-
.pipe(map((propertyShares) => {
|
|
12439
|
-
const propertySharesIncoming = [];
|
|
12440
|
-
propertyShares.forEach((propertyShare) => {
|
|
12441
|
-
var _a;
|
|
12442
|
-
if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
|
|
12443
|
-
propertySharesIncoming.push(propertyShare);
|
|
12444
|
-
}
|
|
12445
|
-
});
|
|
12446
|
-
return propertySharesIncoming;
|
|
12447
|
-
}));
|
|
12448
|
-
}
|
|
12449
|
-
/**
|
|
12450
|
-
* Get outcoming property shares list
|
|
12451
|
-
*/
|
|
12452
|
-
getOutcoming() {
|
|
12453
|
-
return this.get().pipe(map((propertyShares) => {
|
|
12454
|
-
return this.filterOutcoming(propertyShares);
|
|
12455
|
-
}));
|
|
12456
|
-
}
|
|
12457
|
-
/**
|
|
12458
|
-
* Filter outcoming property shares
|
|
12459
|
-
*/
|
|
12460
|
-
filterOutcoming(propertyShares) {
|
|
12461
|
-
const propertySharesOutcoming = [];
|
|
12462
|
-
propertyShares.forEach((propertyShare) => {
|
|
12463
|
-
var _a;
|
|
12464
|
-
if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
|
|
12465
|
-
propertySharesOutcoming.push(propertyShare);
|
|
12466
|
-
}
|
|
12467
|
-
});
|
|
12468
|
-
return propertySharesOutcoming;
|
|
12469
|
-
}
|
|
12470
|
-
getByPropertyId(propertyId) {
|
|
12471
|
-
return this.get()
|
|
12472
|
-
.pipe(map((propertyShares) => {
|
|
12473
|
-
return propertyShares.filter((propertyShare) => propertyShare.property.id === propertyId);
|
|
12474
|
-
}));
|
|
12475
|
-
}
|
|
12476
|
-
/**
|
|
12477
|
-
* Listen to User updated event
|
|
12478
|
-
*/
|
|
12479
|
-
listenUserUpdated() {
|
|
12480
|
-
this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
|
|
12481
|
-
.subscribe(() => {
|
|
12482
|
-
this.fetch().subscribe((propertyShares) => {
|
|
12483
|
-
this.cache = propertyShares;
|
|
12484
|
-
this.updateCache();
|
|
12485
|
-
});
|
|
12486
|
-
});
|
|
12487
|
-
}
|
|
12488
|
-
/**
|
|
12489
|
-
* @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
|
|
12490
|
-
*/
|
|
12491
|
-
listenSalesAdded() {
|
|
12492
|
-
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe((propertySale) => {
|
|
12493
|
-
const shareToReplace = this.find(propertySale.share.id);
|
|
12494
|
-
shareToReplace.sale = plainToClass(PropertySale, { id: propertySale.id });
|
|
12495
|
-
replace(this.cache, shareToReplace);
|
|
12496
|
-
this.updateCache();
|
|
12497
|
-
});
|
|
12498
|
-
}
|
|
12499
|
-
listenSalesDeleted() {
|
|
12500
|
-
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe((propertySale) => {
|
|
12501
|
-
const shareToReplace = this.find(propertySale.share.id);
|
|
12502
|
-
shareToReplace.sale = null;
|
|
12503
|
-
replace(this.cache, shareToReplace);
|
|
12504
|
-
this.updateCache();
|
|
12505
|
-
});
|
|
12506
|
-
}
|
|
12507
|
-
}
|
|
12508
|
-
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12509
|
-
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
12510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
12511
|
-
type: Injectable,
|
|
12512
|
-
args: [{
|
|
12513
|
-
providedIn: 'root'
|
|
12514
|
-
}]
|
|
12515
|
-
}] });
|
|
12516
|
-
|
|
12517
|
-
/**
|
|
12518
|
-
* Abstract base service that implements common services functionality
|
|
12519
|
-
* and describe abstract methods/properties that have to be implemented in child services
|
|
12520
|
-
* Model - entity service is working with
|
|
12521
|
-
* BaseModel - base entity model that extends by Model
|
|
12522
|
-
* CollectionModel - entity collection class
|
|
12523
|
-
*/
|
|
12524
|
-
class RestService {
|
|
12525
|
-
constructor(http, eventDispatcherService, environment) {
|
|
12526
|
-
this.http = http;
|
|
12527
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
12528
|
-
this.environment = environment;
|
|
12529
|
-
/**
|
|
12530
|
-
* Subject for service cache
|
|
12531
|
-
*/
|
|
12532
|
-
this.cacheSubject = new ReplaySubject(1);
|
|
12533
|
-
/**
|
|
12534
|
-
* List of methods unavailable for current API
|
|
12535
|
-
*/
|
|
12536
|
-
this.disabledMethods = [];
|
|
12537
|
-
this.listenEvents();
|
|
12538
|
-
}
|
|
12539
|
-
get apiUrl() {
|
|
12540
|
-
return `${this.environment.apiV2}/${this.entityUrl}`;
|
|
12541
|
-
}
|
|
12542
|
-
get() {
|
|
12543
|
-
this.handleAccessError('get');
|
|
12544
|
-
// Set cache as empty collection to avoid multiple requests before cache filled
|
|
12545
|
-
if (!this.cache) {
|
|
12546
|
-
this.cache = this.createCollectionInstance(this.collectionClass, []);
|
|
12547
|
-
this.resetCache();
|
|
12548
|
-
}
|
|
12549
|
-
return this.cacheSubject.asObservable();
|
|
12550
|
-
}
|
|
12551
|
-
;
|
|
12552
|
-
getSingle() {
|
|
12553
|
-
this.handleAccessError('get');
|
|
12554
|
-
return this.get().pipe(map((collection) => collection.first));
|
|
12555
|
-
}
|
|
12556
|
-
/**
|
|
12557
|
-
* Create a new Model instance in database
|
|
12558
|
-
*/
|
|
12559
|
-
post(model) {
|
|
12560
|
-
this.handleAccessError('post');
|
|
12561
|
-
return this.http.post(this.apiUrl, model)
|
|
12562
|
-
.pipe(map((response) => {
|
|
12563
|
-
const result = this.createModelInstance(this.modelClass, response);
|
|
12564
|
-
this.handleResponse([result], 'post');
|
|
12565
|
-
return result;
|
|
12566
|
-
}));
|
|
12567
|
-
}
|
|
12568
|
-
/**
|
|
12569
|
-
* Create multiple new Model instances in database
|
|
12570
|
-
*/
|
|
12571
|
-
postBatch(models) {
|
|
12572
|
-
this.handleAccessError('postBatch');
|
|
12573
|
-
return this.http.post(this.apiUrl, models)
|
|
12574
|
-
.pipe(map((response) => {
|
|
12575
|
-
const result = response.map((item) => this.createModelInstance(this.modelClass, item));
|
|
12576
|
-
this.handleResponse(result, 'post');
|
|
12577
|
-
return result;
|
|
12578
|
-
}));
|
|
12579
|
-
}
|
|
12580
|
-
/**
|
|
12581
|
-
* Change an existing Model instance in database
|
|
12582
|
-
*/
|
|
12583
|
-
put(model) {
|
|
12584
|
-
this.handleAccessError('put');
|
|
12585
|
-
return this.http.put(`${this.apiUrl}/${model.id}`, model)
|
|
12586
|
-
.pipe(map((response) => {
|
|
12587
|
-
const result = this.createModelInstance(this.modelClass, response);
|
|
12588
|
-
this.handleResponse([result], 'put');
|
|
12589
|
-
return result;
|
|
12590
|
-
}));
|
|
12591
|
-
}
|
|
12592
|
-
/**
|
|
12593
|
-
* Change multiple existing Model instances in database
|
|
12594
|
-
*/
|
|
12595
|
-
putBatch(models) {
|
|
12596
|
-
this.handleAccessError('putBatch');
|
|
12597
|
-
return this.http.put(this.apiUrl, models)
|
|
12598
|
-
.pipe(map((response) => {
|
|
12599
|
-
const result = response.map((item) => this.createModelInstance(this.modelClass, item));
|
|
12600
|
-
this.handleResponse(result, 'put');
|
|
12601
|
-
return result;
|
|
12602
|
-
}));
|
|
12603
|
-
}
|
|
12604
|
-
/**
|
|
12605
|
-
* Remove a Model instance from database
|
|
12606
|
-
*/
|
|
12607
|
-
delete(model) {
|
|
12608
|
-
this.handleAccessError('delete');
|
|
12609
|
-
return this.http.delete(`${this.apiUrl}/${model.id}`)
|
|
12610
|
-
.pipe(map(() => {
|
|
12611
|
-
this.handleResponse([model], 'delete');
|
|
12612
|
-
}));
|
|
12613
|
-
}
|
|
12614
|
-
/**
|
|
12615
|
-
* Remove multiple Model instances from database
|
|
12616
|
-
*/
|
|
12617
|
-
deleteBatch(models) {
|
|
12618
|
-
this.handleAccessError('deleteBatch');
|
|
12619
|
-
return this.http.post(`${this.apiUrl}/delete`, models)
|
|
12620
|
-
.pipe(map(() => {
|
|
12621
|
-
this.handleResponse(models, 'delete');
|
|
12622
|
-
}));
|
|
12623
|
-
}
|
|
12624
|
-
/**
|
|
12625
|
-
* Refresh cache with actual backend data
|
|
12626
|
-
*/
|
|
12627
|
-
resetCache() {
|
|
12628
|
-
this.fetch()
|
|
12629
|
-
.pipe(first$1())
|
|
12630
|
-
.subscribe();
|
|
12631
|
-
}
|
|
12632
|
-
/**
|
|
12633
|
-
* Get data from backend and fill the cache
|
|
12634
|
-
*/
|
|
12635
|
-
fetch() {
|
|
12636
|
-
return this.http.get(this.apiUrl)
|
|
12637
|
-
.pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
|
|
12638
|
-
const items = response.map((item) => this.createModelInstance(this.modelClass, item));
|
|
12639
|
-
this.cache = this.createCollectionInstance(this.collectionClass, items);
|
|
12640
|
-
this.cacheSubject.next(this.cache);
|
|
12641
|
-
return this.cache;
|
|
12642
|
-
}));
|
|
12643
|
-
}
|
|
12644
|
-
;
|
|
12645
|
-
/**
|
|
12646
|
-
* Handle response data - update cache and dispatch event if it is needed
|
|
12647
|
-
*/
|
|
12648
|
-
handleResponse(response, method) {
|
|
12649
|
-
this.updateCache(response, method);
|
|
12650
|
-
// dispatch event for interested services
|
|
12651
|
-
if (response[0] instanceof ObservableModel) {
|
|
12652
|
-
this.dispatchEvent(method, response);
|
|
12653
|
-
}
|
|
12654
|
-
}
|
|
12655
|
-
/**
|
|
12656
|
-
* Update cache with passed items. Add/Update detects automatically, Delete via optional flag
|
|
12657
|
-
*/
|
|
12658
|
-
updateCache(items, method) {
|
|
12659
|
-
switch (method) {
|
|
12660
|
-
case 'post':
|
|
12661
|
-
this.cache = this.cache.push(...items);
|
|
12662
|
-
break;
|
|
12663
|
-
case 'put':
|
|
12664
|
-
items.forEach((item) => {
|
|
12665
|
-
this.cache = this.cache.replaceBy('id', item.id, item);
|
|
12666
|
-
});
|
|
12667
|
-
break;
|
|
12668
|
-
case 'delete':
|
|
12669
|
-
this.cache = this.cache.removeBy('id', items.map((item) => item.id));
|
|
12670
|
-
}
|
|
12671
|
-
this.cacheSubject.next(this.cache);
|
|
12696
|
+
const updatedPropertyShare = plainToClass(PropertyShare, updatedPropertyShareBase);
|
|
12697
|
+
// if loan type is NOT vehicle - fire EventDispatcher event
|
|
12698
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_SHARE_UPDATED, null));
|
|
12699
|
+
replace(this.cache, updatedPropertyShare);
|
|
12700
|
+
this.updateCache();
|
|
12701
|
+
return updatedPropertyShare;
|
|
12702
|
+
}));
|
|
12672
12703
|
}
|
|
12673
12704
|
/**
|
|
12674
|
-
*
|
|
12705
|
+
* Re-invite property share
|
|
12706
|
+
* @param share user to share property
|
|
12675
12707
|
*/
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12708
|
+
reinvite(share) {
|
|
12709
|
+
return this.http.post(`${this.environment.apiV2}/${this.url}/${share.id}/reinvite`, {});
|
|
12710
|
+
}
|
|
12711
|
+
getIncoming() {
|
|
12712
|
+
return this.get()
|
|
12713
|
+
.pipe(map((propertyShares) => {
|
|
12714
|
+
const propertySharesIncoming = [];
|
|
12715
|
+
propertyShares.forEach((propertyShare) => {
|
|
12716
|
+
var _a;
|
|
12717
|
+
if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
|
|
12718
|
+
propertySharesIncoming.push(propertyShare);
|
|
12719
|
+
}
|
|
12720
|
+
});
|
|
12721
|
+
return propertySharesIncoming;
|
|
12722
|
+
}));
|
|
12679
12723
|
}
|
|
12680
12724
|
/**
|
|
12681
|
-
*
|
|
12682
|
-
* @param model The class whose instance to be created
|
|
12683
|
-
* @param plain Single object or array from which will be created model instance(s)
|
|
12725
|
+
* Get outcoming property shares list
|
|
12684
12726
|
*/
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
createCollectionInstance(collectionClass, items) {
|
|
12690
|
-
return new collectionClass(items);
|
|
12727
|
+
getOutcoming() {
|
|
12728
|
+
return this.get().pipe(map((propertyShares) => {
|
|
12729
|
+
return this.filterOutcoming(propertyShares);
|
|
12730
|
+
}));
|
|
12691
12731
|
}
|
|
12692
12732
|
/**
|
|
12693
|
-
*
|
|
12694
|
-
* Some entities does not have endpoints for all methods.
|
|
12733
|
+
* Filter outcoming property shares
|
|
12695
12734
|
*/
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12735
|
+
filterOutcoming(propertyShares) {
|
|
12736
|
+
const propertySharesOutcoming = [];
|
|
12737
|
+
propertyShares.forEach((propertyShare) => {
|
|
12738
|
+
var _a;
|
|
12739
|
+
if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
|
|
12740
|
+
propertySharesOutcoming.push(propertyShare);
|
|
12741
|
+
}
|
|
12742
|
+
});
|
|
12743
|
+
return propertySharesOutcoming;
|
|
12744
|
+
}
|
|
12745
|
+
getByPropertyId(propertyId) {
|
|
12746
|
+
return this.get()
|
|
12747
|
+
.pipe(map((propertyShares) => {
|
|
12748
|
+
return propertyShares.filter((propertyShare) => propertyShare.property.id === propertyId);
|
|
12749
|
+
}));
|
|
12701
12750
|
}
|
|
12702
12751
|
/**
|
|
12703
|
-
*
|
|
12704
|
-
* @param type The class whose changes should be listened for
|
|
12705
|
-
* @param methods The list of http methods should be listened for
|
|
12706
|
-
* @param callback The function to be called when event triggered
|
|
12752
|
+
* Listen to User updated event
|
|
12707
12753
|
*/
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12754
|
+
listenUserUpdated() {
|
|
12755
|
+
this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
|
|
12756
|
+
.subscribe(() => {
|
|
12757
|
+
this.fetch().subscribe((propertyShares) => {
|
|
12758
|
+
this.cache = propertyShares;
|
|
12759
|
+
this.updateCache();
|
|
12712
12760
|
});
|
|
12713
12761
|
});
|
|
12714
12762
|
}
|
|
12715
12763
|
/**
|
|
12716
|
-
*
|
|
12764
|
+
* @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
|
|
12717
12765
|
*/
|
|
12718
|
-
|
|
12766
|
+
listenSalesAdded() {
|
|
12767
|
+
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_ADDED).subscribe((propertySale) => {
|
|
12768
|
+
const shareToReplace = this.find(propertySale.share.id);
|
|
12769
|
+
shareToReplace.sale = plainToClass(PropertySale, { id: propertySale.id });
|
|
12770
|
+
replace(this.cache, shareToReplace);
|
|
12771
|
+
this.updateCache();
|
|
12772
|
+
});
|
|
12773
|
+
}
|
|
12774
|
+
listenSalesDeleted() {
|
|
12775
|
+
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SALE_DELETED).subscribe((propertySale) => {
|
|
12776
|
+
const shareToReplace = this.find(propertySale.share.id);
|
|
12777
|
+
shareToReplace.sale = null;
|
|
12778
|
+
replace(this.cache, shareToReplace);
|
|
12779
|
+
this.updateCache();
|
|
12780
|
+
});
|
|
12781
|
+
}
|
|
12719
12782
|
}
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12783
|
+
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12784
|
+
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
12785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
12723
12786
|
type: Injectable,
|
|
12724
12787
|
args: [{
|
|
12725
12788
|
providedIn: 'root'
|
|
12726
12789
|
}]
|
|
12727
|
-
}]
|
|
12728
|
-
type: Inject,
|
|
12729
|
-
args: ['environment']
|
|
12730
|
-
}] }]; } });
|
|
12790
|
+
}] });
|
|
12731
12791
|
|
|
12732
12792
|
/**
|
|
12733
12793
|
* @Todo Alex remove functionality related to PropertyShare
|
|
@@ -12834,9 +12894,9 @@ class PropertyService extends RestService {
|
|
|
12834
12894
|
}));
|
|
12835
12895
|
}
|
|
12836
12896
|
}
|
|
12837
|
-
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12838
|
-
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12897
|
+
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12898
|
+
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
12899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, decorators: [{
|
|
12840
12900
|
type: Injectable,
|
|
12841
12901
|
args: [{
|
|
12842
12902
|
providedIn: 'root'
|
|
@@ -12880,9 +12940,9 @@ class ServiceNotificationService extends RestService$1 {
|
|
|
12880
12940
|
});
|
|
12881
12941
|
}
|
|
12882
12942
|
}
|
|
12883
|
-
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12884
|
-
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12943
|
+
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12944
|
+
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
|
|
12945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
12886
12946
|
type: Injectable,
|
|
12887
12947
|
args: [{
|
|
12888
12948
|
providedIn: 'root'
|
|
@@ -12892,12 +12952,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
12892
12952
|
args: ['environment']
|
|
12893
12953
|
}] }, { type: ToastService }, { type: SseService }]; } });
|
|
12894
12954
|
|
|
12895
|
-
var MessagesEnum$
|
|
12955
|
+
var MessagesEnum$2;
|
|
12896
12956
|
(function (MessagesEnum) {
|
|
12897
12957
|
MessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
|
|
12898
12958
|
MessagesEnum["LOGO_ERROR_FORMAT"] = "Wrong file format. Allowed extensions: jpg, img, png";
|
|
12899
12959
|
MessagesEnum["LOGO_ERROR_SIZE"] = "The file is too big. Maximum size is 2mb";
|
|
12900
|
-
})(MessagesEnum$
|
|
12960
|
+
})(MessagesEnum$2 || (MessagesEnum$2 = {}));
|
|
12901
12961
|
|
|
12902
12962
|
class SoleBusinessService extends RestService$1 {
|
|
12903
12963
|
constructor() {
|
|
@@ -12921,7 +12981,7 @@ class SoleBusinessService extends RestService$1 {
|
|
|
12921
12981
|
replace(tempCache, plainToClass(SoleBusiness, updatedBusiness));
|
|
12922
12982
|
this.cache = tempCache;
|
|
12923
12983
|
this.cacheSubject.next(this.cache);
|
|
12924
|
-
this.toastService.success(MessagesEnum$
|
|
12984
|
+
this.toastService.success(MessagesEnum$2.LOGO_UPDATED);
|
|
12925
12985
|
}), catchError((error) => {
|
|
12926
12986
|
// Show error when user provided wrong image (format or size)
|
|
12927
12987
|
if (error.status === 422) {
|
|
@@ -12931,9 +12991,9 @@ class SoleBusinessService extends RestService$1 {
|
|
|
12931
12991
|
}));
|
|
12932
12992
|
}
|
|
12933
12993
|
}
|
|
12934
|
-
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12935
|
-
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12994
|
+
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12995
|
+
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
|
|
12996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, decorators: [{
|
|
12937
12997
|
type: Injectable,
|
|
12938
12998
|
args: [{
|
|
12939
12999
|
providedIn: 'root'
|
|
@@ -12948,9 +13008,9 @@ class SoleBusinessActivityService extends RestService$1 {
|
|
|
12948
13008
|
this.isHydra = true;
|
|
12949
13009
|
}
|
|
12950
13010
|
}
|
|
12951
|
-
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12952
|
-
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13011
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13012
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
13013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
12954
13014
|
type: Injectable,
|
|
12955
13015
|
args: [{
|
|
12956
13016
|
providedIn: 'root'
|
|
@@ -12976,9 +13036,9 @@ class SoleBusinessLossService extends RestService$1 {
|
|
|
12976
13036
|
});
|
|
12977
13037
|
}
|
|
12978
13038
|
}
|
|
12979
|
-
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12980
|
-
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13039
|
+
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13040
|
+
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
|
|
13041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
12982
13042
|
type: Injectable,
|
|
12983
13043
|
args: [{
|
|
12984
13044
|
providedIn: 'root'
|
|
@@ -12996,9 +13056,9 @@ class SoleBusinessLossOffsetRuleService extends RestService$1 {
|
|
|
12996
13056
|
this.isHydra = true;
|
|
12997
13057
|
}
|
|
12998
13058
|
}
|
|
12999
|
-
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13000
|
-
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13059
|
+
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13060
|
+
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
|
|
13061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
|
|
13002
13062
|
type: Injectable,
|
|
13003
13063
|
args: [{
|
|
13004
13064
|
providedIn: 'root'
|
|
@@ -13013,9 +13073,9 @@ class SoleContactService extends RestService$1 {
|
|
|
13013
13073
|
this.isHydra = true;
|
|
13014
13074
|
}
|
|
13015
13075
|
}
|
|
13016
|
-
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13017
|
-
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13076
|
+
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13077
|
+
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, providedIn: 'root' });
|
|
13078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, decorators: [{
|
|
13019
13079
|
type: Injectable,
|
|
13020
13080
|
args: [{
|
|
13021
13081
|
providedIn: 'root'
|
|
@@ -13071,9 +13131,9 @@ class SoleDepreciationMethodService {
|
|
|
13071
13131
|
});
|
|
13072
13132
|
}
|
|
13073
13133
|
}
|
|
13074
|
-
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13075
|
-
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13134
|
+
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13135
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
13136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
13077
13137
|
type: Injectable,
|
|
13078
13138
|
args: [{
|
|
13079
13139
|
providedIn: 'root'
|
|
@@ -13126,9 +13186,9 @@ class SoleDetailsService {
|
|
|
13126
13186
|
}));
|
|
13127
13187
|
}
|
|
13128
13188
|
}
|
|
13129
|
-
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13130
|
-
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13189
|
+
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13190
|
+
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
|
|
13191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, decorators: [{
|
|
13132
13192
|
type: Injectable,
|
|
13133
13193
|
args: [{
|
|
13134
13194
|
providedIn: 'root'
|
|
@@ -13202,9 +13262,9 @@ class SoleInvoiceService extends RestService$1 {
|
|
|
13202
13262
|
});
|
|
13203
13263
|
}
|
|
13204
13264
|
}
|
|
13205
|
-
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13206
|
-
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13265
|
+
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13266
|
+
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
|
|
13267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
13208
13268
|
type: Injectable,
|
|
13209
13269
|
args: [{
|
|
13210
13270
|
providedIn: 'root'
|
|
@@ -13219,9 +13279,9 @@ class SoleInvoiceTemplateService extends RestService$1 {
|
|
|
13219
13279
|
this.isHydra = true;
|
|
13220
13280
|
}
|
|
13221
13281
|
}
|
|
13222
|
-
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13223
|
-
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13282
|
+
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13283
|
+
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
|
|
13284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
|
|
13225
13285
|
type: Injectable,
|
|
13226
13286
|
args: [{
|
|
13227
13287
|
providedIn: 'root'
|
|
@@ -13236,9 +13296,9 @@ class BasReportService extends RestService$1 {
|
|
|
13236
13296
|
this.isHydra = true;
|
|
13237
13297
|
}
|
|
13238
13298
|
}
|
|
13239
|
-
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13240
|
-
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13299
|
+
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13300
|
+
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasReportService, providedIn: 'root' });
|
|
13301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasReportService, decorators: [{
|
|
13242
13302
|
type: Injectable,
|
|
13243
13303
|
args: [{
|
|
13244
13304
|
providedIn: 'root'
|
|
@@ -13256,9 +13316,9 @@ class ServicePriceService extends RestService$1 {
|
|
|
13256
13316
|
this.isHydra = true;
|
|
13257
13317
|
}
|
|
13258
13318
|
}
|
|
13259
|
-
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13260
|
-
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13319
|
+
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13320
|
+
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
|
|
13321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, decorators: [{
|
|
13262
13322
|
type: Injectable,
|
|
13263
13323
|
args: [{
|
|
13264
13324
|
providedIn: 'root'
|
|
@@ -13372,9 +13432,9 @@ class SubscriptionService {
|
|
|
13372
13432
|
return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
|
|
13373
13433
|
}
|
|
13374
13434
|
}
|
|
13375
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13376
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13435
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13436
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
|
|
13437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
13378
13438
|
type: Injectable,
|
|
13379
13439
|
args: [{
|
|
13380
13440
|
providedIn: 'root'
|
|
@@ -13409,9 +13469,9 @@ class TaxReviewHistoryService extends RestService$1 {
|
|
|
13409
13469
|
});
|
|
13410
13470
|
}
|
|
13411
13471
|
}
|
|
13412
|
-
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13413
|
-
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13472
|
+
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13473
|
+
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
13474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
13415
13475
|
type: Injectable,
|
|
13416
13476
|
args: [{
|
|
13417
13477
|
providedIn: 'root'
|
|
@@ -13500,9 +13560,9 @@ class TaxReviewService extends RestService$1 {
|
|
|
13500
13560
|
});
|
|
13501
13561
|
}
|
|
13502
13562
|
}
|
|
13503
|
-
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13504
|
-
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13563
|
+
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13564
|
+
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
|
|
13565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
13506
13566
|
type: Injectable,
|
|
13507
13567
|
args: [{
|
|
13508
13568
|
providedIn: 'root'
|
|
@@ -13559,9 +13619,9 @@ class TaxSummaryService {
|
|
|
13559
13619
|
});
|
|
13560
13620
|
}
|
|
13561
13621
|
}
|
|
13562
|
-
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13563
|
-
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13622
|
+
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13623
|
+
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
|
|
13624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, decorators: [{
|
|
13565
13625
|
type: Injectable,
|
|
13566
13626
|
args: [{
|
|
13567
13627
|
providedIn: 'root'
|
|
@@ -13657,9 +13717,9 @@ class TransactionAllocationService extends RestService$1 {
|
|
|
13657
13717
|
});
|
|
13658
13718
|
}
|
|
13659
13719
|
}
|
|
13660
|
-
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13661
|
-
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13720
|
+
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13721
|
+
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
|
|
13722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
13663
13723
|
type: Injectable,
|
|
13664
13724
|
args: [{
|
|
13665
13725
|
providedIn: 'root'
|
|
@@ -13685,9 +13745,9 @@ class TransactionReceiptService extends ReceiptService {
|
|
|
13685
13745
|
this.listenEvents();
|
|
13686
13746
|
}
|
|
13687
13747
|
}
|
|
13688
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13689
|
-
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13748
|
+
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13749
|
+
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
13750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
13691
13751
|
type: Injectable,
|
|
13692
13752
|
args: [{
|
|
13693
13753
|
providedIn: 'root'
|
|
@@ -13697,19 +13757,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
13697
13757
|
args: ['environment']
|
|
13698
13758
|
}] }, { type: ToastService }]; } });
|
|
13699
13759
|
|
|
13700
|
-
function enumToList(data) {
|
|
13701
|
-
const list = [];
|
|
13702
|
-
for (const key in data) {
|
|
13703
|
-
if (Number(key) >= 0) {
|
|
13704
|
-
list.push({
|
|
13705
|
-
label: data[key],
|
|
13706
|
-
value: Number(key)
|
|
13707
|
-
});
|
|
13708
|
-
}
|
|
13709
|
-
}
|
|
13710
|
-
return list;
|
|
13711
|
-
}
|
|
13712
|
-
|
|
13713
13760
|
/**
|
|
13714
13761
|
* Service for transactions business logic
|
|
13715
13762
|
*/
|
|
@@ -13957,31 +14004,6 @@ class TransactionService extends RestService$1 {
|
|
|
13957
14004
|
}
|
|
13958
14005
|
return amount;
|
|
13959
14006
|
}
|
|
13960
|
-
/**
|
|
13961
|
-
* get label for transaction tax field depended of selected chart account.
|
|
13962
|
-
* tax type depends of chart account heading or category.
|
|
13963
|
-
*/
|
|
13964
|
-
getTaxLabel(chartAccounts) {
|
|
13965
|
-
var _a, _b;
|
|
13966
|
-
// get simple array of ids from enum with taxable chart accounts headings
|
|
13967
|
-
const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
|
|
13968
|
-
.map((item) => item.value);
|
|
13969
|
-
// get simple array of ids from enum with tax deductible chart accounts headings
|
|
13970
|
-
const deductibleCAHeadingsIds = enumToList(ChartAccountsHeadingTaxDeductibleEnum)
|
|
13971
|
-
.map((item) => item.value);
|
|
13972
|
-
// check if one of ids arrays includes current chart accounts heading id and set tax label
|
|
13973
|
-
// otherwise label is empty for this class
|
|
13974
|
-
switch (true) {
|
|
13975
|
-
case taxableCAHeadingsIds.includes((_a = chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id):
|
|
13976
|
-
return ChartAccountsTaxLabelsEnum.TAX_PAID;
|
|
13977
|
-
case deductibleCAHeadingsIds.includes((_b = chartAccounts.heading) === null || _b === void 0 ? void 0 : _b.id):
|
|
13978
|
-
return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
|
|
13979
|
-
case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(chartAccounts.category):
|
|
13980
|
-
return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
|
|
13981
|
-
default:
|
|
13982
|
-
return null;
|
|
13983
|
-
}
|
|
13984
|
-
}
|
|
13985
14007
|
/**
|
|
13986
14008
|
* Listen to EventDispatcherService event related to Depreciation changing
|
|
13987
14009
|
*/
|
|
@@ -14045,9 +14067,9 @@ class TransactionService extends RestService$1 {
|
|
|
14045
14067
|
});
|
|
14046
14068
|
}
|
|
14047
14069
|
}
|
|
14048
|
-
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14049
|
-
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14070
|
+
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14071
|
+
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
14072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, decorators: [{
|
|
14051
14073
|
type: Injectable,
|
|
14052
14074
|
args: [{
|
|
14053
14075
|
providedIn: 'root'
|
|
@@ -14076,9 +14098,9 @@ class TutorialVideoService {
|
|
|
14076
14098
|
}
|
|
14077
14099
|
TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
|
|
14078
14100
|
TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
|
|
14079
|
-
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14080
|
-
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14101
|
+
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14102
|
+
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
|
|
14103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, decorators: [{
|
|
14082
14104
|
type: Injectable,
|
|
14083
14105
|
args: [{
|
|
14084
14106
|
providedIn: 'root'
|
|
@@ -14098,9 +14120,9 @@ class VehicleService extends RestService$1 {
|
|
|
14098
14120
|
this.modelClass = Vehicle;
|
|
14099
14121
|
}
|
|
14100
14122
|
}
|
|
14101
|
-
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14102
|
-
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14123
|
+
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14124
|
+
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, providedIn: 'root' });
|
|
14125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, decorators: [{
|
|
14104
14126
|
type: Injectable,
|
|
14105
14127
|
args: [{
|
|
14106
14128
|
providedIn: 'root'
|
|
@@ -14172,9 +14194,9 @@ class VehicleClaimService extends RestService$1 {
|
|
|
14172
14194
|
combineLatest(batch$).subscribe();
|
|
14173
14195
|
}
|
|
14174
14196
|
}
|
|
14175
|
-
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14176
|
-
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14197
|
+
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14198
|
+
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
|
|
14199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, decorators: [{
|
|
14178
14200
|
type: Injectable,
|
|
14179
14201
|
args: [{
|
|
14180
14202
|
providedIn: 'root'
|
|
@@ -14251,9 +14273,9 @@ class VehicleClaimDetailsService {
|
|
|
14251
14273
|
this.update(vehicleClaimDetails).subscribe();
|
|
14252
14274
|
}
|
|
14253
14275
|
}
|
|
14254
|
-
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14255
|
-
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14276
|
+
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14277
|
+
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
|
|
14278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
|
|
14257
14279
|
type: Injectable,
|
|
14258
14280
|
args: [{
|
|
14259
14281
|
providedIn: 'root'
|
|
@@ -14273,9 +14295,9 @@ class VehicleLogbookService extends RestService$1 {
|
|
|
14273
14295
|
this.modelClass = VehicleLogbook;
|
|
14274
14296
|
}
|
|
14275
14297
|
}
|
|
14276
|
-
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14277
|
-
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14298
|
+
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14299
|
+
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
|
|
14300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, decorators: [{
|
|
14279
14301
|
type: Injectable,
|
|
14280
14302
|
args: [{
|
|
14281
14303
|
providedIn: 'root'
|
|
@@ -14308,9 +14330,9 @@ class OccupationService {
|
|
|
14308
14330
|
return this.occupationsSubject.asObservable();
|
|
14309
14331
|
}
|
|
14310
14332
|
}
|
|
14311
|
-
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14312
|
-
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14333
|
+
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14334
|
+
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, providedIn: 'root' });
|
|
14335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, decorators: [{
|
|
14314
14336
|
type: Injectable,
|
|
14315
14337
|
args: [{
|
|
14316
14338
|
providedIn: 'root'
|
|
@@ -14354,9 +14376,9 @@ class UserEventSettingService extends RestService$1 {
|
|
|
14354
14376
|
}));
|
|
14355
14377
|
}
|
|
14356
14378
|
}
|
|
14357
|
-
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14358
|
-
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14379
|
+
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14380
|
+
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
|
|
14381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, decorators: [{
|
|
14360
14382
|
type: Injectable,
|
|
14361
14383
|
args: [{
|
|
14362
14384
|
providedIn: 'root'
|
|
@@ -14371,9 +14393,9 @@ class UserEventTypeService extends RestService$1 {
|
|
|
14371
14393
|
this.isHydra = true;
|
|
14372
14394
|
}
|
|
14373
14395
|
}
|
|
14374
|
-
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14375
|
-
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14396
|
+
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14397
|
+
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
|
|
14398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, decorators: [{
|
|
14377
14399
|
type: Injectable,
|
|
14378
14400
|
args: [{
|
|
14379
14401
|
providedIn: 'root'
|
|
@@ -14390,9 +14412,9 @@ class UsersInviteService extends RestService$1 {
|
|
|
14390
14412
|
this.url = 'users/invite';
|
|
14391
14413
|
}
|
|
14392
14414
|
}
|
|
14393
|
-
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14394
|
-
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14415
|
+
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14416
|
+
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
|
|
14417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, decorators: [{
|
|
14396
14418
|
type: Injectable,
|
|
14397
14419
|
args: [{
|
|
14398
14420
|
providedIn: 'root'
|
|
@@ -14586,9 +14608,9 @@ class AccountSetupService {
|
|
|
14586
14608
|
}));
|
|
14587
14609
|
}
|
|
14588
14610
|
}
|
|
14589
|
-
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14590
|
-
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14611
|
+
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14612
|
+
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
|
|
14613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, decorators: [{
|
|
14592
14614
|
type: Injectable,
|
|
14593
14615
|
args: [{
|
|
14594
14616
|
providedIn: 'root'
|
|
@@ -14614,9 +14636,9 @@ class RewardfulService {
|
|
|
14614
14636
|
});
|
|
14615
14637
|
}
|
|
14616
14638
|
}
|
|
14617
|
-
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14618
|
-
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14639
|
+
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14640
|
+
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, providedIn: 'root' });
|
|
14641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, decorators: [{
|
|
14620
14642
|
type: Injectable,
|
|
14621
14643
|
args: [{
|
|
14622
14644
|
providedIn: 'root'
|
|
@@ -14661,9 +14683,9 @@ class AssetsService {
|
|
|
14661
14683
|
return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
|
|
14662
14684
|
}
|
|
14663
14685
|
}
|
|
14664
|
-
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14665
|
-
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14686
|
+
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14687
|
+
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, providedIn: 'root' });
|
|
14688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, decorators: [{
|
|
14667
14689
|
type: Injectable,
|
|
14668
14690
|
args: [{
|
|
14669
14691
|
providedIn: 'root'
|
|
@@ -14726,9 +14748,9 @@ class BankTransactionCalculationService {
|
|
|
14726
14748
|
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
14727
14749
|
}
|
|
14728
14750
|
}
|
|
14729
|
-
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14730
|
-
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14751
|
+
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14752
|
+
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
|
|
14753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
14732
14754
|
type: Injectable,
|
|
14733
14755
|
args: [{
|
|
14734
14756
|
providedIn: 'root'
|
|
@@ -14757,9 +14779,9 @@ class BankAccountCalculationService {
|
|
|
14757
14779
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
14758
14780
|
}
|
|
14759
14781
|
}
|
|
14760
|
-
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14761
|
-
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14782
|
+
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14783
|
+
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
|
|
14784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
14763
14785
|
type: Injectable,
|
|
14764
14786
|
args: [{
|
|
14765
14787
|
providedIn: 'root'
|
|
@@ -14784,9 +14806,9 @@ class ExportFormatterService {
|
|
|
14784
14806
|
}));
|
|
14785
14807
|
}
|
|
14786
14808
|
}
|
|
14787
|
-
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14788
|
-
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14809
|
+
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$2.CurrencyPipe }, { token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14810
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
14811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
14790
14812
|
type: Injectable,
|
|
14791
14813
|
args: [{
|
|
14792
14814
|
providedIn: 'root'
|
|
@@ -14807,9 +14829,9 @@ class HeaderTitleService {
|
|
|
14807
14829
|
}), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
|
|
14808
14830
|
}
|
|
14809
14831
|
}
|
|
14810
|
-
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14811
|
-
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14832
|
+
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14833
|
+
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
|
|
14834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, decorators: [{
|
|
14813
14835
|
type: Injectable,
|
|
14814
14836
|
args: [{
|
|
14815
14837
|
providedIn: 'root'
|
|
@@ -14843,9 +14865,9 @@ class IntercomService {
|
|
|
14843
14865
|
window.Intercom('boot', connectionCredentials);
|
|
14844
14866
|
}
|
|
14845
14867
|
}
|
|
14846
|
-
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14847
|
-
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14868
|
+
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14869
|
+
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, providedIn: 'root' });
|
|
14870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, decorators: [{
|
|
14849
14871
|
type: Injectable,
|
|
14850
14872
|
args: [{
|
|
14851
14873
|
providedIn: 'root'
|
|
@@ -14906,9 +14928,9 @@ class PdfFromDomElementService {
|
|
|
14906
14928
|
.then((blob) => new File([blob], filename, { type: 'application/pdf' })));
|
|
14907
14929
|
}
|
|
14908
14930
|
}
|
|
14909
|
-
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14910
|
-
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14931
|
+
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14932
|
+
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
|
|
14933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, decorators: [{
|
|
14912
14934
|
type: Injectable,
|
|
14913
14935
|
args: [{
|
|
14914
14936
|
providedIn: 'root'
|
|
@@ -14987,9 +15009,9 @@ class PdfFromTableService {
|
|
|
14987
15009
|
doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
|
|
14988
15010
|
}
|
|
14989
15011
|
}
|
|
14990
|
-
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14991
|
-
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15012
|
+
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15013
|
+
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
|
|
15014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, decorators: [{
|
|
14993
15015
|
type: Injectable,
|
|
14994
15016
|
args: [{
|
|
14995
15017
|
providedIn: 'root'
|
|
@@ -15021,9 +15043,9 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
15021
15043
|
return pdf;
|
|
15022
15044
|
}
|
|
15023
15045
|
}
|
|
15024
|
-
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15025
|
-
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15046
|
+
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15047
|
+
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
|
|
15048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, decorators: [{
|
|
15027
15049
|
type: Injectable,
|
|
15028
15050
|
args: [{
|
|
15029
15051
|
providedIn: 'root'
|
|
@@ -15056,9 +15078,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
|
15056
15078
|
return pdf;
|
|
15057
15079
|
}
|
|
15058
15080
|
}
|
|
15059
|
-
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15060
|
-
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15081
|
+
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15082
|
+
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
|
|
15083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
|
|
15062
15084
|
type: Injectable,
|
|
15063
15085
|
args: [{
|
|
15064
15086
|
providedIn: 'root'
|
|
@@ -15091,9 +15113,9 @@ class EquityPositionChartService {
|
|
|
15091
15113
|
}));
|
|
15092
15114
|
}
|
|
15093
15115
|
}
|
|
15094
|
-
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15095
|
-
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15116
|
+
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15117
|
+
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
|
|
15118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, decorators: [{
|
|
15097
15119
|
type: Injectable,
|
|
15098
15120
|
args: [{
|
|
15099
15121
|
providedIn: 'root'
|
|
@@ -15265,9 +15287,9 @@ class PropertyCalculationService {
|
|
|
15265
15287
|
}
|
|
15266
15288
|
}
|
|
15267
15289
|
}
|
|
15268
|
-
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15269
|
-
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15290
|
+
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15291
|
+
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
|
|
15292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, decorators: [{
|
|
15271
15293
|
type: Injectable,
|
|
15272
15294
|
args: [{
|
|
15273
15295
|
providedIn: 'root'
|
|
@@ -15324,9 +15346,9 @@ class PropertyTransactionReportService {
|
|
|
15324
15346
|
}));
|
|
15325
15347
|
}
|
|
15326
15348
|
}
|
|
15327
|
-
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15328
|
-
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15349
|
+
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15350
|
+
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
|
|
15351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
|
|
15330
15352
|
type: Injectable,
|
|
15331
15353
|
args: [{
|
|
15332
15354
|
providedIn: 'root'
|
|
@@ -15405,9 +15427,9 @@ class TransactionCalculationService {
|
|
|
15405
15427
|
return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
|
|
15406
15428
|
}
|
|
15407
15429
|
}
|
|
15408
|
-
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15409
|
-
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15430
|
+
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15431
|
+
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
|
|
15432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, decorators: [{
|
|
15411
15433
|
type: Injectable,
|
|
15412
15434
|
args: [{
|
|
15413
15435
|
providedIn: 'root'
|
|
@@ -15467,9 +15489,9 @@ class LogbookBestPeriodService {
|
|
|
15467
15489
|
});
|
|
15468
15490
|
}
|
|
15469
15491
|
}
|
|
15470
|
-
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15471
|
-
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15492
|
+
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15493
|
+
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
|
|
15494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
|
|
15473
15495
|
type: Injectable,
|
|
15474
15496
|
args: [{
|
|
15475
15497
|
providedIn: 'root'
|
|
@@ -15510,9 +15532,9 @@ class XlsxService {
|
|
|
15510
15532
|
return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
15511
15533
|
}
|
|
15512
15534
|
}
|
|
15513
|
-
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
15514
|
-
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
15515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
15535
|
+
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15536
|
+
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, providedIn: 'root' });
|
|
15537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, decorators: [{
|
|
15516
15538
|
type: Injectable,
|
|
15517
15539
|
args: [{
|
|
15518
15540
|
providedIn: 'root'
|
|
@@ -15745,15 +15767,15 @@ function passwordMatchValidator(newPassControlName, confirmPassControlName) {
|
|
|
15745
15767
|
};
|
|
15746
15768
|
}
|
|
15747
15769
|
|
|
15748
|
-
var MessagesEnum;
|
|
15770
|
+
var MessagesEnum$1;
|
|
15749
15771
|
(function (MessagesEnum) {
|
|
15750
15772
|
MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
|
|
15751
|
-
})(MessagesEnum || (MessagesEnum = {}));
|
|
15773
|
+
})(MessagesEnum$1 || (MessagesEnum$1 = {}));
|
|
15752
15774
|
|
|
15753
15775
|
/**
|
|
15754
15776
|
* Validation function, that checks If date form value is more than provided date
|
|
15755
15777
|
*/
|
|
15756
|
-
function minDateValidator(date, message = MessagesEnum.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
|
|
15778
|
+
function minDateValidator(date, message = MessagesEnum$1.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
|
|
15757
15779
|
return (control) => {
|
|
15758
15780
|
if (!control.value) {
|
|
15759
15781
|
return null;
|
|
@@ -15792,6 +15814,45 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
|
|
|
15792
15814
|
};
|
|
15793
15815
|
}
|
|
15794
15816
|
|
|
15817
|
+
/**
|
|
15818
|
+
* Validation function, that checks If provided date is within a current financial year
|
|
15819
|
+
*/
|
|
15820
|
+
function currentFinYearValidator() {
|
|
15821
|
+
const currentFinYear = new FinancialYear();
|
|
15822
|
+
return (control) => {
|
|
15823
|
+
if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
|
|
15824
|
+
return null;
|
|
15825
|
+
}
|
|
15826
|
+
return { notCurrentFinYear: true };
|
|
15827
|
+
};
|
|
15828
|
+
}
|
|
15829
|
+
|
|
15830
|
+
const MAX_SIZE = 4194304;
|
|
15831
|
+
class FileValidator {
|
|
15832
|
+
// File max size check
|
|
15833
|
+
static fileMaxSize(maxSize = MAX_SIZE) {
|
|
15834
|
+
const validatorFn = (file) => {
|
|
15835
|
+
return file.size > maxSize ? { fileMaxSize: { maxSize } } : null;
|
|
15836
|
+
};
|
|
15837
|
+
return FileValidator.fileValidation(validatorFn);
|
|
15838
|
+
}
|
|
15839
|
+
// File extension check
|
|
15840
|
+
static fileExtensions(allowedExtensions = DOCUMENT_FILE_TYPES.all) {
|
|
15841
|
+
const validatorFn = (file) => {
|
|
15842
|
+
return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
|
|
15843
|
+
};
|
|
15844
|
+
return FileValidator.fileValidation(validatorFn);
|
|
15845
|
+
}
|
|
15846
|
+
static fileValidation(validatorFn) {
|
|
15847
|
+
return (formControl) => {
|
|
15848
|
+
if (!formControl.value) {
|
|
15849
|
+
return null;
|
|
15850
|
+
}
|
|
15851
|
+
return validatorFn(formControl.value);
|
|
15852
|
+
};
|
|
15853
|
+
}
|
|
15854
|
+
}
|
|
15855
|
+
|
|
15795
15856
|
/**
|
|
15796
15857
|
* Validator for address, check if corelogic suggestion selected correctly
|
|
15797
15858
|
*/
|
|
@@ -17528,21 +17589,24 @@ class MyTaxOtherIncomeForm extends AbstractForm {
|
|
|
17528
17589
|
class MyTaxPartnershipsAndTrustsForm extends AbstractForm {
|
|
17529
17590
|
constructor(partnershipsAndTrusts) {
|
|
17530
17591
|
super({
|
|
17531
|
-
|
|
17532
|
-
value: partnershipsAndTrusts.
|
|
17592
|
+
partnershipsIncomeTotalAmount: new FormControl({
|
|
17593
|
+
value: partnershipsAndTrusts.partnershipsIncomeTotalAmount,
|
|
17594
|
+
disabled: true
|
|
17595
|
+
}),
|
|
17596
|
+
partnershipsExpenseTotalAmount: new FormControl({
|
|
17597
|
+
value: partnershipsAndTrusts.partnershipsExpenseTotalAmount,
|
|
17598
|
+
disabled: true
|
|
17599
|
+
}),
|
|
17600
|
+
trustsIncomeTotalAmount: new FormControl({
|
|
17601
|
+
value: partnershipsAndTrusts.trustsIncomeTotalAmount,
|
|
17533
17602
|
disabled: true
|
|
17534
17603
|
}),
|
|
17535
|
-
|
|
17536
|
-
value: partnershipsAndTrusts.
|
|
17604
|
+
trustsExpenseTotalAmount: new FormControl({
|
|
17605
|
+
value: partnershipsAndTrusts.trustsExpenseTotalAmount,
|
|
17537
17606
|
disabled: true
|
|
17538
17607
|
}),
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
}, Validators.required)),
|
|
17542
|
-
partnershipsSmallBusinessNetIncome: new FormControl(partnershipsAndTrusts.partnershipsSmallBusinessNetIncome, Validators.required),
|
|
17543
|
-
trustsSmallBusinessNetIncome: new FormControl(partnershipsAndTrusts.trustsSmallBusinessNetIncome, Validators.required),
|
|
17544
|
-
taxPaidTotal: new FormControl({
|
|
17545
|
-
value: partnershipsAndTrusts.taxPaidTotal,
|
|
17608
|
+
trustsIncomeTotalTax: new FormControl({
|
|
17609
|
+
value: partnershipsAndTrusts.trustsIncomeTotalTax,
|
|
17546
17610
|
disabled: true
|
|
17547
17611
|
}),
|
|
17548
17612
|
frankingCreditsTotal: new FormControl({
|
|
@@ -17682,11 +17746,281 @@ class VehicleLogbookForm extends AbstractForm {
|
|
|
17682
17746
|
}
|
|
17683
17747
|
VehicleLogbookForm.maxDescriptionLength = 60;
|
|
17684
17748
|
|
|
17749
|
+
/**
|
|
17750
|
+
* general validation rules
|
|
17751
|
+
*/
|
|
17752
|
+
var FormValidationsEnum;
|
|
17753
|
+
(function (FormValidationsEnum) {
|
|
17754
|
+
FormValidationsEnum[FormValidationsEnum["INPUT_MAX_LENGTH"] = 60] = "INPUT_MAX_LENGTH";
|
|
17755
|
+
FormValidationsEnum[FormValidationsEnum["TEXT_MAX_LENGTH"] = 300] = "TEXT_MAX_LENGTH";
|
|
17756
|
+
FormValidationsEnum[FormValidationsEnum["FILE_MAX_SIZE"] = 4194304] = "FILE_MAX_SIZE";
|
|
17757
|
+
// @TODO move to file uploader component
|
|
17758
|
+
FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
|
|
17759
|
+
})(FormValidationsEnum || (FormValidationsEnum = {}));
|
|
17760
|
+
|
|
17761
|
+
/**
|
|
17762
|
+
* @TODO refactor, move specific fields like property in separated forms
|
|
17763
|
+
* @TODO remove useless getters
|
|
17764
|
+
*/
|
|
17765
|
+
class TransactionBaseForm extends AbstractForm {
|
|
17766
|
+
constructor(transaction, registeredForGst, controls = {}) {
|
|
17767
|
+
var _a;
|
|
17768
|
+
super(Object.assign({
|
|
17769
|
+
chartAccounts: new FormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
|
|
17770
|
+
claimPercent: new FormControl({ value: transaction.claimPercent, disabled: true }, [Validators.required, Validators.min(0), Validators.max(100)]),
|
|
17771
|
+
amount: new FormControl(transaction.amount, Validators.required),
|
|
17772
|
+
amountWithGST: new FormControl(transaction.amountWithGst, Validators.required),
|
|
17773
|
+
isGST: new FormControl({ value: transaction.isGST, disabled: !((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) || !registeredForGst }),
|
|
17774
|
+
gstAmount: new FormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
|
|
17775
|
+
date: new FormControl(transaction.date, [Validators.required, currentFinYearValidator()]),
|
|
17776
|
+
description: new FormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
|
|
17777
|
+
// @TODO Alex: refactor (TT-1996)
|
|
17778
|
+
file: new FormControl(transaction['receipt'], [
|
|
17779
|
+
FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
|
|
17780
|
+
]),
|
|
17781
|
+
property: new FormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
|
|
17782
|
+
}, controls), transaction);
|
|
17783
|
+
this.registeredForGst = registeredForGst;
|
|
17784
|
+
this.watchChartAccounts();
|
|
17785
|
+
if (this.isGstApplicable()) {
|
|
17786
|
+
this.watchAmountWithGST();
|
|
17787
|
+
this.watchIsGst();
|
|
17788
|
+
}
|
|
17789
|
+
}
|
|
17790
|
+
watchIsGst() {
|
|
17791
|
+
this.get('isGST').valueChanges.subscribe((isGST) => {
|
|
17792
|
+
this.updateAmount();
|
|
17793
|
+
this.updateGstAmount();
|
|
17794
|
+
});
|
|
17795
|
+
}
|
|
17796
|
+
watchAmountWithGST() {
|
|
17797
|
+
this.get('amountWithGST').valueChanges.subscribe(() => {
|
|
17798
|
+
this.updateAmount();
|
|
17799
|
+
this.updateGstAmount();
|
|
17800
|
+
});
|
|
17801
|
+
}
|
|
17802
|
+
watchChartAccounts() {
|
|
17803
|
+
this.get('chartAccounts').valueChanges.subscribe((value) => {
|
|
17804
|
+
if (!(value instanceof ChartAccounts)) {
|
|
17805
|
+
return;
|
|
17806
|
+
}
|
|
17807
|
+
// recalculate claim percent for selected chart accounts
|
|
17808
|
+
this.updateClaimPercent(value);
|
|
17809
|
+
if (!this.isGstApplicable()) {
|
|
17810
|
+
return;
|
|
17811
|
+
}
|
|
17812
|
+
// update gst if applicable
|
|
17813
|
+
if (value.isGST) {
|
|
17814
|
+
this.get('isGST').enable();
|
|
17815
|
+
this.get('isGST').patchValue(true);
|
|
17816
|
+
}
|
|
17817
|
+
else {
|
|
17818
|
+
this.get('isGST').patchValue(false);
|
|
17819
|
+
this.get('isGST').disable();
|
|
17820
|
+
}
|
|
17821
|
+
});
|
|
17822
|
+
}
|
|
17823
|
+
updateGstAmount() {
|
|
17824
|
+
this.get('gstAmount').patchValue((this.amountWithGST - this.amount).toFixed(2));
|
|
17825
|
+
}
|
|
17826
|
+
updateAmount() {
|
|
17827
|
+
this.get('amount').patchValue(this.isGST ? (this.amountWithGST / ChartAccounts.GSTCoefficient).toFixed(2) : this.amountWithGST);
|
|
17828
|
+
}
|
|
17829
|
+
isGstApplicable() {
|
|
17830
|
+
return !!this.registeredForGst && !!this.model.business;
|
|
17831
|
+
}
|
|
17832
|
+
get amount() {
|
|
17833
|
+
return this.get('amount').value;
|
|
17834
|
+
}
|
|
17835
|
+
get amountWithGST() {
|
|
17836
|
+
return this.get('amountWithGST').value;
|
|
17837
|
+
}
|
|
17838
|
+
get isGST() {
|
|
17839
|
+
return this.get('isGST').value;
|
|
17840
|
+
}
|
|
17841
|
+
/**
|
|
17842
|
+
* propertyClaimPercent for propertyExpense (except platform fees, which already include claimPercent),
|
|
17843
|
+
* taxablePercent for others
|
|
17844
|
+
* can be adjusted only for property/sole expenses
|
|
17845
|
+
*/
|
|
17846
|
+
updateClaimPercent(chartAccounts) {
|
|
17847
|
+
var _a;
|
|
17848
|
+
if (chartAccounts.isClaimPercentEditable()) {
|
|
17849
|
+
this.get('claimPercent').enable();
|
|
17850
|
+
}
|
|
17851
|
+
// property claim (ownership% x shared%) for property expenses, taxable percent for others
|
|
17852
|
+
let claimPercent = chartAccounts.taxablePercent;
|
|
17853
|
+
if (chartAccounts.isPropertyExpense() && chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
|
|
17854
|
+
claimPercent *= (_a = this.value.property) === null || _a === void 0 ? void 0 : _a.claimCoefficient;
|
|
17855
|
+
}
|
|
17856
|
+
this.get('claimPercent').setValue(claimPercent);
|
|
17857
|
+
}
|
|
17858
|
+
}
|
|
17859
|
+
|
|
17860
|
+
var MessagesEnum;
|
|
17861
|
+
(function (MessagesEnum) {
|
|
17862
|
+
MessagesEnum["DATE_VALIDATION_ERROR"] = "The transaction date is before the ownership date, please update the date to confirm";
|
|
17863
|
+
})(MessagesEnum || (MessagesEnum = {}));
|
|
17864
|
+
|
|
17865
|
+
class TransactionForm extends TransactionBaseForm {
|
|
17866
|
+
constructor(transaction, registeredForGst, controls = {}) {
|
|
17867
|
+
super(transaction, registeredForGst, controls);
|
|
17868
|
+
if (transaction.property) {
|
|
17869
|
+
this.get('date').addValidators(minDateValidator(transaction.property.myShare.fromDate, MessagesEnum.DATE_VALIDATION_ERROR));
|
|
17870
|
+
}
|
|
17871
|
+
}
|
|
17872
|
+
}
|
|
17873
|
+
|
|
17874
|
+
class WorkIncomeForm extends TransactionForm {
|
|
17875
|
+
constructor(transaction, registeredForGst, allocations) {
|
|
17876
|
+
var _a;
|
|
17877
|
+
super(transaction, registeredForGst, {
|
|
17878
|
+
// @TODO move to TransactionForm, since other transactions could have it too
|
|
17879
|
+
transactions: new FormArray([]),
|
|
17880
|
+
metadata: new FormArray((transaction.metadata || []).map((transactionMetadata) => {
|
|
17881
|
+
return new FormGroup({
|
|
17882
|
+
value: new FormControl(transactionMetadata.value),
|
|
17883
|
+
chartAccountsMetadata: new FormControl(transactionMetadata.chartAccountsMetadata)
|
|
17884
|
+
});
|
|
17885
|
+
})),
|
|
17886
|
+
tax: new FormControl({
|
|
17887
|
+
value: transaction.tax,
|
|
17888
|
+
disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
|
|
17889
|
+
}, Validators.required),
|
|
17890
|
+
incomeSource: new FormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
|
|
17891
|
+
});
|
|
17892
|
+
// @TODO vik move to TransactionForm
|
|
17893
|
+
if (allocations.length) {
|
|
17894
|
+
this.get('amount').disable();
|
|
17895
|
+
this.get('date').disable();
|
|
17896
|
+
}
|
|
17897
|
+
// salary adjustments (like tips)
|
|
17898
|
+
transaction.transactions.map((transaction) => {
|
|
17899
|
+
this.addTransactionControl(transaction);
|
|
17900
|
+
});
|
|
17901
|
+
if (!((_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isSalary())) {
|
|
17902
|
+
this.get('transactions').disable();
|
|
17903
|
+
}
|
|
17904
|
+
this.listenEvents();
|
|
17905
|
+
}
|
|
17906
|
+
listenEvents() {
|
|
17907
|
+
this.watchIncomeSource();
|
|
17908
|
+
this.watchChartAccounts();
|
|
17909
|
+
}
|
|
17910
|
+
watchIncomeSource() {
|
|
17911
|
+
this.get('incomeSource').valueChanges.subscribe((incomeSource) => {
|
|
17912
|
+
// prefill salary tax with its income source forecast
|
|
17913
|
+
if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !this.get('tax').value) {
|
|
17914
|
+
this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
|
|
17915
|
+
}
|
|
17916
|
+
});
|
|
17917
|
+
}
|
|
17918
|
+
watchChartAccounts() {
|
|
17919
|
+
super.watchChartAccounts();
|
|
17920
|
+
this.get('chartAccounts').valueChanges.subscribe((value) => {
|
|
17921
|
+
// some fields depend on ChartAccounts and can't be filled until it's selected
|
|
17922
|
+
if (!(value instanceof ChartAccounts)) {
|
|
17923
|
+
this.get('tax').disable();
|
|
17924
|
+
this.get('transactions').disable();
|
|
17925
|
+
return;
|
|
17926
|
+
}
|
|
17927
|
+
this.buildMetadataForm();
|
|
17928
|
+
if (value.isNRAS()) {
|
|
17929
|
+
this.get('tax').disable();
|
|
17930
|
+
}
|
|
17931
|
+
else {
|
|
17932
|
+
this.get('tax').enable();
|
|
17933
|
+
}
|
|
17934
|
+
if (value.isSalary()) {
|
|
17935
|
+
this.get('transactions').enable();
|
|
17936
|
+
}
|
|
17937
|
+
else {
|
|
17938
|
+
this.get('transactions').disable();
|
|
17939
|
+
}
|
|
17940
|
+
});
|
|
17941
|
+
}
|
|
17942
|
+
/**
|
|
17943
|
+
* depends on chartAccounts the form could include different extra fields
|
|
17944
|
+
*/
|
|
17945
|
+
buildMetadataForm() {
|
|
17946
|
+
// Remove all controls in the FormArray before pushing
|
|
17947
|
+
this.get('metadata').clear();
|
|
17948
|
+
// create form controls for each metadata object from selected chart accounts
|
|
17949
|
+
(this.get('chartAccounts').value.metadata).forEach((chartAccountsMetadata) => {
|
|
17950
|
+
this.get('metadata').push(new FormGroup({
|
|
17951
|
+
value: new FormControl(chartAccountsMetadata.isSharePercentage() ? 100 : 0),
|
|
17952
|
+
chartAccountsMetadata: new FormControl(chartAccountsMetadata),
|
|
17953
|
+
}));
|
|
17954
|
+
});
|
|
17955
|
+
}
|
|
17956
|
+
addTransactionControl(transaction = plainToClass(Transaction, {})) {
|
|
17957
|
+
const formGroup = new FormGroup({
|
|
17958
|
+
id: new FormControl(transaction.id),
|
|
17959
|
+
chartAccounts: new FormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
|
|
17960
|
+
amount: new FormControl(Math.abs(transaction.amount), [Validators.required]),
|
|
17961
|
+
});
|
|
17962
|
+
this.get('transactions').push(formGroup);
|
|
17963
|
+
}
|
|
17964
|
+
removeTransactionControl(index) {
|
|
17965
|
+
this.get('transactions').removeAt(index);
|
|
17966
|
+
}
|
|
17967
|
+
/**
|
|
17968
|
+
* salary transactions might include adjustments (child transactions), like tips or donation.
|
|
17969
|
+
* Adjustments inherit most of the fields from parent transaction
|
|
17970
|
+
*/
|
|
17971
|
+
buildTransactions() {
|
|
17972
|
+
const transaction = plainToClass(Transaction, this.value);
|
|
17973
|
+
return this.get('transactions').value.map((childTransaction) => Object.assign({
|
|
17974
|
+
description: transaction.chartAccounts.name,
|
|
17975
|
+
date: transaction.date,
|
|
17976
|
+
claimPercent: transaction.claimPercent,
|
|
17977
|
+
source: transaction.source,
|
|
17978
|
+
tax: transaction.tax,
|
|
17979
|
+
type: transaction.type
|
|
17980
|
+
}, this.model.transactions.find((transaction) => transaction.id === childTransaction['id']) || {}, childTransaction));
|
|
17981
|
+
}
|
|
17982
|
+
submit(data = {}) {
|
|
17983
|
+
return super.submit(Object.assign(data, { transactions: this.buildTransactions() }));
|
|
17984
|
+
}
|
|
17985
|
+
}
|
|
17986
|
+
|
|
17987
|
+
class DepreciationForm extends TransactionBaseForm {
|
|
17988
|
+
constructor(depreciation, registeredForGst) {
|
|
17989
|
+
super(depreciation, registeredForGst);
|
|
17990
|
+
this.get('claimPercent').setValue(depreciation.currentYearForecast.claimPercent);
|
|
17991
|
+
this.addControl('isCloseBalanceCorrect', new FormControl(true));
|
|
17992
|
+
this.addControl('closeBalance', new FormControl({ value: depreciation.closeBalance || 0, disabled: true }, Validators.required));
|
|
17993
|
+
this.addControl('financialYear', new FormControl(depreciation.financialYear || new FinancialYear().year));
|
|
17994
|
+
// forbid to change chartAccounts/claimPercent for existing depreciations
|
|
17995
|
+
if (depreciation.id) {
|
|
17996
|
+
this.get('chartAccounts').disable({ emitEvent: false });
|
|
17997
|
+
this.get('claimPercent').disable({ emitEvent: false });
|
|
17998
|
+
}
|
|
17999
|
+
// @TODO should be watched?
|
|
18000
|
+
// if depreciation has 'depreciationCapitalProject' value - set value and disable 'date' form control
|
|
18001
|
+
if (depreciation.depreciationCapitalProject) {
|
|
18002
|
+
this.get('date').setValue(depreciation.depreciationCapitalProject.effectiveDate);
|
|
18003
|
+
this.get('date').disable();
|
|
18004
|
+
}
|
|
18005
|
+
else {
|
|
18006
|
+
this.get('date').setValue(depreciation.date);
|
|
18007
|
+
}
|
|
18008
|
+
this.get('isCloseBalanceCorrect').valueChanges.subscribe((isSelected) => {
|
|
18009
|
+
if (isSelected) {
|
|
18010
|
+
this.get('closeBalance').disable();
|
|
18011
|
+
}
|
|
18012
|
+
else {
|
|
18013
|
+
this.get('closeBalance').enable();
|
|
18014
|
+
}
|
|
18015
|
+
});
|
|
18016
|
+
}
|
|
18017
|
+
}
|
|
18018
|
+
|
|
17685
18019
|
// @TODO Alex: Create indexes everywhere and break this file to imports from indexes
|
|
17686
18020
|
|
|
17687
18021
|
/**
|
|
17688
18022
|
* Generated bundle index. Do not edit.
|
|
17689
18023
|
*/
|
|
17690
18024
|
|
|
17691
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
18025
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseCollection, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
17692
18026
|
//# sourceMappingURL=taxtank-core.js.map
|