taxtank-core 0.28.11 → 0.28.14
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 +1800 -1534
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection-dictionary.js +5 -2
- package/esm2015/lib/collections/sole/sole-invoice-item.collection.js +7 -0
- package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +3 -1
- package/esm2015/lib/db/Enums/document-type.enum.js +5 -0
- package/esm2015/lib/db/Enums/index.js +3 -0
- package/esm2015/lib/db/Enums/sole-invoice-tax-type.enum.js +7 -0
- package/esm2015/lib/db/Enums/sole-invoice-template-tax-type.enum.js +4 -4
- package/esm2015/lib/db/Models/sole/sole-invoice-item.js +1 -1
- package/esm2015/lib/db/Models/sole/sole-invoice.js +1 -1
- package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +10 -6
- package/esm2015/lib/forms/bank/bank-account/bank-account-allocation.form.js +5 -4
- package/esm2015/lib/forms/sole/sole-business.form.js +21 -2
- package/esm2015/lib/forms/sole/sole-invoice-item.form.js +3 -31
- package/esm2015/lib/forms/sole/sole-invoice-template.form.js +4 -5
- package/esm2015/lib/forms/sole/sole-invoice.form.js +93 -18
- 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 +3 -3
- package/esm2015/lib/models/dictionary/dictionary.js +2 -2
- package/esm2015/lib/models/document/index.js +3 -0
- package/esm2015/lib/models/income-source/income-source.js +3 -3
- package/esm2015/lib/models/index.js +2 -1
- package/esm2015/lib/models/sole/sole-details.js +1 -3
- package/esm2015/lib/models/sole/sole-invoice-item.js +10 -2
- package/esm2015/lib/models/sole/sole-invoice-template.js +13 -10
- package/esm2015/lib/models/sole/sole-invoice.js +82 -28
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- package/esm2015/lib/services/http/document/document.service.js +20 -0
- package/esm2015/lib/services/http/document/index.js +3 -0
- 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 +5 -4
- 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/index.js +2 -1
- 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.service.js +26 -10
- package/esm2015/lib/services/http/service-notification/service-notification.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.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 +18 -4
- 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 +3 -3
- 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/kompassify/kompassify.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +20 -8
- 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 +16 -4
- 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/public-api.js +3 -2
- package/fesm2015/taxtank-core.js +1476 -1257
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/sole/sole-invoice-item.collection.d.ts +5 -0
- package/lib/db/Enums/chart-accounts-list.enum.d.ts +3 -1
- package/lib/db/Enums/document-type.enum.d.ts +3 -0
- package/lib/db/Enums/index.d.ts +1 -0
- package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts +5 -0
- package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts +3 -3
- package/lib/db/Models/sole/sole-invoice-item.d.ts +3 -1
- package/lib/db/Models/sole/sole-invoice.d.ts +8 -5
- package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts +3 -1
- package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts +4 -1
- package/lib/forms/sole/sole-business.form.d.ts +10 -1
- package/lib/forms/sole/sole-invoice-item.form.d.ts +2 -7
- package/lib/forms/sole/sole-invoice-template.form.d.ts +2 -3
- package/lib/forms/sole/sole-invoice.form.d.ts +19 -2
- package/lib/models/document/index.d.ts +2 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/sole/sole-details.d.ts +0 -2
- package/lib/models/sole/sole-invoice-item.d.ts +7 -1
- package/lib/models/sole/sole-invoice-template.d.ts +10 -3
- package/lib/models/sole/sole-invoice.d.ts +49 -5
- package/lib/services/http/document/document.service.d.ts +10 -0
- package/lib/services/http/document/index.d.ts +2 -0
- package/lib/services/http/index.d.ts +1 -0
- package/lib/services/http/rest/rest.service.d.ts +13 -4
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +6 -1
- package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts +5 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
package/fesm2015/taxtank-core.js
CHANGED
|
@@ -15,7 +15,7 @@ import flatten from 'lodash/flatten';
|
|
|
15
15
|
import hasIn from 'lodash/hasIn';
|
|
16
16
|
import first from 'lodash/first';
|
|
17
17
|
import * as moment$1 from 'moment';
|
|
18
|
-
import {
|
|
18
|
+
import { DateRange, extendMoment } from 'moment-range';
|
|
19
19
|
import uniqBy from 'lodash/uniqBy';
|
|
20
20
|
import concat from 'lodash/concat';
|
|
21
21
|
import { throwError as throwError$1 } from 'rxjs/internal/observable/throwError';
|
|
@@ -23,6 +23,7 @@ import cloneDeep$1 from 'lodash/cloneDeep';
|
|
|
23
23
|
import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource.min.js';
|
|
24
24
|
import compact from 'lodash/compact';
|
|
25
25
|
import { Validators, FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
26
|
+
import merge from 'lodash/merge';
|
|
26
27
|
import isEqual from 'lodash/isEqual';
|
|
27
28
|
import fromPairs from 'lodash/fromPairs';
|
|
28
29
|
import _ from 'lodash';
|
|
@@ -70,9 +71,9 @@ class CorelogicService {
|
|
|
70
71
|
}));
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
74
|
-
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
74
|
+
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 });
|
|
75
|
+
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, providedIn: 'root' });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CorelogicService, decorators: [{
|
|
76
77
|
type: Injectable,
|
|
77
78
|
args: [{
|
|
78
79
|
providedIn: 'root'
|
|
@@ -114,9 +115,9 @@ class CorelogicInterceptor {
|
|
|
114
115
|
return next.handle(this.addToken(request));
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
|
-
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
118
|
-
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
119
|
-
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: [{
|
|
120
121
|
type: Injectable
|
|
121
122
|
}], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
|
|
122
123
|
type: Inject,
|
|
@@ -153,9 +154,9 @@ class FinancialYearInterceptor {
|
|
|
153
154
|
return next.handle(clonedReq);
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
|
-
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
157
|
-
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
158
|
-
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: [{
|
|
159
160
|
type: Injectable
|
|
160
161
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
161
162
|
type: Inject,
|
|
@@ -186,9 +187,9 @@ class JwtService extends JwtHelperService {
|
|
|
186
187
|
return this.getUser().id === userId;
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
190
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
191
|
-
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: [{
|
|
192
193
|
type: Injectable,
|
|
193
194
|
args: [{
|
|
194
195
|
providedIn: 'root'
|
|
@@ -279,9 +280,9 @@ class EventDispatcherService {
|
|
|
279
280
|
this.eventSubject.next(event);
|
|
280
281
|
}
|
|
281
282
|
}
|
|
282
|
-
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
283
|
-
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
283
|
+
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
284
|
+
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
285
286
|
type: Injectable,
|
|
286
287
|
args: [{
|
|
287
288
|
providedIn: 'root'
|
|
@@ -330,9 +331,9 @@ class AuthService {
|
|
|
330
331
|
location.replace(url);
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
334
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
334
|
+
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 });
|
|
335
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AuthService, decorators: [{
|
|
336
337
|
type: Injectable,
|
|
337
338
|
args: [{
|
|
338
339
|
providedIn: 'root'
|
|
@@ -468,9 +469,9 @@ class JwtInterceptor {
|
|
|
468
469
|
});
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
|
-
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
472
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
472
|
+
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 });
|
|
473
|
+
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor });
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
474
475
|
type: Injectable
|
|
475
476
|
}], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
|
|
476
477
|
type: Inject,
|
|
@@ -503,9 +504,9 @@ class UserSwitcherService {
|
|
|
503
504
|
window.location.replace('/firm/dashboard');
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
|
-
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
507
|
-
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
507
|
+
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
508
|
+
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
|
|
509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherService, decorators: [{
|
|
509
510
|
type: Injectable,
|
|
510
511
|
args: [{
|
|
511
512
|
providedIn: 'root'
|
|
@@ -541,9 +542,9 @@ class UserSwitcherInterceptor {
|
|
|
541
542
|
return next.handle(this.switch(request, this.userSwitcherService.get()));
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
|
-
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
545
|
-
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
545
|
+
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 });
|
|
546
|
+
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor });
|
|
547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
|
|
547
548
|
type: Injectable
|
|
548
549
|
}], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
|
|
549
550
|
type: Inject,
|
|
@@ -765,9 +766,9 @@ class PreloaderService {
|
|
|
765
766
|
this.activePreloaders.next(activePreloaders);
|
|
766
767
|
}
|
|
767
768
|
}
|
|
768
|
-
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
769
|
-
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
769
|
+
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
770
|
+
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, providedIn: 'root' });
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderService, decorators: [{
|
|
771
772
|
type: Injectable,
|
|
772
773
|
args: [{
|
|
773
774
|
providedIn: 'root'
|
|
@@ -795,9 +796,9 @@ class PreloaderInterceptor {
|
|
|
795
796
|
return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
|
|
796
797
|
}
|
|
797
798
|
}
|
|
798
|
-
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
799
|
-
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
799
|
+
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
800
|
+
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor });
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreloaderInterceptor, decorators: [{
|
|
801
802
|
type: Injectable
|
|
802
803
|
}], ctorParameters: function () { return [{ type: PreloaderService }]; } });
|
|
803
804
|
|
|
@@ -902,9 +903,9 @@ class ToastService {
|
|
|
902
903
|
}));
|
|
903
904
|
}
|
|
904
905
|
}
|
|
905
|
-
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
906
|
-
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
906
|
+
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
907
|
+
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToastService, decorators: [{
|
|
908
909
|
type: Injectable,
|
|
909
910
|
args: [{
|
|
910
911
|
providedIn: 'root'
|
|
@@ -957,10 +958,9 @@ class RestService {
|
|
|
957
958
|
}
|
|
958
959
|
/**
|
|
959
960
|
* add new instance and update cache
|
|
960
|
-
* @TODO rename to post
|
|
961
961
|
*/
|
|
962
|
-
|
|
963
|
-
return this.http.post(`${this.environment.apiV2}/${this.url}`,
|
|
962
|
+
create(data, shouldUpdateCache = true) {
|
|
963
|
+
return this.http.post(`${this.environment.apiV2}/${this.url}`, data)
|
|
964
964
|
.pipe(map((newItem) => {
|
|
965
965
|
if (!shouldUpdateCache) {
|
|
966
966
|
return null;
|
|
@@ -976,11 +976,28 @@ class RestService {
|
|
|
976
976
|
return newInstance;
|
|
977
977
|
}));
|
|
978
978
|
}
|
|
979
|
+
/**
|
|
980
|
+
* @TODO Alex TT-1777 rename to post
|
|
981
|
+
*/
|
|
982
|
+
add(model, shouldUpdateCache = true) {
|
|
983
|
+
return this.create(classToPlain(model), shouldUpdateCache);
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* @TODO Alex TT-1777 rename to upload
|
|
987
|
+
*/
|
|
988
|
+
postForm(file, params = {}) {
|
|
989
|
+
const formData = new FormData();
|
|
990
|
+
formData.append('file', file);
|
|
991
|
+
for (let key in params) {
|
|
992
|
+
formData.append(key, params[key]);
|
|
993
|
+
}
|
|
994
|
+
return this.create(formData);
|
|
995
|
+
}
|
|
979
996
|
/**
|
|
980
997
|
* Add several new items
|
|
981
998
|
* @param models Array of new items for saving
|
|
982
999
|
* @param queryParams query parameters for request
|
|
983
|
-
* @TODO rename to postBatch
|
|
1000
|
+
* @TODO Alex TT-1777 rename to postBatch
|
|
984
1001
|
*/
|
|
985
1002
|
addBatch(models, queryParams = {}) {
|
|
986
1003
|
return this.http.post(`${this.environment.apiV2}/${this.url}`, classToPlain(models), queryParams)
|
|
@@ -1000,7 +1017,7 @@ class RestService {
|
|
|
1000
1017
|
* Update item
|
|
1001
1018
|
* @param model Existing instance for updating
|
|
1002
1019
|
* @param queryParams query parameters for request
|
|
1003
|
-
* @TODO rename to put
|
|
1020
|
+
* @TODO Alex TT-1777 rename to put
|
|
1004
1021
|
*/
|
|
1005
1022
|
update(model, queryParams = {}) {
|
|
1006
1023
|
return this.http.put(`${this.environment.apiV2}/${this.url}/${model['id']}`, classToPlain(model), queryParams)
|
|
@@ -1018,7 +1035,7 @@ class RestService {
|
|
|
1018
1035
|
* Update several items
|
|
1019
1036
|
* @param models Array of items for updating
|
|
1020
1037
|
* @param queryParams query parameters for request
|
|
1021
|
-
* TODO rename to putBatch
|
|
1038
|
+
* TODO Alex TT-1777 rename to putBatch
|
|
1022
1039
|
*/
|
|
1023
1040
|
updateBatch(models, queryParams = {}) {
|
|
1024
1041
|
return this.http.put(`${this.environment.apiV2}/${this.url}`, classToPlain(models), queryParams)
|
|
@@ -1103,9 +1120,9 @@ class RestService {
|
|
|
1103
1120
|
*/
|
|
1104
1121
|
listenEvents() { }
|
|
1105
1122
|
}
|
|
1106
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1107
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1123
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1124
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
1125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RestService, decorators: [{
|
|
1109
1126
|
type: Injectable,
|
|
1110
1127
|
args: [{
|
|
1111
1128
|
providedIn: 'root'
|
|
@@ -1273,7 +1290,10 @@ class CollectionDictionary {
|
|
|
1273
1290
|
* Join several collections by ids
|
|
1274
1291
|
*/
|
|
1275
1292
|
merge(keys) {
|
|
1276
|
-
|
|
1293
|
+
if (!this.length) {
|
|
1294
|
+
return this.createCollection([]);
|
|
1295
|
+
}
|
|
1296
|
+
return this.createCollection(flatten(keys.map((key) => this.get(key.toString()).items)));
|
|
1277
1297
|
}
|
|
1278
1298
|
/**
|
|
1279
1299
|
* Create instance of collection
|
|
@@ -2087,6 +2107,8 @@ var ChartAccountsListEnum;
|
|
|
2087
2107
|
ChartAccountsListEnum[ChartAccountsListEnum["ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT"] = 639] = "ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT";
|
|
2088
2108
|
ChartAccountsListEnum[ChartAccountsListEnum["CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY"] = 558] = "CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY";
|
|
2089
2109
|
ChartAccountsListEnum[ChartAccountsListEnum["CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH"] = 640] = "CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH";
|
|
2110
|
+
ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_EXPENSES"] = 628] = "PERSONAL_EXPENSES";
|
|
2111
|
+
ChartAccountsListEnum[ChartAccountsListEnum["PERSONAL_INCOME"] = 630] = "PERSONAL_INCOME";
|
|
2090
2112
|
})(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
|
|
2091
2113
|
|
|
2092
2114
|
var ChartAccountsCategoryEnum;
|
|
@@ -2362,455 +2384,321 @@ __decorate([
|
|
|
2362
2384
|
Type(() => ChartAccountsMetadata)
|
|
2363
2385
|
], ChartAccounts.prototype, "metadata", void 0);
|
|
2364
2386
|
|
|
2365
|
-
class
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2387
|
+
class TransactionBase extends AbstractModel {
|
|
2388
|
+
get tankType() {
|
|
2389
|
+
switch (true) {
|
|
2390
|
+
case this.isPropertyTank():
|
|
2391
|
+
return TankTypeEnum.PROPERTY;
|
|
2392
|
+
case this.isWorkTank():
|
|
2393
|
+
return TankTypeEnum.WORK;
|
|
2394
|
+
case this.isSoleTank():
|
|
2395
|
+
return TankTypeEnum.SOLE;
|
|
2396
|
+
default:
|
|
2397
|
+
return TankTypeEnum.OTHER;
|
|
2398
|
+
}
|
|
2369
2399
|
}
|
|
2370
|
-
|
|
2371
|
-
|
|
2400
|
+
/**
|
|
2401
|
+
* Check if current tank is Property
|
|
2402
|
+
*/
|
|
2403
|
+
isPropertyTank() {
|
|
2404
|
+
// chart accounts may be empty for new instances
|
|
2405
|
+
if (this.chartAccounts) {
|
|
2406
|
+
return CHART_ACCOUNTS_CATEGORIES.property.includes(this.chartAccounts.category);
|
|
2407
|
+
}
|
|
2408
|
+
return !!this.property;
|
|
2409
|
+
}
|
|
2410
|
+
/**
|
|
2411
|
+
* Check if current tank is Work
|
|
2412
|
+
*/
|
|
2413
|
+
isWorkTank() {
|
|
2414
|
+
var _a;
|
|
2415
|
+
// chart accounts may be empty for new instances
|
|
2416
|
+
if (this.chartAccounts) {
|
|
2417
|
+
return CHART_ACCOUNTS_CATEGORIES.work.includes((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.category);
|
|
2418
|
+
}
|
|
2419
|
+
return !this.isPropertyTank() && !this.isSoleTank();
|
|
2420
|
+
}
|
|
2421
|
+
/**
|
|
2422
|
+
* Check if current tank is Sole
|
|
2423
|
+
*/
|
|
2424
|
+
isSoleTank() {
|
|
2425
|
+
var _a;
|
|
2426
|
+
// chart accounts may be empty for new instances
|
|
2427
|
+
if (this.chartAccounts) {
|
|
2428
|
+
return CHART_ACCOUNTS_CATEGORIES.sole.includes((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.category);
|
|
2429
|
+
}
|
|
2430
|
+
return !!this.business;
|
|
2372
2431
|
}
|
|
2373
2432
|
}
|
|
2374
2433
|
__decorate([
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2434
|
+
Exclude({ toPlainOnly: true }),
|
|
2435
|
+
Type(() => Object),
|
|
2436
|
+
Transform(({ obj }) => {
|
|
2437
|
+
return obj.file;
|
|
2438
|
+
})
|
|
2439
|
+
], TransactionBase.prototype, "file", void 0);
|
|
2380
2440
|
|
|
2381
|
-
class
|
|
2441
|
+
class Transaction$1 extends TransactionBase {
|
|
2382
2442
|
}
|
|
2383
2443
|
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
getPhotoPlaceholder() {
|
|
2390
|
-
return `${this.firstName[0].toUpperCase()}${this.lastName[0].toUpperCase()}`;
|
|
2391
|
-
}
|
|
2392
|
-
// @TODO Vik: add photo field to SoleContact
|
|
2393
|
-
getPhoto() {
|
|
2394
|
-
return '';
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2397
|
-
__decorate([
|
|
2398
|
-
Type(() => User)
|
|
2399
|
-
], SoleContact.prototype, "user", void 0);
|
|
2400
|
-
__decorate([
|
|
2401
|
-
Type(() => Phone)
|
|
2402
|
-
], SoleContact.prototype, "phone", void 0);
|
|
2403
|
-
__decorate([
|
|
2404
|
-
Type(() => Address)
|
|
2405
|
-
], SoleContact.prototype, "address", void 0);
|
|
2406
|
-
__decorate([
|
|
2407
|
-
Type(() => SoleInvoice)
|
|
2408
|
-
], SoleContact.prototype, "invoices", void 0);
|
|
2444
|
+
var TransactionTypeEnum;
|
|
2445
|
+
(function (TransactionTypeEnum) {
|
|
2446
|
+
TransactionTypeEnum[TransactionTypeEnum["DEBIT"] = 1] = "DEBIT";
|
|
2447
|
+
TransactionTypeEnum[TransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
|
|
2448
|
+
})(TransactionTypeEnum || (TransactionTypeEnum = {}));
|
|
2409
2449
|
|
|
2410
|
-
|
|
2450
|
+
var TransactionOperationEnum;
|
|
2451
|
+
(function (TransactionOperationEnum) {
|
|
2452
|
+
TransactionOperationEnum[TransactionOperationEnum["ALLOCATE"] = 1] = "ALLOCATE";
|
|
2453
|
+
TransactionOperationEnum[TransactionOperationEnum["FIND_AND_MATCH"] = 2] = "FIND_AND_MATCH";
|
|
2454
|
+
TransactionOperationEnum[TransactionOperationEnum["TRANSFER"] = 3] = "TRANSFER";
|
|
2455
|
+
})(TransactionOperationEnum || (TransactionOperationEnum = {}));
|
|
2456
|
+
|
|
2457
|
+
var TransactionSourceEnum;
|
|
2458
|
+
(function (TransactionSourceEnum) {
|
|
2459
|
+
TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
|
|
2460
|
+
TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
|
|
2461
|
+
})(TransactionSourceEnum || (TransactionSourceEnum = {}));
|
|
2462
|
+
|
|
2463
|
+
var DepreciationTypeEnum;
|
|
2464
|
+
(function (DepreciationTypeEnum) {
|
|
2465
|
+
DepreciationTypeEnum[DepreciationTypeEnum["PLANT_EQUIPMENT"] = 1] = "PLANT_EQUIPMENT";
|
|
2466
|
+
DepreciationTypeEnum[DepreciationTypeEnum["CAPITAL_WORKS"] = 2] = "CAPITAL_WORKS";
|
|
2467
|
+
DepreciationTypeEnum[DepreciationTypeEnum["BULK_DEPRECIATION"] = 3] = "BULK_DEPRECIATION";
|
|
2468
|
+
DepreciationTypeEnum[DepreciationTypeEnum["BORROWING_EXPENSES"] = 4] = "BORROWING_EXPENSES";
|
|
2469
|
+
})(DepreciationTypeEnum || (DepreciationTypeEnum = {}));
|
|
2470
|
+
|
|
2471
|
+
var DepreciationCalculationEnum;
|
|
2472
|
+
(function (DepreciationCalculationEnum) {
|
|
2473
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["PRIME_COST"] = 1] = "PRIME_COST";
|
|
2474
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["DIMINISHING"] = 2] = "DIMINISHING";
|
|
2475
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["CAPITAL"] = 3] = "CAPITAL";
|
|
2476
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["LVP"] = 4] = "LVP";
|
|
2477
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["AMORTISATION"] = 5] = "AMORTISATION";
|
|
2478
|
+
DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
|
|
2479
|
+
})(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
|
|
2480
|
+
|
|
2481
|
+
class TransactionReceipt$1 extends AbstractModel {
|
|
2411
2482
|
}
|
|
2412
2483
|
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2484
|
+
// @TODO this enum should come from backend
|
|
2485
|
+
/**
|
|
2486
|
+
* Enum with asset types
|
|
2487
|
+
*/
|
|
2488
|
+
var AssetTypeEnum;
|
|
2489
|
+
(function (AssetTypeEnum) {
|
|
2490
|
+
AssetTypeEnum["RECEIPTS"] = "receipts";
|
|
2491
|
+
AssetTypeEnum["DOCUMENTS"] = "documents";
|
|
2492
|
+
AssetTypeEnum["MESSAGE"] = "message";
|
|
2493
|
+
})(AssetTypeEnum || (AssetTypeEnum = {}));
|
|
2419
2494
|
|
|
2420
|
-
|
|
2495
|
+
/**
|
|
2496
|
+
* Enum with asset entity types
|
|
2497
|
+
*/
|
|
2498
|
+
var AssetEntityTypeEnum;
|
|
2499
|
+
(function (AssetEntityTypeEnum) {
|
|
2500
|
+
AssetEntityTypeEnum["PROPERTIES"] = "properties";
|
|
2501
|
+
AssetEntityTypeEnum["FOLDERS"] = "folders";
|
|
2502
|
+
AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
|
|
2503
|
+
AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
|
|
2504
|
+
AssetEntityTypeEnum["MESSAGES"] = "messages";
|
|
2505
|
+
})(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
|
|
2506
|
+
|
|
2507
|
+
class TransactionReceipt extends TransactionReceipt$1 {
|
|
2421
2508
|
constructor() {
|
|
2422
2509
|
super(...arguments);
|
|
2423
|
-
this.
|
|
2424
|
-
|
|
2425
|
-
isNoTax() {
|
|
2426
|
-
return this.taxType === SoleInvoiceTemplateTaxTypeEnum.NONE;
|
|
2427
|
-
}
|
|
2428
|
-
isTaxExclusive() {
|
|
2429
|
-
return this.taxType === SoleInvoiceTemplateTaxTypeEnum.EXCLUSIVE;
|
|
2430
|
-
}
|
|
2431
|
-
isTaxInclusive() {
|
|
2432
|
-
return this.taxType === SoleInvoiceTemplateTaxTypeEnum.INCLUSIVE;
|
|
2510
|
+
this.type = AssetTypeEnum.RECEIPTS;
|
|
2511
|
+
this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
|
|
2433
2512
|
}
|
|
2434
2513
|
}
|
|
2435
|
-
__decorate([
|
|
2436
|
-
Type(() => SoleBusiness)
|
|
2437
|
-
], SoleInvoiceTemplate.prototype, "business", void 0);
|
|
2438
|
-
__decorate([
|
|
2439
|
-
Type(() => BankAccount)
|
|
2440
|
-
], SoleInvoiceTemplate.prototype, "bankAccount", void 0);
|
|
2441
2514
|
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["CANCELED"] = 0] = "CANCELED";
|
|
2445
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
|
|
2446
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PENDING"] = 2] = "PENDING";
|
|
2447
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PAID"] = 3] = "PAID";
|
|
2448
|
-
})(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
|
|
2515
|
+
class IncomeSource$1 extends AbstractModel {
|
|
2516
|
+
}
|
|
2449
2517
|
|
|
2450
|
-
|
|
2518
|
+
var IncomeSourceTypeEnum;
|
|
2519
|
+
(function (IncomeSourceTypeEnum) {
|
|
2520
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
2521
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
2522
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
2523
|
+
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
2524
|
+
|
|
2525
|
+
class SalaryForecast$1 extends AbstractModel {
|
|
2451
2526
|
}
|
|
2452
2527
|
|
|
2453
|
-
class
|
|
2528
|
+
class SalaryForecast extends SalaryForecast$1 {
|
|
2454
2529
|
}
|
|
2455
|
-
SoleDetails.GSTPercentMultiplier = 0.1;
|
|
2456
|
-
SoleDetails.GSTPercentDivider = 11;
|
|
2457
2530
|
__decorate([
|
|
2458
|
-
|
|
2459
|
-
|
|
2531
|
+
Transform(({ obj }) => obj.netPay + obj.tax),
|
|
2532
|
+
Expose()
|
|
2533
|
+
], SalaryForecast.prototype, "grossAmount", void 0);
|
|
2534
|
+
__decorate([
|
|
2535
|
+
Type(() => IncomeSource)
|
|
2536
|
+
], SalaryForecast.prototype, "incomeSource", void 0);
|
|
2460
2537
|
|
|
2461
|
-
class
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
}
|
|
2467
|
-
get amount() {
|
|
2468
|
-
return this.items.reduce((sum, item) => sum + item.amount, 0);
|
|
2469
|
-
}
|
|
2470
|
-
getGSTItems() {
|
|
2471
|
-
return this.items.filter((item) => item.isGST);
|
|
2472
|
-
}
|
|
2473
|
-
getGSTItemsAmount() {
|
|
2474
|
-
return this.getGSTItems().reduce((sum, item) => sum + item.amount, 0);
|
|
2475
|
-
}
|
|
2476
|
-
get subtotal() {
|
|
2477
|
-
var _a;
|
|
2478
|
-
if ((_a = this.template) === null || _a === void 0 ? void 0 : _a.isTaxInclusive()) {
|
|
2479
|
-
return this.amount - this.GSTAmount;
|
|
2480
|
-
}
|
|
2481
|
-
return this.amount;
|
|
2482
|
-
}
|
|
2483
|
-
get GSTAmount() {
|
|
2484
|
-
var _a, _b;
|
|
2485
|
-
switch (true) {
|
|
2486
|
-
case (_a = this.template) === null || _a === void 0 ? void 0 : _a.isTaxInclusive():
|
|
2487
|
-
return +(this.getGSTItemsAmount() / SoleDetails.GSTPercentDivider).toFixed(2);
|
|
2488
|
-
case (_b = this.template) === null || _b === void 0 ? void 0 : _b.isTaxExclusive():
|
|
2489
|
-
return +(this.getGSTItemsAmount() * SoleDetails.GSTPercentMultiplier).toFixed(2);
|
|
2490
|
-
default:
|
|
2491
|
-
return 0;
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
get total() {
|
|
2495
|
-
var _a;
|
|
2496
|
-
if ((_a = this.template) === null || _a === void 0 ? void 0 : _a.isTaxExclusive()) {
|
|
2497
|
-
return this.amount + this.GSTAmount;
|
|
2498
|
-
}
|
|
2538
|
+
class SoleForecast$1 extends AbstractModel {
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
class SoleForecast extends SoleForecast$1 {
|
|
2542
|
+
get netPay() {
|
|
2499
2543
|
return this.amount;
|
|
2500
2544
|
}
|
|
2501
|
-
|
|
2502
|
-
return this.status === SoleInvoiceStatusesEnum.DRAFT;
|
|
2503
|
-
}
|
|
2504
|
-
isCancelled() {
|
|
2505
|
-
return this.status === SoleInvoiceStatusesEnum.CANCELED;
|
|
2506
|
-
}
|
|
2507
|
-
isPending() {
|
|
2508
|
-
return this.status === SoleInvoiceStatusesEnum.PENDING;
|
|
2509
|
-
}
|
|
2510
|
-
isPaid() {
|
|
2511
|
-
return this.status === SoleInvoiceStatusesEnum.PAID;
|
|
2512
|
-
}
|
|
2513
|
-
isOverdue() {
|
|
2514
|
-
return this.isPending() && this.dateTo < new Date();
|
|
2515
|
-
}
|
|
2516
|
-
isUnpaid() {
|
|
2517
|
-
return this.isPending() && this.dateTo >= new Date();
|
|
2518
|
-
}
|
|
2545
|
+
;
|
|
2519
2546
|
}
|
|
2520
2547
|
__decorate([
|
|
2521
|
-
Type(() =>
|
|
2522
|
-
],
|
|
2523
|
-
__decorate([
|
|
2524
|
-
Type(() => Date)
|
|
2525
|
-
], SoleInvoice.prototype, "dateTo", void 0);
|
|
2526
|
-
__decorate([
|
|
2527
|
-
Type(() => User)
|
|
2528
|
-
], SoleInvoice.prototype, "user", void 0);
|
|
2529
|
-
__decorate([
|
|
2530
|
-
Type(() => SoleBusiness)
|
|
2531
|
-
], SoleInvoice.prototype, "business", void 0);
|
|
2532
|
-
__decorate([
|
|
2533
|
-
Type(() => SoleInvoiceItem)
|
|
2534
|
-
], SoleInvoice.prototype, "items", void 0);
|
|
2535
|
-
__decorate([
|
|
2536
|
-
Type(() => SoleContact)
|
|
2537
|
-
], SoleInvoice.prototype, "payer", void 0);
|
|
2538
|
-
__decorate([
|
|
2539
|
-
Type(() => SoleInvoiceTemplate)
|
|
2540
|
-
], SoleInvoice.prototype, "template", void 0);
|
|
2548
|
+
Type(() => IncomeSource)
|
|
2549
|
+
], SoleForecast.prototype, "incomeSource", void 0);
|
|
2541
2550
|
|
|
2542
|
-
|
|
2543
|
-
* Class contains traveled kilometers and work usage percent in 12 weeks date range
|
|
2544
|
-
* @TODO Vik: Best period: move this and related logic to backend
|
|
2545
|
-
* @TODO Alex: check if we need this class when calculation refactored with backend
|
|
2546
|
-
*/
|
|
2547
|
-
class LogbookPeriod {
|
|
2548
|
-
isEndOfYear() {
|
|
2549
|
-
return this.to === new FinancialYear().endDate;
|
|
2550
|
-
}
|
|
2551
|
-
getWorkUsageByClaim(claim) {
|
|
2552
|
-
const claimKilometers = this.logbooks.getByVehicleClaim(claim).getClaimableLogbooks().kilometers;
|
|
2553
|
-
return Math.round(this.workUsage * (claimKilometers / this.kilometers));
|
|
2554
|
-
}
|
|
2551
|
+
class IncomeSourceForecast$1 extends AbstractModel {
|
|
2555
2552
|
}
|
|
2556
|
-
__decorate([
|
|
2557
|
-
Type(() => Date)
|
|
2558
|
-
], LogbookPeriod.prototype, "from", void 0);
|
|
2559
|
-
__decorate([
|
|
2560
|
-
Type(() => Date)
|
|
2561
|
-
], LogbookPeriod.prototype, "to", void 0);
|
|
2562
2553
|
|
|
2563
|
-
|
|
2564
|
-
|
|
2554
|
+
var SalaryForecastFrequencyEnum;
|
|
2555
|
+
(function (SalaryForecastFrequencyEnum) {
|
|
2556
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
|
|
2557
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
|
|
2558
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
|
|
2559
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
|
|
2560
|
+
})(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
|
|
2565
2561
|
|
|
2566
|
-
class
|
|
2562
|
+
class IncomeSourceType$1 extends AbstractModel {
|
|
2567
2563
|
}
|
|
2568
2564
|
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2565
|
+
var IncomeSourceTypeListWorkEnum;
|
|
2566
|
+
(function (IncomeSourceTypeListWorkEnum) {
|
|
2567
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
|
|
2568
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
|
|
2569
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
|
|
2570
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
|
|
2571
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
2572
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
|
|
2573
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
|
|
2574
|
+
})(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
|
|
2575
|
+
|
|
2576
|
+
var IncomeSourceTypeListOtherEnum;
|
|
2577
|
+
(function (IncomeSourceTypeListOtherEnum) {
|
|
2578
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
|
|
2579
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
2580
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
|
|
2581
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
|
|
2582
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
|
|
2583
|
+
})(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
|
|
2584
|
+
|
|
2585
|
+
var IncomeSourceTypeListSoleEnum;
|
|
2586
|
+
(function (IncomeSourceTypeListSoleEnum) {
|
|
2587
|
+
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
2588
|
+
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
2589
|
+
|
|
2590
|
+
class IncomeSourceType extends IncomeSourceType$1 {
|
|
2591
|
+
isBonuses() {
|
|
2592
|
+
return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
|
|
2573
2593
|
}
|
|
2574
|
-
|
|
2575
|
-
return this.
|
|
2594
|
+
isWork() {
|
|
2595
|
+
return !!IncomeSourceTypeListWorkEnum[this.id];
|
|
2576
2596
|
}
|
|
2577
|
-
|
|
2578
|
-
return
|
|
2597
|
+
isOther() {
|
|
2598
|
+
return !!IncomeSourceTypeListOtherEnum[this.id];
|
|
2579
2599
|
}
|
|
2580
|
-
|
|
2581
|
-
return !!this.
|
|
2600
|
+
isSole() {
|
|
2601
|
+
return !!IncomeSourceTypeListSoleEnum[this.id];
|
|
2582
2602
|
}
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2603
|
+
get type() {
|
|
2604
|
+
switch (true) {
|
|
2605
|
+
case this.isWork():
|
|
2606
|
+
return IncomeSourceTypeEnum.WORK;
|
|
2607
|
+
case this.isSole():
|
|
2608
|
+
return IncomeSourceTypeEnum.SOLE;
|
|
2609
|
+
default:
|
|
2610
|
+
return IncomeSourceTypeEnum.OTHER;
|
|
2611
|
+
}
|
|
2588
2612
|
}
|
|
2589
2613
|
}
|
|
2590
|
-
/**
|
|
2591
|
-
* Logbook period duration in milliseconds.
|
|
2592
|
-
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/211517441/Logbook+Vehicle
|
|
2593
|
-
*/
|
|
2594
|
-
VehicleLogbook.bestPeriodDuration = 12 * 7 * 24 * 3600 * 1000;
|
|
2595
|
-
__decorate([
|
|
2596
|
-
Type(() => Date)
|
|
2597
|
-
], VehicleLogbook.prototype, "date", void 0);
|
|
2598
|
-
__decorate([
|
|
2599
|
-
Type(() => SoleBusiness)
|
|
2600
|
-
], VehicleLogbook.prototype, "business", void 0);
|
|
2601
|
-
|
|
2602
|
-
class Vehicle extends Vehicle$1 {
|
|
2603
|
-
}
|
|
2604
|
-
__decorate([
|
|
2605
|
-
Type(() => VehicleLogbook)
|
|
2606
|
-
], Vehicle.prototype, "logbook", void 0);
|
|
2607
|
-
|
|
2608
|
-
class VehicleClaim$1 extends AbstractModel {
|
|
2609
|
-
}
|
|
2610
2614
|
|
|
2611
|
-
class
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
var VehicleClaimDetailsMethodEnum;
|
|
2615
|
-
(function (VehicleClaimDetailsMethodEnum) {
|
|
2616
|
-
VehicleClaimDetailsMethodEnum[VehicleClaimDetailsMethodEnum["KMS"] = 1] = "KMS";
|
|
2617
|
-
VehicleClaimDetailsMethodEnum[VehicleClaimDetailsMethodEnum["LOGBOOK"] = 2] = "LOGBOOK";
|
|
2618
|
-
})(VehicleClaimDetailsMethodEnum || (VehicleClaimDetailsMethodEnum = {}));
|
|
2619
|
-
|
|
2620
|
-
class VehicleClaimDetails extends VehicleClaimDetails$1 {
|
|
2615
|
+
class IncomeSourceForecast extends IncomeSourceForecast$1 {
|
|
2621
2616
|
constructor() {
|
|
2622
2617
|
super(...arguments);
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
this.isManual = true;
|
|
2627
|
-
this.method = VehicleClaimDetailsMethodEnum.KMS;
|
|
2628
|
-
this.financialYear = new FinancialYear().year;
|
|
2618
|
+
this.paygIncome = 0;
|
|
2619
|
+
this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
|
|
2620
|
+
this.isTaxFree = false;
|
|
2629
2621
|
}
|
|
2630
|
-
|
|
2631
|
-
|
|
2622
|
+
/**
|
|
2623
|
+
* Sometimes Income source has Salary & Income source forecasts,
|
|
2624
|
+
* and we need these fields to work with Income source forecasts like with Salary Forecasts
|
|
2625
|
+
*/
|
|
2626
|
+
get netPay() {
|
|
2627
|
+
return this.amount;
|
|
2632
2628
|
}
|
|
2633
|
-
|
|
2634
|
-
return this.
|
|
2629
|
+
get grossAmount() {
|
|
2630
|
+
return this.amount + this.tax + this.taxInstalments + this.frankingCredits;
|
|
2635
2631
|
}
|
|
2636
2632
|
}
|
|
2637
2633
|
__decorate([
|
|
2638
|
-
Type(() =>
|
|
2639
|
-
],
|
|
2634
|
+
Type(() => IncomeSourceType)
|
|
2635
|
+
], IncomeSourceForecast.prototype, "incomeSourceType", void 0);
|
|
2636
|
+
__decorate([
|
|
2637
|
+
Type(() => IncomeSource)
|
|
2638
|
+
], IncomeSourceForecast.prototype, "incomeSource", void 0);
|
|
2640
2639
|
|
|
2641
|
-
class
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
this.
|
|
2640
|
+
class IncomeSource extends IncomeSource$1 {
|
|
2641
|
+
isSalaryIncome() {
|
|
2642
|
+
return !!this.salaryForecasts.length;
|
|
2643
|
+
// @TODO Vik: old code
|
|
2644
|
+
// return this.type === IncomeSourceTypeEnum.SALARY;
|
|
2646
2645
|
}
|
|
2647
|
-
|
|
2648
|
-
return
|
|
2646
|
+
isSoleIncome() {
|
|
2647
|
+
return !!this.soleForecasts.length;
|
|
2649
2648
|
}
|
|
2650
|
-
|
|
2651
|
-
return
|
|
2649
|
+
isWorkIncome() {
|
|
2650
|
+
return this.type === IncomeSourceTypeEnum.WORK;
|
|
2652
2651
|
}
|
|
2653
|
-
|
|
2654
|
-
return this.
|
|
2652
|
+
isOtherIncome() {
|
|
2653
|
+
return this.type === IncomeSourceTypeEnum.OTHER || (!this.isSoleIncome() && !this.isSalaryIncome());
|
|
2655
2654
|
}
|
|
2656
2655
|
/**
|
|
2657
|
-
*
|
|
2656
|
+
* Get salary and other income forecasts
|
|
2658
2657
|
*/
|
|
2659
|
-
|
|
2660
|
-
return
|
|
2658
|
+
get forecasts() {
|
|
2659
|
+
return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
|
|
2661
2660
|
}
|
|
2662
2661
|
/**
|
|
2663
|
-
* Get
|
|
2664
|
-
* ClaimAmount = WorkUsage * transaction/depreciation amount
|
|
2662
|
+
* Get actual (1st from the list) forecast
|
|
2665
2663
|
*/
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
.getByVehicleClaim(this)
|
|
2669
|
-
.getLogbookTransactions()
|
|
2670
|
-
.sumBy('amount');
|
|
2671
|
-
// Math.abs because amount will be negative (because we sum expenses), but we don't want negative percent value
|
|
2672
|
-
return Math.abs(transactionsAmount) * this.workUsage / 100;
|
|
2673
|
-
}
|
|
2674
|
-
getAverageWeeklyKMS() {
|
|
2675
|
-
return this.kilometers / FinancialYear.weeksInYear;
|
|
2664
|
+
get actualForecast() {
|
|
2665
|
+
return this.forecasts[0];
|
|
2676
2666
|
}
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2667
|
+
/**
|
|
2668
|
+
* Check if user was working in month taken by the index
|
|
2669
|
+
* @param monthIndex by which month should be taken
|
|
2670
|
+
*/
|
|
2671
|
+
isWorkedInMonth(monthIndex) {
|
|
2672
|
+
const monthDate = new FinancialYear().getMonthDate(monthIndex);
|
|
2673
|
+
return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
|
|
2681
2674
|
}
|
|
2682
2675
|
}
|
|
2683
|
-
/**
|
|
2684
|
-
* limit for kms claim method
|
|
2685
|
-
*/
|
|
2686
|
-
VehicleClaim.totalKmsLimit = 5000;
|
|
2687
|
-
/**
|
|
2688
|
-
* limit for work usage claim method
|
|
2689
|
-
*/
|
|
2690
|
-
VehicleClaim.totalWorkUsagePercent = 100;
|
|
2691
2676
|
__decorate([
|
|
2692
|
-
Type(() =>
|
|
2693
|
-
],
|
|
2677
|
+
Type(() => SalaryForecast)
|
|
2678
|
+
], IncomeSource.prototype, "salaryForecasts", void 0);
|
|
2694
2679
|
__decorate([
|
|
2695
|
-
Type(() =>
|
|
2696
|
-
],
|
|
2680
|
+
Type(() => SoleForecast)
|
|
2681
|
+
], IncomeSource.prototype, "soleForecasts", void 0);
|
|
2682
|
+
__decorate([
|
|
2683
|
+
Type(() => IncomeSourceForecast)
|
|
2684
|
+
], IncomeSource.prototype, "incomeSourceForecasts", void 0);
|
|
2685
|
+
__decorate([
|
|
2686
|
+
Type(() => Date)
|
|
2687
|
+
], IncomeSource.prototype, "dateFrom", void 0);
|
|
2688
|
+
__decorate([
|
|
2689
|
+
Type(() => Date)
|
|
2690
|
+
], IncomeSource.prototype, "dateTo", void 0);
|
|
2697
2691
|
|
|
2698
|
-
class
|
|
2699
|
-
get tankType() {
|
|
2700
|
-
switch (true) {
|
|
2701
|
-
case this.isPropertyTank():
|
|
2702
|
-
return TankTypeEnum.PROPERTY;
|
|
2703
|
-
case this.isWorkTank():
|
|
2704
|
-
return TankTypeEnum.WORK;
|
|
2705
|
-
case this.isSoleTank():
|
|
2706
|
-
return TankTypeEnum.SOLE;
|
|
2707
|
-
default:
|
|
2708
|
-
return TankTypeEnum.OTHER;
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
/**
|
|
2712
|
-
* Check if current tank is Property
|
|
2713
|
-
*/
|
|
2714
|
-
isPropertyTank() {
|
|
2715
|
-
// chart accounts may be empty for new instances
|
|
2716
|
-
if (this.chartAccounts) {
|
|
2717
|
-
return CHART_ACCOUNTS_CATEGORIES.property.includes(this.chartAccounts.category);
|
|
2718
|
-
}
|
|
2719
|
-
return !!this.property;
|
|
2720
|
-
}
|
|
2721
|
-
/**
|
|
2722
|
-
* Check if current tank is Work
|
|
2723
|
-
*/
|
|
2724
|
-
isWorkTank() {
|
|
2725
|
-
var _a;
|
|
2726
|
-
// chart accounts may be empty for new instances
|
|
2727
|
-
if (this.chartAccounts) {
|
|
2728
|
-
return CHART_ACCOUNTS_CATEGORIES.work.includes((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.category);
|
|
2729
|
-
}
|
|
2730
|
-
return !this.isPropertyTank() && !this.isSoleTank();
|
|
2731
|
-
}
|
|
2732
|
-
/**
|
|
2733
|
-
* Check if current tank is Sole
|
|
2734
|
-
*/
|
|
2735
|
-
isSoleTank() {
|
|
2736
|
-
var _a;
|
|
2737
|
-
// chart accounts may be empty for new instances
|
|
2738
|
-
if (this.chartAccounts) {
|
|
2739
|
-
return CHART_ACCOUNTS_CATEGORIES.sole.includes((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.category);
|
|
2740
|
-
}
|
|
2741
|
-
return !!this.business;
|
|
2742
|
-
}
|
|
2743
|
-
}
|
|
2744
|
-
__decorate([
|
|
2745
|
-
Exclude({ toPlainOnly: true }),
|
|
2746
|
-
Type(() => Object),
|
|
2747
|
-
Transform(({ obj }) => {
|
|
2748
|
-
return obj.file;
|
|
2749
|
-
})
|
|
2750
|
-
], TransactionBase.prototype, "file", void 0);
|
|
2751
|
-
|
|
2752
|
-
class Depreciation$1 extends TransactionBase {
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
var DepreciationTypeEnum;
|
|
2756
|
-
(function (DepreciationTypeEnum) {
|
|
2757
|
-
DepreciationTypeEnum[DepreciationTypeEnum["PLANT_EQUIPMENT"] = 1] = "PLANT_EQUIPMENT";
|
|
2758
|
-
DepreciationTypeEnum[DepreciationTypeEnum["CAPITAL_WORKS"] = 2] = "CAPITAL_WORKS";
|
|
2759
|
-
DepreciationTypeEnum[DepreciationTypeEnum["BULK_DEPRECIATION"] = 3] = "BULK_DEPRECIATION";
|
|
2760
|
-
DepreciationTypeEnum[DepreciationTypeEnum["BORROWING_EXPENSES"] = 4] = "BORROWING_EXPENSES";
|
|
2761
|
-
})(DepreciationTypeEnum || (DepreciationTypeEnum = {}));
|
|
2762
|
-
|
|
2763
|
-
var DepreciationCalculationEnum;
|
|
2764
|
-
(function (DepreciationCalculationEnum) {
|
|
2765
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["PRIME_COST"] = 1] = "PRIME_COST";
|
|
2766
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["DIMINISHING"] = 2] = "DIMINISHING";
|
|
2767
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["CAPITAL"] = 3] = "CAPITAL";
|
|
2768
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["LVP"] = 4] = "LVP";
|
|
2769
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["AMORTISATION"] = 5] = "AMORTISATION";
|
|
2770
|
-
DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
|
|
2771
|
-
})(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
|
|
2772
|
-
|
|
2773
|
-
class DepreciationCapitalProject$1 extends AbstractModel {
|
|
2692
|
+
class TransactionMetadata$1 extends AbstractModel {
|
|
2774
2693
|
}
|
|
2775
2694
|
|
|
2776
|
-
class
|
|
2695
|
+
class TransactionMetadata extends TransactionMetadata$1 {
|
|
2777
2696
|
}
|
|
2778
2697
|
__decorate([
|
|
2779
|
-
Type(() =>
|
|
2780
|
-
],
|
|
2781
|
-
|
|
2782
|
-
class DepreciationForecast$1 extends AbstractModel {
|
|
2783
|
-
}
|
|
2698
|
+
Type(() => ChartAccountsMetadata)
|
|
2699
|
+
], TransactionMetadata.prototype, "metadata", void 0);
|
|
2784
2700
|
|
|
2785
|
-
class
|
|
2786
|
-
get dailyClaimAmount() {
|
|
2787
|
-
return this.claimAmount / this.daysApplied;
|
|
2788
|
-
}
|
|
2789
|
-
get daysApplied() {
|
|
2790
|
-
return moment$1(this.toDate).diff(moment$1(this.fromDate), 'days');
|
|
2791
|
-
}
|
|
2792
|
-
getDaysByMonth(month) {
|
|
2793
|
-
// @TODO find a better place
|
|
2794
|
-
const year = this.financialYear - (month > 5 ? 1 : 0);
|
|
2795
|
-
// forecast date intersect by month
|
|
2796
|
-
const range = new DateRange(this.fromDate, this.toDate).intersect(new DateRange(new Date(year, month, 1), new Date(year, month + 1, 0)));
|
|
2797
|
-
return range ? range.duration('days') + 1 : 0;
|
|
2798
|
-
}
|
|
2799
|
-
get claimOpenBalance() {
|
|
2800
|
-
return this.openBalance * this.claimRate;
|
|
2801
|
-
}
|
|
2802
|
-
get claimCloseBalance() {
|
|
2803
|
-
return this.closeBalance * this.claimRate;
|
|
2804
|
-
}
|
|
2805
|
-
get claimAmount() {
|
|
2806
|
-
return this.amount * this.claimRate;
|
|
2807
|
-
}
|
|
2808
|
-
get claimRate() {
|
|
2809
|
-
return this.claimPercent / 100;
|
|
2810
|
-
}
|
|
2811
|
-
getClaimAmountByMonth(month) {
|
|
2812
|
-
return this.getDaysByMonth(month) * this.dailyClaimAmount;
|
|
2813
|
-
}
|
|
2701
|
+
class TransactionAllocation$1 extends AbstractModel {
|
|
2814
2702
|
}
|
|
2815
2703
|
|
|
2816
2704
|
class BankTransaction$1 extends AbstractModel {
|
|
@@ -2822,275 +2710,296 @@ var BankTransactionTypeEnum;
|
|
|
2822
2710
|
BankTransactionTypeEnum[BankTransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
|
|
2823
2711
|
})(BankTransactionTypeEnum || (BankTransactionTypeEnum = {}));
|
|
2824
2712
|
|
|
2825
|
-
|
|
2826
|
-
(function (TransactionSourceEnum) {
|
|
2827
|
-
TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
|
|
2828
|
-
TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
|
|
2829
|
-
})(TransactionSourceEnum || (TransactionSourceEnum = {}));
|
|
2830
|
-
|
|
2831
|
-
class Transaction$1 extends TransactionBase {
|
|
2832
|
-
}
|
|
2833
|
-
|
|
2834
|
-
var TransactionTypeEnum;
|
|
2835
|
-
(function (TransactionTypeEnum) {
|
|
2836
|
-
TransactionTypeEnum[TransactionTypeEnum["DEBIT"] = 1] = "DEBIT";
|
|
2837
|
-
TransactionTypeEnum[TransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
|
|
2838
|
-
})(TransactionTypeEnum || (TransactionTypeEnum = {}));
|
|
2839
|
-
|
|
2840
|
-
var TransactionOperationEnum;
|
|
2841
|
-
(function (TransactionOperationEnum) {
|
|
2842
|
-
TransactionOperationEnum[TransactionOperationEnum["ALLOCATE"] = 1] = "ALLOCATE";
|
|
2843
|
-
TransactionOperationEnum[TransactionOperationEnum["FIND_AND_MATCH"] = 2] = "FIND_AND_MATCH";
|
|
2844
|
-
TransactionOperationEnum[TransactionOperationEnum["TRANSFER"] = 3] = "TRANSFER";
|
|
2845
|
-
})(TransactionOperationEnum || (TransactionOperationEnum = {}));
|
|
2846
|
-
|
|
2847
|
-
class TransactionReceipt$1 extends AbstractModel {
|
|
2848
|
-
}
|
|
2849
|
-
|
|
2850
|
-
// @TODO this enum should come from backend
|
|
2851
|
-
/**
|
|
2852
|
-
* Enum with asset types
|
|
2853
|
-
*/
|
|
2854
|
-
var AssetTypeEnum;
|
|
2855
|
-
(function (AssetTypeEnum) {
|
|
2856
|
-
AssetTypeEnum["RECEIPTS"] = "receipts";
|
|
2857
|
-
AssetTypeEnum["DOCUMENTS"] = "documents";
|
|
2858
|
-
AssetTypeEnum["MESSAGE"] = "message";
|
|
2859
|
-
})(AssetTypeEnum || (AssetTypeEnum = {}));
|
|
2860
|
-
|
|
2861
|
-
/**
|
|
2862
|
-
* Enum with asset entity types
|
|
2863
|
-
*/
|
|
2864
|
-
var AssetEntityTypeEnum;
|
|
2865
|
-
(function (AssetEntityTypeEnum) {
|
|
2866
|
-
AssetEntityTypeEnum["PROPERTIES"] = "properties";
|
|
2867
|
-
AssetEntityTypeEnum["FOLDERS"] = "folders";
|
|
2868
|
-
AssetEntityTypeEnum["DEPRECIATIONS"] = "depreciations";
|
|
2869
|
-
AssetEntityTypeEnum["TRANSACTIONS"] = "transactions";
|
|
2870
|
-
AssetEntityTypeEnum["MESSAGES"] = "messages";
|
|
2871
|
-
})(AssetEntityTypeEnum || (AssetEntityTypeEnum = {}));
|
|
2872
|
-
|
|
2873
|
-
class TransactionReceipt extends TransactionReceipt$1 {
|
|
2713
|
+
class BankTransaction extends BankTransaction$1 {
|
|
2874
2714
|
constructor() {
|
|
2875
2715
|
super(...arguments);
|
|
2876
|
-
|
|
2877
|
-
this.
|
|
2716
|
+
// allocated money amount for bank transaction
|
|
2717
|
+
this.allocatedAmount = 0;
|
|
2718
|
+
this.unallocatedAmount = 0;
|
|
2719
|
+
}
|
|
2720
|
+
/**
|
|
2721
|
+
* get allocated amount value but with +/- sign
|
|
2722
|
+
*/
|
|
2723
|
+
get balanceAmount() {
|
|
2724
|
+
return this.isCredit() ? this.allocatedAmount : -this.allocatedAmount;
|
|
2725
|
+
}
|
|
2726
|
+
/**
|
|
2727
|
+
* check if bank transaction is debit
|
|
2728
|
+
*/
|
|
2729
|
+
isDebit() {
|
|
2730
|
+
return this.type === BankTransactionTypeEnum.DEBIT;
|
|
2731
|
+
}
|
|
2732
|
+
/**
|
|
2733
|
+
* check if bank transaction is credit
|
|
2734
|
+
*/
|
|
2735
|
+
isCredit() {
|
|
2736
|
+
return this.type === BankTransactionTypeEnum.CREDIT;
|
|
2737
|
+
}
|
|
2738
|
+
/**
|
|
2739
|
+
* Create Transaction instance based on Bank Transaction
|
|
2740
|
+
*/
|
|
2741
|
+
toTransaction() {
|
|
2742
|
+
return plainToClass(Transaction, {
|
|
2743
|
+
amount: +this.amount.toFixed(2),
|
|
2744
|
+
description: this.description,
|
|
2745
|
+
date: this.date,
|
|
2746
|
+
source: TransactionSourceEnum.BANK_TRANSACTION,
|
|
2747
|
+
operation: this.operation,
|
|
2748
|
+
type: this.type,
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* Check if bank transaction is completely allocated
|
|
2753
|
+
*/
|
|
2754
|
+
isAllocated(allocations) {
|
|
2755
|
+
return this.amount === this.getAllocatedAmount(allocations);
|
|
2756
|
+
}
|
|
2757
|
+
/**
|
|
2758
|
+
* Get bank transaction allocated amount
|
|
2759
|
+
*/
|
|
2760
|
+
getAllocatedAmount(allocations) {
|
|
2761
|
+
return allocations.getByBankTransactionsIds([this.id]).amount;
|
|
2762
|
+
}
|
|
2763
|
+
/**
|
|
2764
|
+
* Get bank transaction unallocated amount
|
|
2765
|
+
*/
|
|
2766
|
+
getUnallocatedAmount(allocations) {
|
|
2767
|
+
return this.amount - this.getAllocatedAmount(allocations);
|
|
2878
2768
|
}
|
|
2879
|
-
}
|
|
2880
|
-
|
|
2881
|
-
class IncomeSource$1 extends AbstractModel {
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
var IncomeSourceTypeEnum;
|
|
2885
|
-
(function (IncomeSourceTypeEnum) {
|
|
2886
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
2887
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
2888
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
2889
|
-
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
2890
|
-
|
|
2891
|
-
class SalaryForecast$1 extends AbstractModel {
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
class SalaryForecast extends SalaryForecast$1 {
|
|
2895
2769
|
}
|
|
2896
2770
|
__decorate([
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
], SalaryForecast.prototype, "grossAmount", void 0);
|
|
2900
|
-
__decorate([
|
|
2901
|
-
Type(() => IncomeSource)
|
|
2902
|
-
], SalaryForecast.prototype, "incomeSource", void 0);
|
|
2903
|
-
|
|
2904
|
-
class SoleForecast$1 extends AbstractModel {
|
|
2905
|
-
}
|
|
2771
|
+
Type(() => Date)
|
|
2772
|
+
], BankTransaction.prototype, "date", void 0);
|
|
2906
2773
|
|
|
2907
|
-
class
|
|
2908
|
-
|
|
2909
|
-
|
|
2774
|
+
class TransactionAllocation extends TransactionAllocation$1 {
|
|
2775
|
+
/**
|
|
2776
|
+
* Create a new instance of transaction allocation
|
|
2777
|
+
* transaction could be empty since we can POST allocation inside a new transaction
|
|
2778
|
+
*/
|
|
2779
|
+
static create(amount, bankTransaction, transaction) {
|
|
2780
|
+
return plainToClass(TransactionAllocation, { amount, transaction, bankTransaction });
|
|
2910
2781
|
}
|
|
2911
|
-
;
|
|
2912
2782
|
}
|
|
2913
2783
|
__decorate([
|
|
2914
|
-
Type(() =>
|
|
2915
|
-
],
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2784
|
+
Type(() => BankTransaction)
|
|
2785
|
+
], TransactionAllocation.prototype, "bankTransaction", void 0);
|
|
2786
|
+
__decorate([
|
|
2787
|
+
Type(() => Transaction)
|
|
2788
|
+
], TransactionAllocation.prototype, "transaction", void 0);
|
|
2919
2789
|
|
|
2920
|
-
|
|
2921
|
-
(
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2790
|
+
/**
|
|
2791
|
+
* Enum with income amount types (Net or Gross)
|
|
2792
|
+
*/
|
|
2793
|
+
var IncomeAmountTypeEnum;
|
|
2794
|
+
(function (IncomeAmountTypeEnum) {
|
|
2795
|
+
IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
|
|
2796
|
+
IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
|
|
2797
|
+
})(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
|
|
2927
2798
|
|
|
2928
|
-
class
|
|
2799
|
+
class Depreciation$1 extends TransactionBase {
|
|
2929
2800
|
}
|
|
2930
2801
|
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
|
|
2934
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
|
|
2935
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
|
|
2936
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
|
|
2937
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
2938
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
|
|
2939
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
|
|
2940
|
-
})(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
|
|
2802
|
+
class DepreciationCapitalProject$1 extends AbstractModel {
|
|
2803
|
+
}
|
|
2941
2804
|
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
|
|
2948
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
|
|
2949
|
-
})(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
|
|
2805
|
+
class DepreciationCapitalProject extends DepreciationCapitalProject$1 {
|
|
2806
|
+
}
|
|
2807
|
+
__decorate([
|
|
2808
|
+
Type(() => Date)
|
|
2809
|
+
], DepreciationCapitalProject.prototype, "effectiveDate", void 0);
|
|
2950
2810
|
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
2954
|
-
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
2811
|
+
class DepreciationForecast$1 extends AbstractModel {
|
|
2812
|
+
}
|
|
2955
2813
|
|
|
2956
|
-
class
|
|
2957
|
-
|
|
2958
|
-
return this.
|
|
2814
|
+
class DepreciationForecast extends DepreciationForecast$1 {
|
|
2815
|
+
get dailyClaimAmount() {
|
|
2816
|
+
return this.claimAmount / this.daysApplied;
|
|
2959
2817
|
}
|
|
2960
|
-
|
|
2961
|
-
return
|
|
2818
|
+
get daysApplied() {
|
|
2819
|
+
return moment$1(this.toDate).diff(moment$1(this.fromDate), 'days');
|
|
2962
2820
|
}
|
|
2963
|
-
|
|
2964
|
-
|
|
2821
|
+
getDaysByMonth(month) {
|
|
2822
|
+
// @TODO find a better place
|
|
2823
|
+
const year = this.financialYear - (month > 5 ? 1 : 0);
|
|
2824
|
+
// forecast date intersect by month
|
|
2825
|
+
const range = new DateRange(this.fromDate, this.toDate).intersect(new DateRange(new Date(year, month, 1), new Date(year, month + 1, 0)));
|
|
2826
|
+
return range ? range.duration('days') + 1 : 0;
|
|
2965
2827
|
}
|
|
2966
|
-
|
|
2967
|
-
return
|
|
2828
|
+
get claimOpenBalance() {
|
|
2829
|
+
return this.openBalance * this.claimRate;
|
|
2968
2830
|
}
|
|
2969
|
-
get
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2831
|
+
get claimCloseBalance() {
|
|
2832
|
+
return this.closeBalance * this.claimRate;
|
|
2833
|
+
}
|
|
2834
|
+
get claimAmount() {
|
|
2835
|
+
return this.amount * this.claimRate;
|
|
2836
|
+
}
|
|
2837
|
+
get claimRate() {
|
|
2838
|
+
return this.claimPercent / 100;
|
|
2839
|
+
}
|
|
2840
|
+
getClaimAmountByMonth(month) {
|
|
2841
|
+
return this.getDaysByMonth(month) * this.dailyClaimAmount;
|
|
2978
2842
|
}
|
|
2979
2843
|
}
|
|
2980
2844
|
|
|
2981
|
-
|
|
2845
|
+
/**
|
|
2846
|
+
* @TODO Alex: clarify grouping rules and refactor
|
|
2847
|
+
*/
|
|
2848
|
+
class Depreciation extends Depreciation$1 {
|
|
2982
2849
|
constructor() {
|
|
2983
2850
|
super(...arguments);
|
|
2984
|
-
this.
|
|
2985
|
-
this.
|
|
2986
|
-
|
|
2851
|
+
this.forecasts = [];
|
|
2852
|
+
this.type = DepreciationTypeEnum.PLANT_EQUIPMENT;
|
|
2853
|
+
/**
|
|
2854
|
+
* @TODO remove after ? signs removed from db models
|
|
2855
|
+
*/
|
|
2856
|
+
this.amount = 0;
|
|
2987
2857
|
}
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
*/
|
|
2992
|
-
get netPay() {
|
|
2993
|
-
return this.amount;
|
|
2858
|
+
// Type checking
|
|
2859
|
+
isCapital() {
|
|
2860
|
+
return this.type === DepreciationTypeEnum.CAPITAL_WORKS;
|
|
2994
2861
|
}
|
|
2995
|
-
|
|
2996
|
-
return this.
|
|
2862
|
+
isBorrowingExpense() {
|
|
2863
|
+
return this.type === DepreciationTypeEnum.BORROWING_EXPENSES;
|
|
2997
2864
|
}
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
Type(() => IncomeSourceType)
|
|
3001
|
-
], IncomeSourceForecast.prototype, "incomeSourceType", void 0);
|
|
3002
|
-
__decorate([
|
|
3003
|
-
Type(() => IncomeSource)
|
|
3004
|
-
], IncomeSourceForecast.prototype, "incomeSource", void 0);
|
|
3005
|
-
|
|
3006
|
-
class IncomeSource extends IncomeSource$1 {
|
|
3007
|
-
isSalaryIncome() {
|
|
3008
|
-
return !!this.salaryForecasts.length;
|
|
3009
|
-
// @TODO Vik: old code
|
|
3010
|
-
// return this.type === IncomeSourceTypeEnum.SALARY;
|
|
2865
|
+
isAsset() {
|
|
2866
|
+
return this.type === DepreciationTypeEnum.PLANT_EQUIPMENT;
|
|
3011
2867
|
}
|
|
3012
|
-
|
|
3013
|
-
|
|
2868
|
+
// Calculation checking
|
|
2869
|
+
isSBPCalculation() {
|
|
2870
|
+
return this.calculation === DepreciationCalculationEnum.SBP;
|
|
3014
2871
|
}
|
|
3015
|
-
|
|
3016
|
-
return this.
|
|
2872
|
+
isPrimeCost() {
|
|
2873
|
+
return this.calculation === DepreciationCalculationEnum.PRIME_COST;
|
|
3017
2874
|
}
|
|
3018
|
-
|
|
3019
|
-
return this.
|
|
2875
|
+
isDiminishing() {
|
|
2876
|
+
return this.calculation === DepreciationCalculationEnum.DIMINISHING;
|
|
2877
|
+
}
|
|
2878
|
+
// Pool checking
|
|
2879
|
+
isPlantEquipmentPool() {
|
|
2880
|
+
return this.isAsset() && !this.isSBPCalculation() && !this.isWrittenOff() && !this.isLVP();
|
|
2881
|
+
}
|
|
2882
|
+
isLVP() {
|
|
2883
|
+
return this.isAsset()
|
|
2884
|
+
&& !this.isSBPCalculation()
|
|
2885
|
+
&& this.isDiminishing()
|
|
2886
|
+
&& this.currentYearForecast.closeBalance > Depreciation.WRITTEN_OFF_THRESHOLD
|
|
2887
|
+
&& this.currentYearForecast.closeBalance <= Depreciation.LOW_VALUE_POOL_THRESHOLD;
|
|
2888
|
+
}
|
|
2889
|
+
isSBP() {
|
|
2890
|
+
return this.isAsset() && this.isSBPCalculation() && !this.isWrittenOff();
|
|
2891
|
+
}
|
|
2892
|
+
isWrittenOff() {
|
|
2893
|
+
return this.writeOffYear === new FinancialYear().year;
|
|
2894
|
+
}
|
|
2895
|
+
get writeOffYear() {
|
|
2896
|
+
var _a;
|
|
2897
|
+
if (!this.writeOffManualDate && !this.writeOffDate) {
|
|
2898
|
+
return null;
|
|
2899
|
+
}
|
|
2900
|
+
return (_a = new FinancialYear(this.writeOffManualDate || this.writeOffDate)) === null || _a === void 0 ? void 0 : _a.year;
|
|
3020
2901
|
}
|
|
3021
2902
|
/**
|
|
3022
|
-
*
|
|
2903
|
+
* Check if depreciation chart accounts heading related to vehicles category
|
|
3023
2904
|
*/
|
|
3024
|
-
|
|
3025
|
-
|
|
2905
|
+
isVehicleDepreciation() {
|
|
2906
|
+
var _a;
|
|
2907
|
+
return ((_a = this.chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id) === ChartAccountsHeadingVehicleListEnum.DEPRECIATION_VEHICLES;
|
|
3026
2908
|
}
|
|
3027
2909
|
/**
|
|
3028
|
-
* Get
|
|
2910
|
+
* Get depreciation purchase date
|
|
3029
2911
|
*/
|
|
3030
|
-
|
|
3031
|
-
return this.
|
|
2912
|
+
getDate() {
|
|
2913
|
+
return this.date;
|
|
3032
2914
|
}
|
|
3033
2915
|
/**
|
|
3034
|
-
*
|
|
3035
|
-
* @param monthIndex by which month should be taken
|
|
2916
|
+
* @TODO Vik: Research a problem with depreciations without current year forecast
|
|
3036
2917
|
*/
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
2918
|
+
get currentYearForecast() {
|
|
2919
|
+
return this.forecasts.find((forecast) => {
|
|
2920
|
+
return forecast.financialYear === new FinancialYear().year;
|
|
2921
|
+
}) || plainToClass(DepreciationForecast, {
|
|
2922
|
+
financialYear: new FinancialYear().year,
|
|
2923
|
+
openBalance: 0,
|
|
2924
|
+
closeBalance: 0,
|
|
2925
|
+
amount: 0,
|
|
2926
|
+
claimPercent: 0
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
getForecastByYear(year) {
|
|
2930
|
+
return this.forecasts.find((forecast) => {
|
|
2931
|
+
return forecast.financialYear === year;
|
|
2932
|
+
});
|
|
2933
|
+
}
|
|
2934
|
+
getClaimAmountByYear(year) {
|
|
2935
|
+
var _a;
|
|
2936
|
+
return ((_a = this.getForecastByYear(year)) === null || _a === void 0 ? void 0 : _a.claimAmount) || 0;
|
|
2937
|
+
}
|
|
2938
|
+
getCloseBalanceByYear(year) {
|
|
2939
|
+
var _a;
|
|
2940
|
+
return ((_a = this.getForecastByYear(year)) === null || _a === void 0 ? void 0 : _a.closeBalance) || 0;
|
|
2941
|
+
}
|
|
2942
|
+
isBuildingAtCost() {
|
|
2943
|
+
return this.chartAccounts.id === ChartAccountsListEnum.BUILDING_AT_COST;
|
|
2944
|
+
}
|
|
2945
|
+
/**
|
|
2946
|
+
* Create a new transaction from current depreciation
|
|
2947
|
+
*/
|
|
2948
|
+
toTransaction(params = {}) {
|
|
2949
|
+
return plainToClass(Transaction, Object.assign(params, this, { amount: -this.claimAmount, claimAmount: -this.amount * (this.claimPercent / 100) }));
|
|
2950
|
+
}
|
|
2951
|
+
/**
|
|
2952
|
+
* @TODO Michael: remove and check everywhere in reports
|
|
2953
|
+
*/
|
|
2954
|
+
get claimAmount() {
|
|
2955
|
+
var _a;
|
|
2956
|
+
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.claimAmount) || 0;
|
|
3040
2957
|
}
|
|
3041
2958
|
}
|
|
2959
|
+
Depreciation.WRITTEN_OFF_THRESHOLD = 300;
|
|
2960
|
+
Depreciation.LOW_VALUE_POOL_THRESHOLD = 1000;
|
|
3042
2961
|
__decorate([
|
|
3043
|
-
Type(() =>
|
|
3044
|
-
],
|
|
2962
|
+
Type(() => Date)
|
|
2963
|
+
], Depreciation.prototype, "purchaseDate", void 0);
|
|
3045
2964
|
__decorate([
|
|
3046
|
-
Type(() =>
|
|
3047
|
-
],
|
|
2965
|
+
Type(() => Date)
|
|
2966
|
+
], Depreciation.prototype, "date", void 0);
|
|
3048
2967
|
__decorate([
|
|
3049
|
-
Type(() =>
|
|
3050
|
-
],
|
|
2968
|
+
Type(() => Date)
|
|
2969
|
+
], Depreciation.prototype, "lowValuePoolDate", void 0);
|
|
3051
2970
|
__decorate([
|
|
3052
2971
|
Type(() => Date)
|
|
3053
|
-
],
|
|
2972
|
+
], Depreciation.prototype, "writeOffManualDate", void 0);
|
|
3054
2973
|
__decorate([
|
|
3055
2974
|
Type(() => Date)
|
|
3056
|
-
],
|
|
3057
|
-
|
|
3058
|
-
class TransactionMetadata$1 extends AbstractModel {
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
class TransactionMetadata extends TransactionMetadata$1 {
|
|
3062
|
-
}
|
|
2975
|
+
], Depreciation.prototype, "writeOffDate", void 0);
|
|
3063
2976
|
__decorate([
|
|
3064
|
-
Type(() =>
|
|
3065
|
-
],
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
}
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
2977
|
+
Type(() => DepreciationCapitalProject)
|
|
2978
|
+
], Depreciation.prototype, "depreciationCapitalProject", void 0);
|
|
2979
|
+
__decorate([
|
|
2980
|
+
Type(() => DepreciationForecast),
|
|
2981
|
+
Transform(({ value, obj }) => {
|
|
2982
|
+
// value = array of DepreciationForecast
|
|
2983
|
+
// obj = plain (whole Depreciation object)
|
|
2984
|
+
// Set isLVP flag for each DepreciationForecast
|
|
2985
|
+
// @TODO refactor
|
|
2986
|
+
value.forEach((forecast) => {
|
|
2987
|
+
forecast.isLVP =
|
|
2988
|
+
forecast.closeBalance < 1000 &&
|
|
2989
|
+
obj.calculation === DepreciationCalculationEnum.DIMINISHING &&
|
|
2990
|
+
obj.type === DepreciationTypeEnum.PLANT_EQUIPMENT &&
|
|
2991
|
+
!(obj.amount > Depreciation.WRITTEN_OFF_THRESHOLD && obj.amount < Depreciation.LOW_VALUE_POOL_THRESHOLD) &&
|
|
2992
|
+
!(obj.writeOffDate && new FinancialYear(new Date(obj.writeOffDate)).year === obj.financialYear);
|
|
2993
|
+
});
|
|
2994
|
+
return value;
|
|
2995
|
+
})
|
|
2996
|
+
], Depreciation.prototype, "forecasts", void 0);
|
|
3079
2997
|
__decorate([
|
|
3080
|
-
Type(() =>
|
|
3081
|
-
],
|
|
2998
|
+
Type(() => ChartAccounts)
|
|
2999
|
+
], Depreciation.prototype, "chartAccounts", void 0);
|
|
3082
3000
|
__decorate([
|
|
3083
|
-
Type(() =>
|
|
3084
|
-
],
|
|
3085
|
-
|
|
3086
|
-
/**
|
|
3087
|
-
* Enum with income amount types (Net or Gross)
|
|
3088
|
-
*/
|
|
3089
|
-
var IncomeAmountTypeEnum;
|
|
3090
|
-
(function (IncomeAmountTypeEnum) {
|
|
3091
|
-
IncomeAmountTypeEnum[IncomeAmountTypeEnum["NET"] = 0] = "NET";
|
|
3092
|
-
IncomeAmountTypeEnum[IncomeAmountTypeEnum["GROSS"] = 1] = "GROSS";
|
|
3093
|
-
})(IncomeAmountTypeEnum || (IncomeAmountTypeEnum = {}));
|
|
3001
|
+
Type(() => BankTransaction)
|
|
3002
|
+
], Depreciation.prototype, "bankTransaction", void 0);
|
|
3094
3003
|
|
|
3095
3004
|
// @TODO refactor with baseModel in constructor
|
|
3096
3005
|
class Transaction extends Transaction$1 {
|
|
@@ -3298,225 +3207,402 @@ __decorate([
|
|
|
3298
3207
|
Type(() => TransactionAllocation)
|
|
3299
3208
|
], Transaction.prototype, "allocations", void 0);
|
|
3300
3209
|
|
|
3301
|
-
class
|
|
3210
|
+
class SoleInvoiceItem extends SoleInvoiceItem$1 {
|
|
3302
3211
|
constructor() {
|
|
3303
3212
|
super(...arguments);
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3213
|
+
this.isGST = false;
|
|
3214
|
+
}
|
|
3215
|
+
get totalPrice() {
|
|
3216
|
+
return this.price * this.quantity;
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
/**
|
|
3220
|
+
* GST percent value
|
|
3221
|
+
*/
|
|
3222
|
+
SoleInvoiceItem.GSTRatio = 0.1;
|
|
3223
|
+
__decorate([
|
|
3224
|
+
Type(() => SoleInvoice)
|
|
3225
|
+
], SoleInvoiceItem.prototype, "invoice", void 0);
|
|
3226
|
+
__decorate([
|
|
3227
|
+
Type(() => ChartAccounts)
|
|
3228
|
+
], SoleInvoiceItem.prototype, "chartAccounts", void 0);
|
|
3229
|
+
__decorate([
|
|
3230
|
+
Type(() => Transaction)
|
|
3231
|
+
], SoleInvoiceItem.prototype, "transaction", void 0);
|
|
3232
|
+
|
|
3233
|
+
class SoleContact$1 extends AbstractModel {
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
// @TODO Alex/Vik: Create some base class for User and SoleContact with common methods and properties
|
|
3237
|
+
class SoleContact extends SoleContact$1 {
|
|
3238
|
+
get fullName() {
|
|
3239
|
+
return `${this.firstName} ${this.lastName}`;
|
|
3240
|
+
}
|
|
3241
|
+
getPhotoPlaceholder() {
|
|
3242
|
+
return `${this.firstName[0].toUpperCase()}${this.lastName[0].toUpperCase()}`;
|
|
3243
|
+
}
|
|
3244
|
+
// @TODO Vik: add photo field to SoleContact
|
|
3245
|
+
getPhoto() {
|
|
3246
|
+
return '';
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
__decorate([
|
|
3250
|
+
Type(() => User)
|
|
3251
|
+
], SoleContact.prototype, "user", void 0);
|
|
3252
|
+
__decorate([
|
|
3253
|
+
Type(() => Phone)
|
|
3254
|
+
], SoleContact.prototype, "phone", void 0);
|
|
3255
|
+
__decorate([
|
|
3256
|
+
Type(() => Address)
|
|
3257
|
+
], SoleContact.prototype, "address", void 0);
|
|
3258
|
+
__decorate([
|
|
3259
|
+
Type(() => SoleInvoice)
|
|
3260
|
+
], SoleContact.prototype, "invoices", void 0);
|
|
3261
|
+
|
|
3262
|
+
class SoleInvoiceTemplate$1 extends AbstractModel {
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
var SoleInvoiceTemplateTaxTypeEnum;
|
|
3266
|
+
(function (SoleInvoiceTemplateTaxTypeEnum) {
|
|
3267
|
+
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
|
3268
|
+
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
|
3269
|
+
SoleInvoiceTemplateTaxTypeEnum[SoleInvoiceTemplateTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
|
3270
|
+
})(SoleInvoiceTemplateTaxTypeEnum || (SoleInvoiceTemplateTaxTypeEnum = {}));
|
|
3271
|
+
|
|
3272
|
+
class SoleInvoiceTemplate extends SoleInvoiceTemplate$1 {
|
|
3273
|
+
constructor() {
|
|
3274
|
+
super(...arguments);
|
|
3275
|
+
/**
|
|
3276
|
+
* Affects to SoleInvoiceItem.isGST flag availability.
|
|
3277
|
+
* When NONE: isGST is unavailable
|
|
3278
|
+
* When EXCLUSIVE: GST amount added additionaly to invoice total price
|
|
3279
|
+
* When INCLUSIVE: GST amount is already included to invoice total price
|
|
3280
|
+
*/
|
|
3281
|
+
this.taxType = SoleInvoiceTemplateTaxTypeEnum.NO_TAX;
|
|
3307
3282
|
}
|
|
3308
3283
|
/**
|
|
3309
|
-
*
|
|
3284
|
+
* Get term duration in milliseconds
|
|
3310
3285
|
*/
|
|
3311
|
-
get
|
|
3312
|
-
return this.
|
|
3286
|
+
get termTime() {
|
|
3287
|
+
return this.term * 24 * 3600 * 1000;
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
__decorate([
|
|
3291
|
+
Type(() => SoleBusiness)
|
|
3292
|
+
], SoleInvoiceTemplate.prototype, "business", void 0);
|
|
3293
|
+
__decorate([
|
|
3294
|
+
Type(() => BankAccount)
|
|
3295
|
+
], SoleInvoiceTemplate.prototype, "bankAccount", void 0);
|
|
3296
|
+
|
|
3297
|
+
var SoleInvoiceStatusesEnum;
|
|
3298
|
+
(function (SoleInvoiceStatusesEnum) {
|
|
3299
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["CANCELED"] = 0] = "CANCELED";
|
|
3300
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
|
|
3301
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PENDING"] = 2] = "PENDING";
|
|
3302
|
+
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["PAID"] = 3] = "PAID";
|
|
3303
|
+
})(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
|
|
3304
|
+
|
|
3305
|
+
var SoleInvoiceTaxTypeEnum;
|
|
3306
|
+
(function (SoleInvoiceTaxTypeEnum) {
|
|
3307
|
+
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
|
3308
|
+
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
|
3309
|
+
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
|
3310
|
+
})(SoleInvoiceTaxTypeEnum || (SoleInvoiceTaxTypeEnum = {}));
|
|
3311
|
+
|
|
3312
|
+
class SoleInvoiceItemCollection extends Collection {
|
|
3313
|
+
get gstPrice() {
|
|
3314
|
+
return this.filterBy('isGST', true).sumBy('totalPrice');
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
class SoleInvoice extends SoleInvoice$1 {
|
|
3319
|
+
constructor() {
|
|
3320
|
+
super(...arguments);
|
|
3321
|
+
this.status = SoleInvoiceStatusesEnum.DRAFT;
|
|
3322
|
+
this.taxType = SoleInvoiceTaxTypeEnum.NO_TAX;
|
|
3313
3323
|
}
|
|
3314
3324
|
/**
|
|
3315
|
-
*
|
|
3325
|
+
* Get items array as collection
|
|
3316
3326
|
*/
|
|
3317
|
-
|
|
3318
|
-
return this.
|
|
3327
|
+
get itemsCollection() {
|
|
3328
|
+
return new SoleInvoiceItemCollection(this.items);
|
|
3319
3329
|
}
|
|
3320
3330
|
/**
|
|
3321
|
-
*
|
|
3331
|
+
* Total price of all items
|
|
3322
3332
|
*/
|
|
3323
|
-
|
|
3324
|
-
return this.
|
|
3333
|
+
get price() {
|
|
3334
|
+
return this.itemsCollection.sumBy('totalPrice');
|
|
3325
3335
|
}
|
|
3326
3336
|
/**
|
|
3327
|
-
*
|
|
3337
|
+
* Total invoice price without GST
|
|
3328
3338
|
*/
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
source: TransactionSourceEnum.BANK_TRANSACTION,
|
|
3335
|
-
operation: this.operation,
|
|
3336
|
-
type: this.type,
|
|
3337
|
-
});
|
|
3339
|
+
get netPrice() {
|
|
3340
|
+
if (this.isTaxInclusive()) {
|
|
3341
|
+
return this.price - this.GSTAmount;
|
|
3342
|
+
}
|
|
3343
|
+
return this.price;
|
|
3338
3344
|
}
|
|
3339
3345
|
/**
|
|
3340
|
-
*
|
|
3346
|
+
* Total final price (net + GST)
|
|
3341
3347
|
*/
|
|
3342
|
-
|
|
3343
|
-
|
|
3348
|
+
get grossPrice() {
|
|
3349
|
+
if (this.isTaxExclusive()) {
|
|
3350
|
+
return this.price + this.GSTAmount;
|
|
3351
|
+
}
|
|
3352
|
+
return this.price;
|
|
3344
3353
|
}
|
|
3345
3354
|
/**
|
|
3346
|
-
*
|
|
3355
|
+
* Total GST amount
|
|
3347
3356
|
*/
|
|
3348
|
-
|
|
3349
|
-
|
|
3357
|
+
get GSTAmount() {
|
|
3358
|
+
switch (this.taxType) {
|
|
3359
|
+
case SoleInvoiceTaxTypeEnum.TAX_INCLUSIVE:
|
|
3360
|
+
return this.inclusiveGSTAmount;
|
|
3361
|
+
case SoleInvoiceTaxTypeEnum.TAX_EXCLUSIVE:
|
|
3362
|
+
return this.exclusiveGSTAmount;
|
|
3363
|
+
case SoleInvoiceTaxTypeEnum.NO_TAX:
|
|
3364
|
+
return 0;
|
|
3365
|
+
}
|
|
3350
3366
|
}
|
|
3351
3367
|
/**
|
|
3352
|
-
*
|
|
3368
|
+
* When tax inclusive, GST amount is included to total price
|
|
3353
3369
|
*/
|
|
3354
|
-
|
|
3355
|
-
|
|
3370
|
+
get inclusiveGSTAmount() {
|
|
3371
|
+
const gstPrice = this.itemsCollection.gstPrice;
|
|
3372
|
+
return +(gstPrice - (gstPrice / (1 + SoleInvoiceItem.GSTRatio))).toFixed(2);
|
|
3373
|
+
}
|
|
3374
|
+
/**
|
|
3375
|
+
* When tax exclusive, GST amount should be added additionally to total price
|
|
3376
|
+
*/
|
|
3377
|
+
get exclusiveGSTAmount() {
|
|
3378
|
+
return +(this.itemsCollection.gstPrice * SoleInvoiceItem.GSTRatio).toFixed(2);
|
|
3379
|
+
}
|
|
3380
|
+
isDraft() {
|
|
3381
|
+
return this.status === SoleInvoiceStatusesEnum.DRAFT;
|
|
3382
|
+
}
|
|
3383
|
+
isCancelled() {
|
|
3384
|
+
return this.status === SoleInvoiceStatusesEnum.CANCELED;
|
|
3385
|
+
}
|
|
3386
|
+
isPending() {
|
|
3387
|
+
return this.status === SoleInvoiceStatusesEnum.PENDING;
|
|
3388
|
+
}
|
|
3389
|
+
isPaid() {
|
|
3390
|
+
return this.status === SoleInvoiceStatusesEnum.PAID;
|
|
3391
|
+
}
|
|
3392
|
+
isOverdue() {
|
|
3393
|
+
return this.isPending() && this.dateTo < new Date();
|
|
3394
|
+
}
|
|
3395
|
+
isUnpaid() {
|
|
3396
|
+
return this.isPending() && this.dateTo >= new Date();
|
|
3397
|
+
}
|
|
3398
|
+
/**
|
|
3399
|
+
* GST is not available for invoices without taxes
|
|
3400
|
+
*/
|
|
3401
|
+
isNoTax() {
|
|
3402
|
+
return this.taxType === SoleInvoiceTaxTypeEnum.NO_TAX;
|
|
3403
|
+
}
|
|
3404
|
+
/**
|
|
3405
|
+
* GST amount is not included in items prices for invoices with tax exclusive,
|
|
3406
|
+
* we should add GST amount additionaly to subtotal price to get total price
|
|
3407
|
+
*/
|
|
3408
|
+
isTaxExclusive() {
|
|
3409
|
+
return this.taxType === SoleInvoiceTaxTypeEnum.TAX_EXCLUSIVE;
|
|
3410
|
+
}
|
|
3411
|
+
/**
|
|
3412
|
+
* GST amount already included in items prices for invoices with tax inclusive,
|
|
3413
|
+
* we should subtract GST amount from total price to get subtotal price
|
|
3414
|
+
*/
|
|
3415
|
+
isTaxInclusive() {
|
|
3416
|
+
return this.taxType === SoleInvoiceTaxTypeEnum.TAX_INCLUSIVE;
|
|
3417
|
+
}
|
|
3418
|
+
getNumber() {
|
|
3419
|
+
return String(this.number).padStart(SoleInvoice.NUMBER_LENGTH, '0');
|
|
3420
|
+
}
|
|
3421
|
+
get name() {
|
|
3422
|
+
return `invoice-${this.getNumber()}.pdf`;
|
|
3423
|
+
}
|
|
3424
|
+
}
|
|
3425
|
+
SoleInvoice.NUMBER_LENGTH = 4;
|
|
3426
|
+
__decorate([
|
|
3427
|
+
Type(() => Date)
|
|
3428
|
+
], SoleInvoice.prototype, "dateFrom", void 0);
|
|
3429
|
+
__decorate([
|
|
3430
|
+
Type(() => Date)
|
|
3431
|
+
], SoleInvoice.prototype, "dateTo", void 0);
|
|
3432
|
+
__decorate([
|
|
3433
|
+
Type(() => User)
|
|
3434
|
+
], SoleInvoice.prototype, "user", void 0);
|
|
3435
|
+
__decorate([
|
|
3436
|
+
Type(() => SoleBusiness)
|
|
3437
|
+
], SoleInvoice.prototype, "business", void 0);
|
|
3438
|
+
__decorate([
|
|
3439
|
+
Type(() => SoleInvoiceItem)
|
|
3440
|
+
], SoleInvoice.prototype, "items", void 0);
|
|
3441
|
+
__decorate([
|
|
3442
|
+
Type(() => SoleContact)
|
|
3443
|
+
], SoleInvoice.prototype, "payer", void 0);
|
|
3444
|
+
__decorate([
|
|
3445
|
+
Type(() => SoleInvoiceTemplate)
|
|
3446
|
+
], SoleInvoice.prototype, "template", void 0);
|
|
3447
|
+
__decorate([
|
|
3448
|
+
Type(() => BankAccount)
|
|
3449
|
+
], SoleInvoice.prototype, "bankAccount", void 0);
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* Class contains traveled kilometers and work usage percent in 12 weeks date range
|
|
3453
|
+
* @TODO Vik: Best period: move this and related logic to backend
|
|
3454
|
+
* @TODO Alex: check if we need this class when calculation refactored with backend
|
|
3455
|
+
*/
|
|
3456
|
+
class LogbookPeriod {
|
|
3457
|
+
isEndOfYear() {
|
|
3458
|
+
return this.to === new FinancialYear().endDate;
|
|
3459
|
+
}
|
|
3460
|
+
getWorkUsageByClaim(claim) {
|
|
3461
|
+
const claimKilometers = this.logbooks.getByVehicleClaim(claim).getClaimableLogbooks().kilometers;
|
|
3462
|
+
return Math.round(this.workUsage * (claimKilometers / this.kilometers));
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
__decorate([
|
|
3466
|
+
Type(() => Date)
|
|
3467
|
+
], LogbookPeriod.prototype, "from", void 0);
|
|
3468
|
+
__decorate([
|
|
3469
|
+
Type(() => Date)
|
|
3470
|
+
], LogbookPeriod.prototype, "to", void 0);
|
|
3471
|
+
|
|
3472
|
+
class Vehicle$1 extends AbstractModel {
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
class VehicleLogbook$1 extends AbstractModel {
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
const moment = extendMoment(moment$1);
|
|
3479
|
+
class VehicleLogbook extends VehicleLogbook$1 {
|
|
3480
|
+
get kilometers() {
|
|
3481
|
+
return this.odometerEnd - this.odometerStart;
|
|
3482
|
+
}
|
|
3483
|
+
get tankType() {
|
|
3484
|
+
return this.isSoleTank() ? TankTypeEnum.SOLE : TankTypeEnum.WORK;
|
|
3485
|
+
}
|
|
3486
|
+
isWorkTank() {
|
|
3487
|
+
return !this.business;
|
|
3488
|
+
}
|
|
3489
|
+
isSoleTank() {
|
|
3490
|
+
return !!this.business;
|
|
3356
3491
|
}
|
|
3492
|
+
/**
|
|
3493
|
+
* Get logbook period date range from logbook date and weeksInPeriod duration
|
|
3494
|
+
*/
|
|
3495
|
+
getPeriod() {
|
|
3496
|
+
return moment.rangeFromInterval('milliseconds', VehicleLogbook.bestPeriodDuration, this.date);
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
/**
|
|
3500
|
+
* Logbook period duration in milliseconds.
|
|
3501
|
+
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/211517441/Logbook+Vehicle
|
|
3502
|
+
*/
|
|
3503
|
+
VehicleLogbook.bestPeriodDuration = 12 * 7 * 24 * 3600 * 1000;
|
|
3504
|
+
__decorate([
|
|
3505
|
+
Type(() => Date)
|
|
3506
|
+
], VehicleLogbook.prototype, "date", void 0);
|
|
3507
|
+
__decorate([
|
|
3508
|
+
Type(() => SoleBusiness)
|
|
3509
|
+
], VehicleLogbook.prototype, "business", void 0);
|
|
3510
|
+
|
|
3511
|
+
class Vehicle extends Vehicle$1 {
|
|
3357
3512
|
}
|
|
3358
3513
|
__decorate([
|
|
3359
|
-
Type(() =>
|
|
3360
|
-
],
|
|
3514
|
+
Type(() => VehicleLogbook)
|
|
3515
|
+
], Vehicle.prototype, "logbook", void 0);
|
|
3361
3516
|
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
class
|
|
3517
|
+
class VehicleClaim$1 extends AbstractModel {
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
class VehicleClaimDetails$1 extends AbstractModel {
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
var VehicleClaimDetailsMethodEnum;
|
|
3524
|
+
(function (VehicleClaimDetailsMethodEnum) {
|
|
3525
|
+
VehicleClaimDetailsMethodEnum[VehicleClaimDetailsMethodEnum["KMS"] = 1] = "KMS";
|
|
3526
|
+
VehicleClaimDetailsMethodEnum[VehicleClaimDetailsMethodEnum["LOGBOOK"] = 2] = "LOGBOOK";
|
|
3527
|
+
})(VehicleClaimDetailsMethodEnum || (VehicleClaimDetailsMethodEnum = {}));
|
|
3528
|
+
|
|
3529
|
+
class VehicleClaimDetails extends VehicleClaimDetails$1 {
|
|
3366
3530
|
constructor() {
|
|
3367
3531
|
super(...arguments);
|
|
3368
|
-
this.forecasts = [];
|
|
3369
|
-
this.type = DepreciationTypeEnum.PLANT_EQUIPMENT;
|
|
3370
3532
|
/**
|
|
3371
|
-
*
|
|
3533
|
+
* Init default values for the new instances
|
|
3372
3534
|
*/
|
|
3373
|
-
this.
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
isCapital() {
|
|
3377
|
-
return this.type === DepreciationTypeEnum.CAPITAL_WORKS;
|
|
3378
|
-
}
|
|
3379
|
-
isBorrowingExpense() {
|
|
3380
|
-
return this.type === DepreciationTypeEnum.BORROWING_EXPENSES;
|
|
3381
|
-
}
|
|
3382
|
-
isAsset() {
|
|
3383
|
-
return this.type === DepreciationTypeEnum.PLANT_EQUIPMENT;
|
|
3384
|
-
}
|
|
3385
|
-
// Calculation checking
|
|
3386
|
-
isSBPCalculation() {
|
|
3387
|
-
return this.calculation === DepreciationCalculationEnum.SBP;
|
|
3388
|
-
}
|
|
3389
|
-
isPrimeCost() {
|
|
3390
|
-
return this.calculation === DepreciationCalculationEnum.PRIME_COST;
|
|
3391
|
-
}
|
|
3392
|
-
isDiminishing() {
|
|
3393
|
-
return this.calculation === DepreciationCalculationEnum.DIMINISHING;
|
|
3535
|
+
this.isManual = true;
|
|
3536
|
+
this.method = VehicleClaimDetailsMethodEnum.KMS;
|
|
3537
|
+
this.financialYear = new FinancialYear().year;
|
|
3394
3538
|
}
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
return this.isAsset() && !this.isSBPCalculation() && !this.isWrittenOff() && !this.isLVP();
|
|
3539
|
+
isLogbookMethod() {
|
|
3540
|
+
return this.method === VehicleClaimDetailsMethodEnum.LOGBOOK;
|
|
3398
3541
|
}
|
|
3399
|
-
|
|
3400
|
-
return this.
|
|
3401
|
-
&& !this.isSBPCalculation()
|
|
3402
|
-
&& this.isDiminishing()
|
|
3403
|
-
&& this.currentYearForecast.closeBalance > Depreciation.WRITTEN_OFF_THRESHOLD
|
|
3404
|
-
&& this.currentYearForecast.closeBalance <= Depreciation.LOW_VALUE_POOL_THRESHOLD;
|
|
3542
|
+
isKmsMethod() {
|
|
3543
|
+
return this.method === VehicleClaimDetailsMethodEnum.KMS;
|
|
3405
3544
|
}
|
|
3406
|
-
|
|
3407
|
-
|
|
3545
|
+
}
|
|
3546
|
+
__decorate([
|
|
3547
|
+
Type(() => User)
|
|
3548
|
+
], VehicleClaimDetails.prototype, "user", void 0);
|
|
3549
|
+
|
|
3550
|
+
class VehicleClaim extends VehicleClaim$1 {
|
|
3551
|
+
constructor() {
|
|
3552
|
+
super(...arguments);
|
|
3553
|
+
this.kilometers = 0;
|
|
3554
|
+
this.workUsage = 0;
|
|
3408
3555
|
}
|
|
3409
|
-
|
|
3410
|
-
return this.
|
|
3556
|
+
isWorkTank() {
|
|
3557
|
+
return !this.business;
|
|
3411
3558
|
}
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
if (!this.writeOffManualDate && !this.writeOffDate) {
|
|
3415
|
-
return null;
|
|
3416
|
-
}
|
|
3417
|
-
return (_a = new FinancialYear(this.writeOffManualDate || this.writeOffDate)) === null || _a === void 0 ? void 0 : _a.year;
|
|
3559
|
+
isSoleTank() {
|
|
3560
|
+
return !!this.business;
|
|
3418
3561
|
}
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
*/
|
|
3422
|
-
isVehicleDepreciation() {
|
|
3423
|
-
var _a;
|
|
3424
|
-
return ((_a = this.chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id) === ChartAccountsHeadingVehicleListEnum.DEPRECIATION_VEHICLES;
|
|
3562
|
+
get tankType() {
|
|
3563
|
+
return this.isSoleTank() ? TankTypeEnum.SOLE : TankTypeEnum.WORK;
|
|
3425
3564
|
}
|
|
3426
3565
|
/**
|
|
3427
|
-
*
|
|
3566
|
+
* Claim amount for KMs method. Exists only for KMs method.
|
|
3428
3567
|
*/
|
|
3429
|
-
|
|
3430
|
-
return this.
|
|
3568
|
+
getKMSClaimAmount(vehicleClaimRate) {
|
|
3569
|
+
return +(this.kilometers * vehicleClaimRate).toFixed(2);
|
|
3431
3570
|
}
|
|
3432
3571
|
/**
|
|
3433
|
-
*
|
|
3572
|
+
* Get logbook claim amount. Exists only for logbook method.
|
|
3573
|
+
* ClaimAmount = WorkUsage * transaction/depreciation amount
|
|
3434
3574
|
*/
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
amount: 0,
|
|
3443
|
-
claimPercent: 0
|
|
3444
|
-
});
|
|
3445
|
-
}
|
|
3446
|
-
getForecastByYear(year) {
|
|
3447
|
-
return this.forecasts.find((forecast) => {
|
|
3448
|
-
return forecast.financialYear === year;
|
|
3449
|
-
});
|
|
3450
|
-
}
|
|
3451
|
-
getClaimAmountByYear(year) {
|
|
3452
|
-
var _a;
|
|
3453
|
-
return ((_a = this.getForecastByYear(year)) === null || _a === void 0 ? void 0 : _a.claimAmount) || 0;
|
|
3454
|
-
}
|
|
3455
|
-
getCloseBalanceByYear(year) {
|
|
3456
|
-
var _a;
|
|
3457
|
-
return ((_a = this.getForecastByYear(year)) === null || _a === void 0 ? void 0 : _a.closeBalance) || 0;
|
|
3458
|
-
}
|
|
3459
|
-
isBuildingAtCost() {
|
|
3460
|
-
return this.chartAccounts.id === ChartAccountsListEnum.BUILDING_AT_COST;
|
|
3575
|
+
getLogbookClaimAmount(transactions) {
|
|
3576
|
+
const transactionsAmount = transactions
|
|
3577
|
+
.getByVehicleClaim(this)
|
|
3578
|
+
.getLogbookTransactions()
|
|
3579
|
+
.sumBy('amount');
|
|
3580
|
+
// Math.abs because amount will be negative (because we sum expenses), but we don't want negative percent value
|
|
3581
|
+
return Math.abs(transactionsAmount) * this.workUsage / 100;
|
|
3461
3582
|
}
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
*/
|
|
3465
|
-
toTransaction(params = {}) {
|
|
3466
|
-
return plainToClass(Transaction, Object.assign(params, this, { amount: -this.claimAmount, claimAmount: -this.amount * (this.claimPercent / 100) }));
|
|
3583
|
+
getAverageWeeklyKMS() {
|
|
3584
|
+
return this.kilometers / FinancialYear.weeksInYear;
|
|
3467
3585
|
}
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
var _a;
|
|
3473
|
-
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.claimAmount) || 0;
|
|
3586
|
+
static getKMSChartAccountsIdByTankType(tankType) {
|
|
3587
|
+
return tankType === TankTypeEnum.WORK
|
|
3588
|
+
? ChartAccountsListEnum.KLMS_TRAVELLED_FOR_WORK
|
|
3589
|
+
: ChartAccountsListEnum.KLMS_TRAVELLED;
|
|
3474
3590
|
}
|
|
3475
3591
|
}
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
__decorate([
|
|
3485
|
-
Type(() => Date)
|
|
3486
|
-
], Depreciation.prototype, "lowValuePoolDate", void 0);
|
|
3487
|
-
__decorate([
|
|
3488
|
-
Type(() => Date)
|
|
3489
|
-
], Depreciation.prototype, "writeOffManualDate", void 0);
|
|
3490
|
-
__decorate([
|
|
3491
|
-
Type(() => Date)
|
|
3492
|
-
], Depreciation.prototype, "writeOffDate", void 0);
|
|
3493
|
-
__decorate([
|
|
3494
|
-
Type(() => DepreciationCapitalProject)
|
|
3495
|
-
], Depreciation.prototype, "depreciationCapitalProject", void 0);
|
|
3496
|
-
__decorate([
|
|
3497
|
-
Type(() => DepreciationForecast),
|
|
3498
|
-
Transform(({ value, obj }) => {
|
|
3499
|
-
// value = array of DepreciationForecast
|
|
3500
|
-
// obj = plain (whole Depreciation object)
|
|
3501
|
-
// Set isLVP flag for each DepreciationForecast
|
|
3502
|
-
// @TODO refactor
|
|
3503
|
-
value.forEach((forecast) => {
|
|
3504
|
-
forecast.isLVP =
|
|
3505
|
-
forecast.closeBalance < 1000 &&
|
|
3506
|
-
obj.calculation === DepreciationCalculationEnum.DIMINISHING &&
|
|
3507
|
-
obj.type === DepreciationTypeEnum.PLANT_EQUIPMENT &&
|
|
3508
|
-
!(obj.amount > Depreciation.WRITTEN_OFF_THRESHOLD && obj.amount < Depreciation.LOW_VALUE_POOL_THRESHOLD) &&
|
|
3509
|
-
!(obj.writeOffDate && new FinancialYear(new Date(obj.writeOffDate)).year === obj.financialYear);
|
|
3510
|
-
});
|
|
3511
|
-
return value;
|
|
3512
|
-
})
|
|
3513
|
-
], Depreciation.prototype, "forecasts", void 0);
|
|
3592
|
+
/**
|
|
3593
|
+
* limit for kms claim method
|
|
3594
|
+
*/
|
|
3595
|
+
VehicleClaim.totalKmsLimit = 5000;
|
|
3596
|
+
/**
|
|
3597
|
+
* limit for work usage claim method
|
|
3598
|
+
*/
|
|
3599
|
+
VehicleClaim.totalWorkUsagePercent = 100;
|
|
3514
3600
|
__decorate([
|
|
3515
|
-
Type(() =>
|
|
3516
|
-
],
|
|
3601
|
+
Type(() => VehicleClaimDetails)
|
|
3602
|
+
], VehicleClaim.prototype, "details", void 0);
|
|
3517
3603
|
__decorate([
|
|
3518
|
-
Type(() =>
|
|
3519
|
-
],
|
|
3604
|
+
Type(() => SoleBusiness)
|
|
3605
|
+
], VehicleClaim.prototype, "business", void 0);
|
|
3520
3606
|
|
|
3521
3607
|
class SoleBusinessActivity$1 extends AbstractModel {
|
|
3522
3608
|
}
|
|
@@ -3582,6 +3668,15 @@ class SoleDepreciationMethod extends SoleDepreciationMethod$1 {
|
|
|
3582
3668
|
}
|
|
3583
3669
|
}
|
|
3584
3670
|
|
|
3671
|
+
class SoleDetails$1 extends AbstractModel {
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
class SoleDetails extends SoleDetails$1 {
|
|
3675
|
+
}
|
|
3676
|
+
__decorate([
|
|
3677
|
+
Type(() => User)
|
|
3678
|
+
], SoleDetails.prototype, "user", void 0);
|
|
3679
|
+
|
|
3585
3680
|
class User extends User$1 {
|
|
3586
3681
|
get fullName() {
|
|
3587
3682
|
return `${this.firstName} ${this.lastName}`;
|
|
@@ -4606,9 +4701,9 @@ BankConnectionService.userEventTypes = [
|
|
|
4606
4701
|
UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
|
|
4607
4702
|
UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
|
|
4608
4703
|
];
|
|
4609
|
-
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
4610
|
-
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
4611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
4704
|
+
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4705
|
+
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
|
|
4706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
4612
4707
|
type: Injectable,
|
|
4613
4708
|
args: [{
|
|
4614
4709
|
providedIn: 'root'
|
|
@@ -4702,9 +4797,9 @@ class BasiqService extends RestService {
|
|
|
4702
4797
|
}
|
|
4703
4798
|
}
|
|
4704
4799
|
BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
|
|
4705
|
-
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
4706
|
-
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
4707
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
4800
|
+
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 });
|
|
4801
|
+
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, providedIn: 'root' });
|
|
4802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqService, decorators: [{
|
|
4708
4803
|
type: Injectable,
|
|
4709
4804
|
args: [{
|
|
4710
4805
|
providedIn: 'root'
|
|
@@ -4751,9 +4846,9 @@ class BasiqTokenService {
|
|
|
4751
4846
|
return this.cacheSubject.asObservable();
|
|
4752
4847
|
}
|
|
4753
4848
|
}
|
|
4754
|
-
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
4755
|
-
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
4756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
4849
|
+
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 });
|
|
4850
|
+
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
|
|
4851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenService, decorators: [{
|
|
4757
4852
|
type: Injectable,
|
|
4758
4853
|
args: [{
|
|
4759
4854
|
providedIn: 'root'
|
|
@@ -4787,9 +4882,9 @@ class BasiqTokenInterceptor {
|
|
|
4787
4882
|
});
|
|
4788
4883
|
}
|
|
4789
4884
|
}
|
|
4790
|
-
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
4791
|
-
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
4792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
4885
|
+
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4886
|
+
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor });
|
|
4887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
|
|
4793
4888
|
type: Injectable
|
|
4794
4889
|
}], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
|
|
4795
4890
|
|
|
@@ -4825,9 +4920,9 @@ class SseService {
|
|
|
4825
4920
|
}));
|
|
4826
4921
|
}
|
|
4827
4922
|
}
|
|
4828
|
-
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
4829
|
-
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
4830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
4923
|
+
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 });
|
|
4924
|
+
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, providedIn: 'root' });
|
|
4925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SseService, decorators: [{
|
|
4831
4926
|
type: Injectable,
|
|
4832
4927
|
args: [{
|
|
4833
4928
|
providedIn: 'root'
|
|
@@ -4982,9 +5077,9 @@ class UserService {
|
|
|
4982
5077
|
this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.resetCache());
|
|
4983
5078
|
}
|
|
4984
5079
|
}
|
|
4985
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
4986
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
4987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
5080
|
+
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 });
|
|
5081
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
5082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserService, decorators: [{
|
|
4988
5083
|
type: Injectable,
|
|
4989
5084
|
args: [{
|
|
4990
5085
|
providedIn: 'root'
|
|
@@ -5014,17 +5109,17 @@ class BasiqClientIdInterceptor {
|
|
|
5014
5109
|
});
|
|
5015
5110
|
}
|
|
5016
5111
|
}
|
|
5017
|
-
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
5018
|
-
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
5019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
5112
|
+
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5113
|
+
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor });
|
|
5114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
|
|
5020
5115
|
type: Injectable
|
|
5021
5116
|
}], ctorParameters: function () { return [{ type: UserService }]; } });
|
|
5022
5117
|
|
|
5023
5118
|
class InterceptorsModule {
|
|
5024
5119
|
}
|
|
5025
|
-
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
5026
|
-
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
5027
|
-
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
5120
|
+
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5121
|
+
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule });
|
|
5122
|
+
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, providers: [
|
|
5028
5123
|
{
|
|
5029
5124
|
provide: HTTP_INTERCEPTORS,
|
|
5030
5125
|
useClass: CorelogicInterceptor,
|
|
@@ -5062,7 +5157,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
5062
5157
|
multi: true
|
|
5063
5158
|
}
|
|
5064
5159
|
] });
|
|
5065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
5160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InterceptorsModule, decorators: [{
|
|
5066
5161
|
type: NgModule,
|
|
5067
5162
|
args: [{
|
|
5068
5163
|
providers: [
|
|
@@ -5120,14 +5215,14 @@ class TtCoreModule {
|
|
|
5120
5215
|
};
|
|
5121
5216
|
}
|
|
5122
5217
|
}
|
|
5123
|
-
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
5124
|
-
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
5218
|
+
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5219
|
+
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
5125
5220
|
InterceptorsModule] });
|
|
5126
|
-
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
5221
|
+
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, imports: [[
|
|
5127
5222
|
CommonModule,
|
|
5128
5223
|
InterceptorsModule
|
|
5129
5224
|
]] });
|
|
5130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
5225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
5131
5226
|
type: NgModule,
|
|
5132
5227
|
args: [{
|
|
5133
5228
|
declarations: [],
|
|
@@ -5138,6 +5233,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
5138
5233
|
}]
|
|
5139
5234
|
}] });
|
|
5140
5235
|
|
|
5236
|
+
class Document$1 extends AbstractModel {
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
/**
|
|
5240
|
+
* Enum with document types which used to API url prefix
|
|
5241
|
+
*/
|
|
5242
|
+
var DocumentApiUrlPrefixEnum;
|
|
5243
|
+
(function (DocumentApiUrlPrefixEnum) {
|
|
5244
|
+
DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
|
|
5245
|
+
DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
|
|
5246
|
+
})(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
|
|
5247
|
+
|
|
5248
|
+
class Document extends Document$1 {
|
|
5249
|
+
constructor() {
|
|
5250
|
+
super(...arguments);
|
|
5251
|
+
this.type = AssetTypeEnum.DOCUMENTS;
|
|
5252
|
+
this.entityType = AssetEntityTypeEnum.FOLDERS;
|
|
5253
|
+
}
|
|
5254
|
+
/**
|
|
5255
|
+
* Get folder as document parent entity
|
|
5256
|
+
*/
|
|
5257
|
+
getEntity() {
|
|
5258
|
+
return this.folder;
|
|
5259
|
+
}
|
|
5260
|
+
/**
|
|
5261
|
+
* Get API url prefix
|
|
5262
|
+
*/
|
|
5263
|
+
getApiUrlPrefix() {
|
|
5264
|
+
return DocumentApiUrlPrefixEnum.FOLDERS;
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
class DocumentFolder$1 extends AbstractModel {
|
|
5269
|
+
}
|
|
5270
|
+
|
|
5271
|
+
class DocumentFolder extends DocumentFolder$1 {
|
|
5272
|
+
}
|
|
5273
|
+
__decorate([
|
|
5274
|
+
Type(() => Document)
|
|
5275
|
+
], DocumentFolder.prototype, "documents", void 0);
|
|
5276
|
+
|
|
5141
5277
|
class VehicleClaimCollection extends Collection {
|
|
5142
5278
|
/**
|
|
5143
5279
|
* Get remaining kilometers limit. Total limit ({@link VehicleClaim.totalKmsLimit}) - claimed kilometers from other vehicle claims
|
|
@@ -6615,6 +6751,13 @@ class ChartAccountsCategoryECollection {
|
|
|
6615
6751
|
}
|
|
6616
6752
|
}
|
|
6617
6753
|
|
|
6754
|
+
var DocumentTypeEnum;
|
|
6755
|
+
(function (DocumentTypeEnum) {
|
|
6756
|
+
DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
|
|
6757
|
+
})(DocumentTypeEnum || (DocumentTypeEnum = {}));
|
|
6758
|
+
|
|
6759
|
+
// @TODO Artem TT-2308 move everything
|
|
6760
|
+
|
|
6618
6761
|
var ChartAccountsEtpEnum;
|
|
6619
6762
|
(function (ChartAccountsEtpEnum) {
|
|
6620
6763
|
ChartAccountsEtpEnum[ChartAccountsEtpEnum["ETP_R"] = 549] = "ETP_R";
|
|
@@ -7672,7 +7815,7 @@ class Dictionary {
|
|
|
7672
7815
|
this.items[key] = value;
|
|
7673
7816
|
}
|
|
7674
7817
|
get(key) {
|
|
7675
|
-
return this.items[key] ? this.items[key] : null;
|
|
7818
|
+
return this.items[key] !== undefined ? this.items[key] : null;
|
|
7676
7819
|
}
|
|
7677
7820
|
groupItems(items, path) {
|
|
7678
7821
|
items.forEach((item) => {
|
|
@@ -7770,38 +7913,6 @@ class DepreciationReceipt extends DepreciationReceipt$1 {
|
|
|
7770
7913
|
}
|
|
7771
7914
|
}
|
|
7772
7915
|
|
|
7773
|
-
class Document$1 extends AbstractModel {
|
|
7774
|
-
}
|
|
7775
|
-
|
|
7776
|
-
/**
|
|
7777
|
-
* Enum with document types which used to API url prefix
|
|
7778
|
-
*/
|
|
7779
|
-
var DocumentApiUrlPrefixEnum;
|
|
7780
|
-
(function (DocumentApiUrlPrefixEnum) {
|
|
7781
|
-
DocumentApiUrlPrefixEnum["FOLDERS"] = "folders";
|
|
7782
|
-
DocumentApiUrlPrefixEnum["PROPERTIES"] = "properties";
|
|
7783
|
-
})(DocumentApiUrlPrefixEnum || (DocumentApiUrlPrefixEnum = {}));
|
|
7784
|
-
|
|
7785
|
-
class Document extends Document$1 {
|
|
7786
|
-
constructor() {
|
|
7787
|
-
super(...arguments);
|
|
7788
|
-
this.type = AssetTypeEnum.DOCUMENTS;
|
|
7789
|
-
this.entityType = AssetEntityTypeEnum.FOLDERS;
|
|
7790
|
-
}
|
|
7791
|
-
/**
|
|
7792
|
-
* Get folder as document parent entity
|
|
7793
|
-
*/
|
|
7794
|
-
getEntity() {
|
|
7795
|
-
return this.folder;
|
|
7796
|
-
}
|
|
7797
|
-
/**
|
|
7798
|
-
* Get API url prefix
|
|
7799
|
-
*/
|
|
7800
|
-
getApiUrlPrefix() {
|
|
7801
|
-
return DocumentApiUrlPrefixEnum.FOLDERS;
|
|
7802
|
-
}
|
|
7803
|
-
}
|
|
7804
|
-
|
|
7805
7916
|
const DOCUMENT_FILE_TYPES = {
|
|
7806
7917
|
image: [
|
|
7807
7918
|
'image/png',
|
|
@@ -7825,15 +7936,6 @@ const DOCUMENT_FILE_TYPES = {
|
|
|
7825
7936
|
]
|
|
7826
7937
|
};
|
|
7827
7938
|
|
|
7828
|
-
class DocumentFolder$1 extends AbstractModel {
|
|
7829
|
-
}
|
|
7830
|
-
|
|
7831
|
-
class DocumentFolder extends DocumentFolder$1 {
|
|
7832
|
-
}
|
|
7833
|
-
__decorate([
|
|
7834
|
-
Type(() => Document)
|
|
7835
|
-
], DocumentFolder.prototype, "documents", void 0);
|
|
7836
|
-
|
|
7837
7939
|
class EmployeeInvite$1 extends AbstractModel {
|
|
7838
7940
|
}
|
|
7839
7941
|
|
|
@@ -9277,9 +9379,9 @@ class SoleBusinessService extends RestService {
|
|
|
9277
9379
|
}));
|
|
9278
9380
|
}
|
|
9279
9381
|
}
|
|
9280
|
-
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9281
|
-
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9382
|
+
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9383
|
+
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
|
|
9384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessService, decorators: [{
|
|
9283
9385
|
type: Injectable,
|
|
9284
9386
|
args: [{
|
|
9285
9387
|
providedIn: 'root'
|
|
@@ -9294,9 +9396,9 @@ class SoleBusinessActivityService extends RestService {
|
|
|
9294
9396
|
this.isHydra = true;
|
|
9295
9397
|
}
|
|
9296
9398
|
}
|
|
9297
|
-
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9298
|
-
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9399
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9400
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
9401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
9300
9402
|
type: Injectable,
|
|
9301
9403
|
args: [{
|
|
9302
9404
|
providedIn: 'root'
|
|
@@ -9311,9 +9413,9 @@ class SoleBusinessLossService extends RestService {
|
|
|
9311
9413
|
this.isHydra = true;
|
|
9312
9414
|
}
|
|
9313
9415
|
}
|
|
9314
|
-
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9315
|
-
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9416
|
+
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9417
|
+
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
|
|
9418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
9317
9419
|
type: Injectable,
|
|
9318
9420
|
args: [{
|
|
9319
9421
|
providedIn: 'root'
|
|
@@ -9328,9 +9430,9 @@ class SoleContactService extends RestService {
|
|
|
9328
9430
|
this.isHydra = true;
|
|
9329
9431
|
}
|
|
9330
9432
|
}
|
|
9331
|
-
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9332
|
-
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9433
|
+
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9434
|
+
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, providedIn: 'root' });
|
|
9435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleContactService, decorators: [{
|
|
9334
9436
|
type: Injectable,
|
|
9335
9437
|
args: [{
|
|
9336
9438
|
providedIn: 'root'
|
|
@@ -9386,9 +9488,9 @@ class SoleDepreciationMethodService {
|
|
|
9386
9488
|
});
|
|
9387
9489
|
}
|
|
9388
9490
|
}
|
|
9389
|
-
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9390
|
-
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9491
|
+
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 });
|
|
9492
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
9493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
9392
9494
|
type: Injectable,
|
|
9393
9495
|
args: [{
|
|
9394
9496
|
providedIn: 'root'
|
|
@@ -9441,9 +9543,9 @@ class SoleDetailsService {
|
|
|
9441
9543
|
}));
|
|
9442
9544
|
}
|
|
9443
9545
|
}
|
|
9444
|
-
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9445
|
-
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9546
|
+
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 });
|
|
9547
|
+
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
|
|
9548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleDetailsService, decorators: [{
|
|
9447
9549
|
type: Injectable,
|
|
9448
9550
|
args: [{
|
|
9449
9551
|
providedIn: 'root'
|
|
@@ -9460,10 +9562,21 @@ class SoleInvoiceService extends RestService {
|
|
|
9460
9562
|
this.url = 'sole-invoices';
|
|
9461
9563
|
this.isHydra = true;
|
|
9462
9564
|
}
|
|
9565
|
+
updateStatus(invoice, status) {
|
|
9566
|
+
// use id only to avoid unexpected changes
|
|
9567
|
+
return this.update(plainToClass(SoleInvoice, merge({}, { id: invoice.id }, { status })));
|
|
9568
|
+
}
|
|
9569
|
+
publish(invoice, document) {
|
|
9570
|
+
// use id only to avoid unexpected changes
|
|
9571
|
+
return this.update(merge({}, invoice, { document, status: SoleInvoiceStatusesEnum.PENDING }));
|
|
9572
|
+
}
|
|
9573
|
+
sendEmail(invoice) {
|
|
9574
|
+
return this.http.post(`${this.environment.apiV2}/${this.url}/${invoice.id}/send`, {});
|
|
9575
|
+
}
|
|
9463
9576
|
}
|
|
9464
|
-
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9465
|
-
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9577
|
+
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9578
|
+
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
|
|
9579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
9467
9580
|
type: Injectable,
|
|
9468
9581
|
args: [{
|
|
9469
9582
|
providedIn: 'root'
|
|
@@ -9478,9 +9591,9 @@ class SoleInvoiceTemplateService extends RestService {
|
|
|
9478
9591
|
this.isHydra = true;
|
|
9479
9592
|
}
|
|
9480
9593
|
}
|
|
9481
|
-
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9482
|
-
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9594
|
+
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9595
|
+
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
|
|
9596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
|
|
9484
9597
|
type: Injectable,
|
|
9485
9598
|
args: [{
|
|
9486
9599
|
providedIn: 'root'
|
|
@@ -9497,9 +9610,9 @@ class VehicleService extends RestService {
|
|
|
9497
9610
|
this.modelClass = Vehicle;
|
|
9498
9611
|
}
|
|
9499
9612
|
}
|
|
9500
|
-
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9501
|
-
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9613
|
+
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9614
|
+
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, providedIn: 'root' });
|
|
9615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleService, decorators: [{
|
|
9503
9616
|
type: Injectable,
|
|
9504
9617
|
args: [{
|
|
9505
9618
|
providedIn: 'root'
|
|
@@ -9571,9 +9684,9 @@ class VehicleClaimService extends RestService {
|
|
|
9571
9684
|
combineLatest(batch$).subscribe();
|
|
9572
9685
|
}
|
|
9573
9686
|
}
|
|
9574
|
-
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9575
|
-
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9687
|
+
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9688
|
+
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
|
|
9689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimService, decorators: [{
|
|
9577
9690
|
type: Injectable,
|
|
9578
9691
|
args: [{
|
|
9579
9692
|
providedIn: 'root'
|
|
@@ -9650,9 +9763,9 @@ class VehicleClaimDetailsService {
|
|
|
9650
9763
|
this.update(vehicleClaimDetails).subscribe();
|
|
9651
9764
|
}
|
|
9652
9765
|
}
|
|
9653
|
-
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9654
|
-
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9766
|
+
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 });
|
|
9767
|
+
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
|
|
9768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
|
|
9656
9769
|
type: Injectable,
|
|
9657
9770
|
args: [{
|
|
9658
9771
|
providedIn: 'root'
|
|
@@ -9672,9 +9785,9 @@ class VehicleLogbookService extends RestService {
|
|
|
9672
9785
|
this.modelClass = VehicleLogbook;
|
|
9673
9786
|
}
|
|
9674
9787
|
}
|
|
9675
|
-
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9676
|
-
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9788
|
+
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9789
|
+
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
|
|
9790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: VehicleLogbookService, decorators: [{
|
|
9678
9791
|
type: Injectable,
|
|
9679
9792
|
args: [{
|
|
9680
9793
|
providedIn: 'root'
|
|
@@ -9707,9 +9820,9 @@ class OccupationService {
|
|
|
9707
9820
|
return this.occupationsSubject.asObservable();
|
|
9708
9821
|
}
|
|
9709
9822
|
}
|
|
9710
|
-
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9711
|
-
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9823
|
+
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 });
|
|
9824
|
+
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, providedIn: 'root' });
|
|
9825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OccupationService, decorators: [{
|
|
9713
9826
|
type: Injectable,
|
|
9714
9827
|
args: [{
|
|
9715
9828
|
providedIn: 'root'
|
|
@@ -9753,9 +9866,9 @@ class UserEventSettingService extends RestService {
|
|
|
9753
9866
|
}));
|
|
9754
9867
|
}
|
|
9755
9868
|
}
|
|
9756
|
-
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9757
|
-
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9869
|
+
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9870
|
+
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
|
|
9871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventSettingService, decorators: [{
|
|
9759
9872
|
type: Injectable,
|
|
9760
9873
|
args: [{
|
|
9761
9874
|
providedIn: 'root'
|
|
@@ -9770,9 +9883,9 @@ class UserEventTypeService extends RestService {
|
|
|
9770
9883
|
this.isHydra = true;
|
|
9771
9884
|
}
|
|
9772
9885
|
}
|
|
9773
|
-
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9774
|
-
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9886
|
+
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9887
|
+
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
|
|
9888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UserEventTypeService, decorators: [{
|
|
9776
9889
|
type: Injectable,
|
|
9777
9890
|
args: [{
|
|
9778
9891
|
providedIn: 'root'
|
|
@@ -9789,9 +9902,93 @@ class UsersInviteService extends RestService {
|
|
|
9789
9902
|
this.url = 'users/invite';
|
|
9790
9903
|
}
|
|
9791
9904
|
}
|
|
9792
|
-
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9793
|
-
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
9905
|
+
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9906
|
+
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
|
|
9907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UsersInviteService, decorators: [{
|
|
9908
|
+
type: Injectable,
|
|
9909
|
+
args: [{
|
|
9910
|
+
providedIn: 'root'
|
|
9911
|
+
}]
|
|
9912
|
+
}] });
|
|
9913
|
+
|
|
9914
|
+
class DocumentService extends RestService {
|
|
9915
|
+
constructor() {
|
|
9916
|
+
super(...arguments);
|
|
9917
|
+
this.url = 'documents';
|
|
9918
|
+
this.modelClass = Document;
|
|
9919
|
+
}
|
|
9920
|
+
}
|
|
9921
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9922
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
9923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentService, decorators: [{
|
|
9924
|
+
type: Injectable,
|
|
9925
|
+
args: [{
|
|
9926
|
+
providedIn: 'root'
|
|
9927
|
+
}]
|
|
9928
|
+
}] });
|
|
9929
|
+
|
|
9930
|
+
/**
|
|
9931
|
+
* Service to handle document-folders and depending documents logic
|
|
9932
|
+
*/
|
|
9933
|
+
class DocumentFolderService extends RestService {
|
|
9934
|
+
constructor() {
|
|
9935
|
+
super(...arguments);
|
|
9936
|
+
this.url = 'folders';
|
|
9937
|
+
this.modelClass = DocumentFolder;
|
|
9938
|
+
}
|
|
9939
|
+
/**
|
|
9940
|
+
* Add new document to the folder
|
|
9941
|
+
* @param file to be uploaded to the folder
|
|
9942
|
+
* @param folder for document
|
|
9943
|
+
*/
|
|
9944
|
+
addDocument(file, folder) {
|
|
9945
|
+
// create formData object with provided file
|
|
9946
|
+
const formDataDocument = new FormData();
|
|
9947
|
+
formDataDocument.append('file', file);
|
|
9948
|
+
return this.http.post(`${this.environment.apiV2}/folders/${folder.id}/documents`, formDataDocument).pipe(map((response) => {
|
|
9949
|
+
const updatedFolder = Object.assign(plainToClass(DocumentFolder, {}), folder);
|
|
9950
|
+
updatedFolder.documents.push(plainToClass(Document, response));
|
|
9951
|
+
replace(this.cache, plainToClass(DocumentFolder, updatedFolder));
|
|
9952
|
+
this.cacheSubject.next(this.cache);
|
|
9953
|
+
}));
|
|
9954
|
+
}
|
|
9955
|
+
/**
|
|
9956
|
+
* Edit folder document by moving it from one folder to another
|
|
9957
|
+
* @param editedDocument
|
|
9958
|
+
* @param selectedFolder to move the document to
|
|
9959
|
+
* @param oldFolderId: id of old folder from which need to remove the document
|
|
9960
|
+
*/
|
|
9961
|
+
updateDocument(editedDocument, selectedFolder, oldFolderId) {
|
|
9962
|
+
return this.http.put(`${this.environment.apiV2}/folders/${selectedFolder.id}/documents/${editedDocument.id}`, editedDocument).pipe(map((response) => {
|
|
9963
|
+
const oldFolder = this.cache.find((folder) => folder.id === oldFolderId);
|
|
9964
|
+
// Remove document from old folder
|
|
9965
|
+
oldFolder.documents = oldFolder.documents.filter((deletedDocument) => deletedDocument.id !== response.id);
|
|
9966
|
+
// update old folder and replace it in cache
|
|
9967
|
+
response.folder = plainToClass(DocumentFolder, { id: selectedFolder.id, name: selectedFolder.name });
|
|
9968
|
+
replace(this.cache, plainToClass(DocumentFolder, oldFolder));
|
|
9969
|
+
// update new document folder and replace it in cache
|
|
9970
|
+
selectedFolder.documents.push(plainToClass(Document, response));
|
|
9971
|
+
replace(this.cache, plainToClass(DocumentFolder, selectedFolder));
|
|
9972
|
+
this.cacheSubject.next(this.cache);
|
|
9973
|
+
}));
|
|
9974
|
+
}
|
|
9975
|
+
/**
|
|
9976
|
+
* Delete document from folder
|
|
9977
|
+
* @param document to remove
|
|
9978
|
+
* @param folder from which document should be removed
|
|
9979
|
+
*/
|
|
9980
|
+
deleteDocument(document, folder) {
|
|
9981
|
+
return this.http.delete(`${this.environment.apiV2}/folders/${folder.id}/documents/${document.id}`).pipe(map(() => {
|
|
9982
|
+
folder.documents = folder.documents
|
|
9983
|
+
.filter((deletedDocument) => deletedDocument.id !== document.id);
|
|
9984
|
+
replace(this.cache, plainToClass(DocumentFolder, folder));
|
|
9985
|
+
this.cacheSubject.next(this.cache);
|
|
9986
|
+
}));
|
|
9987
|
+
}
|
|
9988
|
+
}
|
|
9989
|
+
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9990
|
+
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
9991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
9795
9992
|
type: Injectable,
|
|
9796
9993
|
args: [{
|
|
9797
9994
|
providedIn: 'root'
|
|
@@ -9817,9 +10014,9 @@ class RewardfulService {
|
|
|
9817
10014
|
});
|
|
9818
10015
|
}
|
|
9819
10016
|
}
|
|
9820
|
-
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9821
|
-
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10017
|
+
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10018
|
+
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, providedIn: 'root' });
|
|
10019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RewardfulService, decorators: [{
|
|
9823
10020
|
type: Injectable,
|
|
9824
10021
|
args: [{
|
|
9825
10022
|
providedIn: 'root'
|
|
@@ -9882,9 +10079,9 @@ class LogbookBestPeriodService {
|
|
|
9882
10079
|
});
|
|
9883
10080
|
}
|
|
9884
10081
|
}
|
|
9885
|
-
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9886
|
-
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10082
|
+
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 });
|
|
10083
|
+
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
|
|
10084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
|
|
9888
10085
|
type: Injectable,
|
|
9889
10086
|
args: [{
|
|
9890
10087
|
providedIn: 'root'
|
|
@@ -9990,9 +10187,9 @@ class ClientIncomeTypesService {
|
|
|
9990
10187
|
}));
|
|
9991
10188
|
}
|
|
9992
10189
|
}
|
|
9993
|
-
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
9994
|
-
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
9995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10190
|
+
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 });
|
|
10191
|
+
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
|
|
10192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
|
|
9996
10193
|
type: Injectable,
|
|
9997
10194
|
args: [{
|
|
9998
10195
|
providedIn: 'root'
|
|
@@ -10122,9 +10319,9 @@ class PropertyService extends RestService {
|
|
|
10122
10319
|
return this.get().pipe(map((properties) => properties.filter((property) => property.isActive)));
|
|
10123
10320
|
}
|
|
10124
10321
|
}
|
|
10125
|
-
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10126
|
-
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10322
|
+
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10323
|
+
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
10324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyService, decorators: [{
|
|
10128
10325
|
type: Injectable,
|
|
10129
10326
|
args: [{
|
|
10130
10327
|
providedIn: 'root'
|
|
@@ -10218,13 +10415,14 @@ class IncomeSourceService extends RestService {
|
|
|
10218
10415
|
*/
|
|
10219
10416
|
listenSoleBusinessCreated() {
|
|
10220
10417
|
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
|
|
10418
|
+
// @TODO Alex/Vik (TT-1777): we clear cache a lot, a better and easier way required, add todo and task to refactor
|
|
10221
10419
|
this.resetCache();
|
|
10222
10420
|
});
|
|
10223
10421
|
}
|
|
10224
10422
|
}
|
|
10225
|
-
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10226
|
-
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10423
|
+
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10424
|
+
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
|
|
10425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
10228
10426
|
type: Injectable,
|
|
10229
10427
|
args: [{
|
|
10230
10428
|
providedIn: 'root'
|
|
@@ -10323,9 +10521,9 @@ class BankAccountService extends RestService {
|
|
|
10323
10521
|
});
|
|
10324
10522
|
}
|
|
10325
10523
|
}
|
|
10326
|
-
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10327
|
-
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10524
|
+
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10525
|
+
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, providedIn: 'root' });
|
|
10526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountService, decorators: [{
|
|
10329
10527
|
type: Injectable,
|
|
10330
10528
|
args: [{
|
|
10331
10529
|
providedIn: 'root'
|
|
@@ -10399,9 +10597,9 @@ class TransactionAllocationService extends RestService {
|
|
|
10399
10597
|
});
|
|
10400
10598
|
}
|
|
10401
10599
|
}
|
|
10402
|
-
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10403
|
-
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10600
|
+
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10601
|
+
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
|
|
10602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
10405
10603
|
type: Injectable,
|
|
10406
10604
|
args: [{
|
|
10407
10605
|
providedIn: 'root'
|
|
@@ -10477,9 +10675,9 @@ class ReceiptService {
|
|
|
10477
10675
|
return plainToClass(this.modelClass, data);
|
|
10478
10676
|
}
|
|
10479
10677
|
}
|
|
10480
|
-
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10481
|
-
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10482
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10678
|
+
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 });
|
|
10679
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
10680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ReceiptService, decorators: [{
|
|
10483
10681
|
type: Injectable,
|
|
10484
10682
|
args: [{
|
|
10485
10683
|
providedIn: 'root'
|
|
@@ -10508,9 +10706,9 @@ class TransactionReceiptService extends ReceiptService {
|
|
|
10508
10706
|
this.listenEvents();
|
|
10509
10707
|
}
|
|
10510
10708
|
}
|
|
10511
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10512
|
-
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
10709
|
+
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 });
|
|
10710
|
+
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
10711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
10514
10712
|
type: Injectable,
|
|
10515
10713
|
args: [{
|
|
10516
10714
|
providedIn: 'root'
|
|
@@ -10838,9 +11036,9 @@ class TransactionService extends RestService {
|
|
|
10838
11036
|
this.updateCache();
|
|
10839
11037
|
}
|
|
10840
11038
|
}
|
|
10841
|
-
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10842
|
-
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11039
|
+
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 });
|
|
11040
|
+
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
11041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionService, decorators: [{
|
|
10844
11042
|
type: Injectable,
|
|
10845
11043
|
args: [{
|
|
10846
11044
|
providedIn: 'root'
|
|
@@ -10975,9 +11173,9 @@ class AccountSetupService {
|
|
|
10975
11173
|
}));
|
|
10976
11174
|
}
|
|
10977
11175
|
}
|
|
10978
|
-
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
10979
|
-
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
10980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11176
|
+
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 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11177
|
+
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
|
|
11178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AccountSetupService, decorators: [{
|
|
10981
11179
|
type: Injectable,
|
|
10982
11180
|
args: [{
|
|
10983
11181
|
providedIn: 'root'
|
|
@@ -11004,9 +11202,9 @@ class AddressService {
|
|
|
11004
11202
|
return this.countriesSubject.asObservable();
|
|
11005
11203
|
}
|
|
11006
11204
|
}
|
|
11007
|
-
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11008
|
-
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11205
|
+
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 });
|
|
11206
|
+
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, providedIn: 'root' });
|
|
11207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AddressService, decorators: [{
|
|
11010
11208
|
type: Injectable,
|
|
11011
11209
|
args: [{
|
|
11012
11210
|
providedIn: 'root'
|
|
@@ -11051,9 +11249,9 @@ class AssetsService {
|
|
|
11051
11249
|
return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
|
|
11052
11250
|
}
|
|
11053
11251
|
}
|
|
11054
|
-
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11055
|
-
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11252
|
+
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 });
|
|
11253
|
+
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, providedIn: 'root' });
|
|
11254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AssetsService, decorators: [{
|
|
11057
11255
|
type: Injectable,
|
|
11058
11256
|
args: [{
|
|
11059
11257
|
providedIn: 'root'
|
|
@@ -11080,9 +11278,9 @@ class BankService extends RestService {
|
|
|
11080
11278
|
}));
|
|
11081
11279
|
}
|
|
11082
11280
|
}
|
|
11083
|
-
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11084
|
-
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11281
|
+
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11282
|
+
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, providedIn: 'root' });
|
|
11283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankService, decorators: [{
|
|
11086
11284
|
type: Injectable,
|
|
11087
11285
|
args: [{
|
|
11088
11286
|
providedIn: 'root'
|
|
@@ -11142,9 +11340,9 @@ class BankTransactionCalculationService {
|
|
|
11142
11340
|
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
11143
11341
|
}
|
|
11144
11342
|
}
|
|
11145
|
-
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11146
|
-
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11343
|
+
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11344
|
+
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
|
|
11345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
11148
11346
|
type: Injectable,
|
|
11149
11347
|
args: [{
|
|
11150
11348
|
providedIn: 'root'
|
|
@@ -11173,9 +11371,9 @@ class BankAccountCalculationService {
|
|
|
11173
11371
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
11174
11372
|
}
|
|
11175
11373
|
}
|
|
11176
|
-
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11177
|
-
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11374
|
+
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11375
|
+
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
|
|
11376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
11179
11377
|
type: Injectable,
|
|
11180
11378
|
args: [{
|
|
11181
11379
|
providedIn: 'root'
|
|
@@ -11244,9 +11442,9 @@ class BankTransactionService extends RestService {
|
|
|
11244
11442
|
});
|
|
11245
11443
|
}
|
|
11246
11444
|
}
|
|
11247
|
-
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11248
|
-
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11445
|
+
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11446
|
+
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
|
|
11447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
11250
11448
|
type: Injectable,
|
|
11251
11449
|
args: [{
|
|
11252
11450
|
providedIn: 'root'
|
|
@@ -11306,9 +11504,9 @@ class BorrowingExpenseService {
|
|
|
11306
11504
|
}));
|
|
11307
11505
|
}
|
|
11308
11506
|
}
|
|
11309
|
-
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11310
|
-
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11507
|
+
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 });
|
|
11508
|
+
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
|
|
11509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BorrowingExpenseService, decorators: [{
|
|
11312
11510
|
type: Injectable,
|
|
11313
11511
|
args: [{
|
|
11314
11512
|
providedIn: 'root'
|
|
@@ -11393,9 +11591,9 @@ class ChartAccountsService {
|
|
|
11393
11591
|
}));
|
|
11394
11592
|
}
|
|
11395
11593
|
}
|
|
11396
|
-
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11397
|
-
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11594
|
+
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 });
|
|
11595
|
+
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
|
|
11596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsService, decorators: [{
|
|
11399
11597
|
type: Injectable,
|
|
11400
11598
|
args: [{
|
|
11401
11599
|
providedIn: 'root'
|
|
@@ -11428,9 +11626,9 @@ class ChartAccountsDepreciationService extends RestService {
|
|
|
11428
11626
|
}));
|
|
11429
11627
|
}
|
|
11430
11628
|
}
|
|
11431
|
-
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11432
|
-
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11629
|
+
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11630
|
+
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
11631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
|
11434
11632
|
type: Injectable,
|
|
11435
11633
|
args: [{
|
|
11436
11634
|
providedIn: 'root'
|
|
@@ -11501,9 +11699,9 @@ class ChatService extends RestService {
|
|
|
11501
11699
|
});
|
|
11502
11700
|
}
|
|
11503
11701
|
}
|
|
11504
|
-
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11505
|
-
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11702
|
+
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 });
|
|
11703
|
+
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, providedIn: 'root' });
|
|
11704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChatService, decorators: [{
|
|
11507
11705
|
type: Injectable,
|
|
11508
11706
|
args: [{
|
|
11509
11707
|
providedIn: 'root'
|
|
@@ -11549,9 +11747,9 @@ class MessageService extends RestService {
|
|
|
11549
11747
|
});
|
|
11550
11748
|
}
|
|
11551
11749
|
}
|
|
11552
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11553
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11750
|
+
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 });
|
|
11751
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
11752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
|
|
11555
11753
|
type: Injectable,
|
|
11556
11754
|
args: [{
|
|
11557
11755
|
providedIn: 'root'
|
|
@@ -11657,9 +11855,9 @@ class MessageDocumentService {
|
|
|
11657
11855
|
}));
|
|
11658
11856
|
}
|
|
11659
11857
|
}
|
|
11660
|
-
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11661
|
-
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11858
|
+
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 });
|
|
11859
|
+
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
|
|
11860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
11663
11861
|
type: Injectable,
|
|
11664
11862
|
args: [{
|
|
11665
11863
|
providedIn: 'root'
|
|
@@ -11765,9 +11963,9 @@ class ClientInviteService extends RestService {
|
|
|
11765
11963
|
});
|
|
11766
11964
|
}
|
|
11767
11965
|
}
|
|
11768
|
-
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11769
|
-
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
11966
|
+
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11967
|
+
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
|
|
11968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
11771
11969
|
type: Injectable,
|
|
11772
11970
|
args: [{
|
|
11773
11971
|
providedIn: 'root'
|
|
@@ -11846,9 +12044,9 @@ class ClientMovementService extends RestService {
|
|
|
11846
12044
|
});
|
|
11847
12045
|
}
|
|
11848
12046
|
}
|
|
11849
|
-
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11850
|
-
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12047
|
+
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12048
|
+
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
|
|
12049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
11852
12050
|
type: Injectable,
|
|
11853
12051
|
args: [{
|
|
11854
12052
|
providedIn: 'root'
|
|
@@ -11873,9 +12071,9 @@ class ClientPortfolioReportService {
|
|
|
11873
12071
|
}));
|
|
11874
12072
|
}
|
|
11875
12073
|
}
|
|
11876
|
-
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11877
|
-
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12074
|
+
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 });
|
|
12075
|
+
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
|
|
12076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
|
|
11879
12077
|
type: Injectable,
|
|
11880
12078
|
args: [{
|
|
11881
12079
|
providedIn: 'root'
|
|
@@ -11904,9 +12102,9 @@ class DepreciationReceiptService extends ReceiptService {
|
|
|
11904
12102
|
this.listenEvents();
|
|
11905
12103
|
}
|
|
11906
12104
|
}
|
|
11907
|
-
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
11908
|
-
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
11909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12105
|
+
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 });
|
|
12106
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
12107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
11910
12108
|
type: Injectable,
|
|
11911
12109
|
args: [{
|
|
11912
12110
|
providedIn: 'root'
|
|
@@ -12057,9 +12255,9 @@ class DepreciationService extends RestService {
|
|
|
12057
12255
|
});
|
|
12058
12256
|
}
|
|
12059
12257
|
}
|
|
12060
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12061
|
-
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12258
|
+
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 });
|
|
12259
|
+
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
12260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationService, decorators: [{
|
|
12063
12261
|
type: Injectable,
|
|
12064
12262
|
args: [{
|
|
12065
12263
|
providedIn: 'root'
|
|
@@ -12111,9 +12309,9 @@ class DepreciationCapitalProjectService {
|
|
|
12111
12309
|
}));
|
|
12112
12310
|
}
|
|
12113
12311
|
}
|
|
12114
|
-
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12115
|
-
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12312
|
+
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 });
|
|
12313
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
12314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
12117
12315
|
type: Injectable,
|
|
12118
12316
|
args: [{
|
|
12119
12317
|
providedIn: 'root'
|
|
@@ -12123,74 +12321,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
12123
12321
|
args: ['environment']
|
|
12124
12322
|
}] }]; } });
|
|
12125
12323
|
|
|
12126
|
-
/**
|
|
12127
|
-
* Service to handle document-folders and depending documents logic
|
|
12128
|
-
*/
|
|
12129
|
-
class DocumentFolderService extends RestService {
|
|
12130
|
-
constructor() {
|
|
12131
|
-
super(...arguments);
|
|
12132
|
-
this.url = 'folders';
|
|
12133
|
-
this.modelClass = DocumentFolder;
|
|
12134
|
-
}
|
|
12135
|
-
/**
|
|
12136
|
-
* Add new document to the folder
|
|
12137
|
-
* @param file to be uploaded to the folder
|
|
12138
|
-
* @param folder for document
|
|
12139
|
-
*/
|
|
12140
|
-
addDocument(file, folder) {
|
|
12141
|
-
// create formData object with provided file
|
|
12142
|
-
const formDataDocument = new FormData();
|
|
12143
|
-
formDataDocument.append('file', file);
|
|
12144
|
-
return this.http.post(`${this.environment.apiV2}/folders/${folder.id}/documents`, formDataDocument).pipe(map((response) => {
|
|
12145
|
-
const updatedFolder = Object.assign(plainToClass(DocumentFolder, {}), folder);
|
|
12146
|
-
updatedFolder.documents.push(plainToClass(Document, response));
|
|
12147
|
-
replace(this.cache, plainToClass(DocumentFolder, updatedFolder));
|
|
12148
|
-
this.cacheSubject.next(this.cache);
|
|
12149
|
-
}));
|
|
12150
|
-
}
|
|
12151
|
-
/**
|
|
12152
|
-
* Edit folder document by moving it from one folder to another
|
|
12153
|
-
* @param editedDocument
|
|
12154
|
-
* @param selectedFolder to move the document to
|
|
12155
|
-
* @param oldFolderId: id of old folder from which need to remove the document
|
|
12156
|
-
*/
|
|
12157
|
-
updateDocument(editedDocument, selectedFolder, oldFolderId) {
|
|
12158
|
-
return this.http.put(`${this.environment.apiV2}/folders/${selectedFolder.id}/documents/${editedDocument.id}`, editedDocument).pipe(map((response) => {
|
|
12159
|
-
const oldFolder = this.cache.find((folder) => folder.id === oldFolderId);
|
|
12160
|
-
// Remove document from old folder
|
|
12161
|
-
oldFolder.documents = oldFolder.documents.filter((deletedDocument) => deletedDocument.id !== response.id);
|
|
12162
|
-
// update old folder and replace it in cache
|
|
12163
|
-
response.folder = plainToClass(DocumentFolder, { id: selectedFolder.id, name: selectedFolder.name });
|
|
12164
|
-
replace(this.cache, plainToClass(DocumentFolder, oldFolder));
|
|
12165
|
-
// update new document folder and replace it in cache
|
|
12166
|
-
selectedFolder.documents.push(plainToClass(Document, response));
|
|
12167
|
-
replace(this.cache, plainToClass(DocumentFolder, selectedFolder));
|
|
12168
|
-
this.cacheSubject.next(this.cache);
|
|
12169
|
-
}));
|
|
12170
|
-
}
|
|
12171
|
-
/**
|
|
12172
|
-
* Delete document from folder
|
|
12173
|
-
* @param document to remove
|
|
12174
|
-
* @param folder from which document should be removed
|
|
12175
|
-
*/
|
|
12176
|
-
deleteDocument(document, folder) {
|
|
12177
|
-
return this.http.delete(`${this.environment.apiV2}/folders/${folder.id}/documents/${document.id}`).pipe(map(() => {
|
|
12178
|
-
folder.documents = folder.documents
|
|
12179
|
-
.filter((deletedDocument) => deletedDocument.id !== document.id);
|
|
12180
|
-
replace(this.cache, plainToClass(DocumentFolder, folder));
|
|
12181
|
-
this.cacheSubject.next(this.cache);
|
|
12182
|
-
}));
|
|
12183
|
-
}
|
|
12184
|
-
}
|
|
12185
|
-
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12186
|
-
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
12187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
12188
|
-
type: Injectable,
|
|
12189
|
-
args: [{
|
|
12190
|
-
providedIn: 'root'
|
|
12191
|
-
}]
|
|
12192
|
-
}] });
|
|
12193
|
-
|
|
12194
12324
|
class EmployeeService extends RestService {
|
|
12195
12325
|
constructor() {
|
|
12196
12326
|
super(...arguments);
|
|
@@ -12213,9 +12343,9 @@ class EmployeeService extends RestService {
|
|
|
12213
12343
|
}));
|
|
12214
12344
|
}
|
|
12215
12345
|
}
|
|
12216
|
-
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12217
|
-
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12346
|
+
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12347
|
+
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, providedIn: 'root' });
|
|
12348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeService, decorators: [{
|
|
12219
12349
|
type: Injectable,
|
|
12220
12350
|
args: [{
|
|
12221
12351
|
providedIn: 'root'
|
|
@@ -12258,9 +12388,9 @@ class EmployeeInviteService extends RestService {
|
|
|
12258
12388
|
}));
|
|
12259
12389
|
}
|
|
12260
12390
|
}
|
|
12261
|
-
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12262
|
-
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12391
|
+
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12392
|
+
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
|
|
12393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EmployeeInviteService, decorators: [{
|
|
12264
12394
|
type: Injectable,
|
|
12265
12395
|
args: [{
|
|
12266
12396
|
providedIn: 'root'
|
|
@@ -12327,9 +12457,9 @@ class FirmService {
|
|
|
12327
12457
|
}));
|
|
12328
12458
|
}
|
|
12329
12459
|
}
|
|
12330
|
-
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12331
|
-
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12460
|
+
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 });
|
|
12461
|
+
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, providedIn: 'root' });
|
|
12462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FirmService, decorators: [{
|
|
12333
12463
|
type: Injectable,
|
|
12334
12464
|
args: [{
|
|
12335
12465
|
providedIn: 'root'
|
|
@@ -12357,9 +12487,9 @@ class ExportFormatterService {
|
|
|
12357
12487
|
}));
|
|
12358
12488
|
}
|
|
12359
12489
|
}
|
|
12360
|
-
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12361
|
-
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12490
|
+
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12491
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
12492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
12363
12493
|
type: Injectable,
|
|
12364
12494
|
args: [{
|
|
12365
12495
|
providedIn: 'root'
|
|
@@ -12380,9 +12510,9 @@ class HeaderTitleService {
|
|
|
12380
12510
|
}), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
|
|
12381
12511
|
}
|
|
12382
12512
|
}
|
|
12383
|
-
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12384
|
-
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12513
|
+
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12514
|
+
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
|
|
12515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HeaderTitleService, decorators: [{
|
|
12386
12516
|
type: Injectable,
|
|
12387
12517
|
args: [{
|
|
12388
12518
|
providedIn: 'root'
|
|
@@ -12452,9 +12582,9 @@ class IncomeSourceForecastService extends RestService {
|
|
|
12452
12582
|
}).flat();
|
|
12453
12583
|
}
|
|
12454
12584
|
}
|
|
12455
|
-
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12456
|
-
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12585
|
+
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12586
|
+
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
12587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
12458
12588
|
type: Injectable,
|
|
12459
12589
|
args: [{
|
|
12460
12590
|
providedIn: 'root'
|
|
@@ -12524,9 +12654,9 @@ class SalaryForecastService extends RestService {
|
|
|
12524
12654
|
}).flat();
|
|
12525
12655
|
}
|
|
12526
12656
|
}
|
|
12527
|
-
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12528
|
-
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12657
|
+
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12658
|
+
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
|
|
12659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
12530
12660
|
type: Injectable,
|
|
12531
12661
|
args: [{
|
|
12532
12662
|
providedIn: 'root'
|
|
@@ -12593,9 +12723,9 @@ class SoleForecastService extends RestService {
|
|
|
12593
12723
|
}).flat();
|
|
12594
12724
|
}
|
|
12595
12725
|
}
|
|
12596
|
-
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12597
|
-
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12726
|
+
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12727
|
+
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
|
|
12728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
12599
12729
|
type: Injectable,
|
|
12600
12730
|
args: [{
|
|
12601
12731
|
providedIn: 'root'
|
|
@@ -12629,9 +12759,9 @@ class IntercomService {
|
|
|
12629
12759
|
window.Intercom('boot', connectionCredentials);
|
|
12630
12760
|
}
|
|
12631
12761
|
}
|
|
12632
|
-
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12633
|
-
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12762
|
+
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12763
|
+
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, providedIn: 'root' });
|
|
12764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IntercomService, decorators: [{
|
|
12635
12765
|
type: Injectable,
|
|
12636
12766
|
args: [{
|
|
12637
12767
|
providedIn: 'root'
|
|
@@ -12659,9 +12789,9 @@ class KompassifyService {
|
|
|
12659
12789
|
});
|
|
12660
12790
|
}
|
|
12661
12791
|
}
|
|
12662
|
-
KompassifyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12663
|
-
KompassifyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12792
|
+
KompassifyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KompassifyService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12793
|
+
KompassifyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KompassifyService, providedIn: 'root' });
|
|
12794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KompassifyService, decorators: [{
|
|
12665
12795
|
type: Injectable,
|
|
12666
12796
|
args: [{
|
|
12667
12797
|
providedIn: 'root'
|
|
@@ -12785,9 +12915,9 @@ class LoanService extends RestService {
|
|
|
12785
12915
|
}));
|
|
12786
12916
|
}
|
|
12787
12917
|
}
|
|
12788
|
-
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12789
|
-
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12790
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12918
|
+
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12919
|
+
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, providedIn: 'root' });
|
|
12920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoanService, decorators: [{
|
|
12791
12921
|
type: Injectable,
|
|
12792
12922
|
args: [{
|
|
12793
12923
|
providedIn: 'root'
|
|
@@ -12831,9 +12961,9 @@ class ServiceNotificationService extends RestService {
|
|
|
12831
12961
|
});
|
|
12832
12962
|
}
|
|
12833
12963
|
}
|
|
12834
|
-
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12835
|
-
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
12964
|
+
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 });
|
|
12965
|
+
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
|
|
12966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
12837
12967
|
type: Injectable,
|
|
12838
12968
|
args: [{
|
|
12839
12969
|
providedIn: 'root'
|
|
@@ -12863,29 +12993,40 @@ const FILE_SETTINGS$1 = {
|
|
|
12863
12993
|
};
|
|
12864
12994
|
|
|
12865
12995
|
/**
|
|
12996
|
+
* @TODO mikhail better typehint
|
|
12997
|
+
*
|
|
12866
12998
|
* Service to generate and export PDF file from provided HTML elements
|
|
12867
12999
|
* The file is generated using the html2pdf library in order to get a canvas at the output,
|
|
12868
13000
|
* in which all the styles that the user sees on the page will be saved
|
|
12869
13001
|
*/
|
|
12870
13002
|
class PdfFromDomElementService {
|
|
12871
|
-
|
|
13003
|
+
init(elements, fileSettings) {
|
|
12872
13004
|
const options = FILE_SETTINGS$1;
|
|
12873
|
-
|
|
13005
|
+
if (fileSettings) {
|
|
13006
|
+
merge(options, fileSettings);
|
|
13007
|
+
}
|
|
12874
13008
|
// HTML container in which the exported DOM elements will be placed
|
|
12875
13009
|
const htmlWrapper = document.createElement('div');
|
|
12876
13010
|
elements.forEach((element) => {
|
|
12877
13011
|
htmlWrapper.append(element.cloneNode(true));
|
|
12878
13012
|
});
|
|
12879
13013
|
// Set PDF options, save file and return result as Observable
|
|
12880
|
-
return
|
|
12881
|
-
|
|
13014
|
+
return html2pdf().from(htmlWrapper).set(options);
|
|
13015
|
+
}
|
|
13016
|
+
download(elements, fileSettings) {
|
|
13017
|
+
return from(this.init(elements, fileSettings)
|
|
12882
13018
|
.save()
|
|
12883
13019
|
.then());
|
|
12884
13020
|
}
|
|
13021
|
+
export(elements, filename = FILE_SETTINGS$1.filename) {
|
|
13022
|
+
return from(this.init(elements)
|
|
13023
|
+
.outputPdf('blob')
|
|
13024
|
+
.then((blob) => new File([blob], filename, { type: 'application/pdf' })));
|
|
13025
|
+
}
|
|
12885
13026
|
}
|
|
12886
|
-
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12887
|
-
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13027
|
+
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13028
|
+
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
|
|
13029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDomElementService, decorators: [{
|
|
12889
13030
|
type: Injectable,
|
|
12890
13031
|
args: [{
|
|
12891
13032
|
providedIn: 'root'
|
|
@@ -12964,9 +13105,9 @@ class PdfFromTableService {
|
|
|
12964
13105
|
doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
|
|
12965
13106
|
}
|
|
12966
13107
|
}
|
|
12967
|
-
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
12968
|
-
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
12969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13108
|
+
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13109
|
+
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
|
|
13110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromTableService, decorators: [{
|
|
12970
13111
|
type: Injectable,
|
|
12971
13112
|
args: [{
|
|
12972
13113
|
providedIn: 'root'
|
|
@@ -12999,9 +13140,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
|
12999
13140
|
return pdf;
|
|
13000
13141
|
}
|
|
13001
13142
|
}
|
|
13002
|
-
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13003
|
-
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13143
|
+
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13144
|
+
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
|
|
13145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
|
|
13005
13146
|
type: Injectable,
|
|
13006
13147
|
args: [{
|
|
13007
13148
|
providedIn: 'root'
|
|
@@ -13033,9 +13174,9 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
13033
13174
|
return pdf;
|
|
13034
13175
|
}
|
|
13035
13176
|
}
|
|
13036
|
-
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13037
|
-
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13177
|
+
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13178
|
+
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
|
|
13179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PdfFromDataTableService, decorators: [{
|
|
13039
13180
|
type: Injectable,
|
|
13040
13181
|
args: [{
|
|
13041
13182
|
providedIn: 'root'
|
|
@@ -13092,9 +13233,9 @@ class PropertyTransactionReportService {
|
|
|
13092
13233
|
}));
|
|
13093
13234
|
}
|
|
13094
13235
|
}
|
|
13095
|
-
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13096
|
-
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13236
|
+
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 });
|
|
13237
|
+
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
|
|
13238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
|
|
13098
13239
|
type: Injectable,
|
|
13099
13240
|
args: [{
|
|
13100
13241
|
providedIn: 'root'
|
|
@@ -13263,9 +13404,9 @@ class PropertyCalculationService {
|
|
|
13263
13404
|
}
|
|
13264
13405
|
}
|
|
13265
13406
|
}
|
|
13266
|
-
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13267
|
-
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13407
|
+
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13408
|
+
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
|
|
13409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCalculationService, decorators: [{
|
|
13269
13410
|
type: Injectable,
|
|
13270
13411
|
args: [{
|
|
13271
13412
|
providedIn: 'root'
|
|
@@ -13282,9 +13423,9 @@ class PropertyCategoryService extends RestService {
|
|
|
13282
13423
|
this.url = 'properties/categories';
|
|
13283
13424
|
}
|
|
13284
13425
|
}
|
|
13285
|
-
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13286
|
-
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13426
|
+
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13427
|
+
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
|
|
13428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryService, decorators: [{
|
|
13288
13429
|
type: Injectable,
|
|
13289
13430
|
args: [{
|
|
13290
13431
|
providedIn: 'root'
|
|
@@ -13336,9 +13477,9 @@ class PropertyDocumentService extends RestService {
|
|
|
13336
13477
|
});
|
|
13337
13478
|
}
|
|
13338
13479
|
}
|
|
13339
|
-
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13340
|
-
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13480
|
+
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13481
|
+
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
|
|
13482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyDocumentService, decorators: [{
|
|
13342
13483
|
type: Injectable,
|
|
13343
13484
|
args: [{
|
|
13344
13485
|
providedIn: 'root'
|
|
@@ -13454,9 +13595,9 @@ class PropertyShareService extends RestService {
|
|
|
13454
13595
|
});
|
|
13455
13596
|
}
|
|
13456
13597
|
}
|
|
13457
|
-
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13458
|
-
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13598
|
+
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13599
|
+
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
13600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
13460
13601
|
type: Injectable,
|
|
13461
13602
|
args: [{
|
|
13462
13603
|
providedIn: 'root'
|
|
@@ -13487,9 +13628,9 @@ class PropertySaleService extends RestService {
|
|
|
13487
13628
|
}));
|
|
13488
13629
|
}
|
|
13489
13630
|
}
|
|
13490
|
-
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13491
|
-
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13631
|
+
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13632
|
+
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
|
|
13633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertySaleService, decorators: [{
|
|
13493
13634
|
type: Injectable,
|
|
13494
13635
|
args: [{
|
|
13495
13636
|
providedIn: 'root'
|
|
@@ -13522,9 +13663,9 @@ class EquityPositionChartService {
|
|
|
13522
13663
|
}));
|
|
13523
13664
|
}
|
|
13524
13665
|
}
|
|
13525
|
-
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13526
|
-
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13666
|
+
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 });
|
|
13667
|
+
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
|
|
13668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EquityPositionChartService, decorators: [{
|
|
13528
13669
|
type: Injectable,
|
|
13529
13670
|
args: [{
|
|
13530
13671
|
providedIn: 'root'
|
|
@@ -13565,9 +13706,9 @@ class PropertyCategoryMovementService extends RestService {
|
|
|
13565
13706
|
}));
|
|
13566
13707
|
}
|
|
13567
13708
|
}
|
|
13568
|
-
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13569
|
-
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13709
|
+
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13710
|
+
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
13711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
|
|
13571
13712
|
type: Injectable,
|
|
13572
13713
|
args: [{
|
|
13573
13714
|
providedIn: 'root'
|
|
@@ -13659,9 +13800,9 @@ class SubscriptionService {
|
|
|
13659
13800
|
});
|
|
13660
13801
|
}
|
|
13661
13802
|
}
|
|
13662
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13663
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13803
|
+
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: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13804
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
|
|
13805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
13665
13806
|
type: Injectable,
|
|
13666
13807
|
args: [{
|
|
13667
13808
|
providedIn: 'root'
|
|
@@ -13682,9 +13823,9 @@ class ServicePriceService extends RestService {
|
|
|
13682
13823
|
this.isHydra = true;
|
|
13683
13824
|
}
|
|
13684
13825
|
}
|
|
13685
|
-
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13686
|
-
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13826
|
+
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13827
|
+
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
|
|
13828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServicePriceService, decorators: [{
|
|
13688
13829
|
type: Injectable,
|
|
13689
13830
|
args: [{
|
|
13690
13831
|
providedIn: 'root'
|
|
@@ -13773,9 +13914,9 @@ class TaxReviewService extends RestService {
|
|
|
13773
13914
|
});
|
|
13774
13915
|
}
|
|
13775
13916
|
}
|
|
13776
|
-
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13777
|
-
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13917
|
+
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13918
|
+
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
|
|
13919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
13779
13920
|
type: Injectable,
|
|
13780
13921
|
args: [{
|
|
13781
13922
|
providedIn: 'root'
|
|
@@ -13807,9 +13948,9 @@ class TaxReviewHistoryService extends RestService {
|
|
|
13807
13948
|
});
|
|
13808
13949
|
}
|
|
13809
13950
|
}
|
|
13810
|
-
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13811
|
-
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
13951
|
+
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13952
|
+
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
13953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
13813
13954
|
type: Injectable,
|
|
13814
13955
|
args: [{
|
|
13815
13956
|
providedIn: 'root'
|
|
@@ -13866,9 +14007,9 @@ class TaxSummaryService {
|
|
|
13866
14007
|
});
|
|
13867
14008
|
}
|
|
13868
14009
|
}
|
|
13869
|
-
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13870
|
-
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14010
|
+
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 });
|
|
14011
|
+
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
|
|
14012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxSummaryService, decorators: [{
|
|
13872
14013
|
type: Injectable,
|
|
13873
14014
|
args: [{
|
|
13874
14015
|
providedIn: 'root'
|
|
@@ -13912,10 +14053,21 @@ class TransactionCalculationService {
|
|
|
13912
14053
|
return !this.isAllocated(transaction, allocations);
|
|
13913
14054
|
}));
|
|
13914
14055
|
}
|
|
14056
|
+
/**
|
|
14057
|
+
* Get invoices allocated amounts grouped bu invoice id
|
|
14058
|
+
*/
|
|
14059
|
+
getAllocationsAmountsByInvoiceId(allocations, invoices) {
|
|
14060
|
+
const allocationsByTransactionId = allocations.groupBy('transaction.id');
|
|
14061
|
+
const dictionary = new Dictionary([]);
|
|
14062
|
+
invoices.toArray().forEach((invoice) => {
|
|
14063
|
+
dictionary.add(invoice.id, allocationsByTransactionId.merge(invoice.itemsCollection.mapBy('transaction.id')).amount || 0);
|
|
14064
|
+
});
|
|
14065
|
+
return dictionary;
|
|
14066
|
+
}
|
|
13915
14067
|
}
|
|
13916
|
-
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13917
|
-
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13918
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14068
|
+
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14069
|
+
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
|
|
14070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TransactionCalculationService, decorators: [{
|
|
13919
14071
|
type: Injectable,
|
|
13920
14072
|
args: [{
|
|
13921
14073
|
providedIn: 'root'
|
|
@@ -13956,9 +14108,9 @@ class XlsxService {
|
|
|
13956
14108
|
return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
13957
14109
|
}
|
|
13958
14110
|
}
|
|
13959
|
-
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13960
|
-
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14111
|
+
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14112
|
+
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, providedIn: 'root' });
|
|
14113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: XlsxService, decorators: [{
|
|
13962
14114
|
type: Injectable,
|
|
13963
14115
|
args: [{
|
|
13964
14116
|
providedIn: 'root'
|
|
@@ -13973,9 +14125,9 @@ class TaxExemptionService extends RestService {
|
|
|
13973
14125
|
this.isHydra = true;
|
|
13974
14126
|
}
|
|
13975
14127
|
}
|
|
13976
|
-
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
13977
|
-
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
13978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14128
|
+
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14129
|
+
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
|
|
14130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TaxExemptionService, decorators: [{
|
|
13979
14131
|
type: Injectable,
|
|
13980
14132
|
args: [{
|
|
13981
14133
|
providedIn: 'root'
|
|
@@ -14052,9 +14204,9 @@ FacebookService.authOptions = {
|
|
|
14052
14204
|
auth_type: 'rerequest',
|
|
14053
14205
|
return_scopes: true
|
|
14054
14206
|
};
|
|
14055
|
-
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14056
|
-
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14207
|
+
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$2.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14208
|
+
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, providedIn: 'root' });
|
|
14209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FacebookService, decorators: [{
|
|
14058
14210
|
type: Injectable,
|
|
14059
14211
|
args: [{
|
|
14060
14212
|
providedIn: 'root'
|
|
@@ -14083,9 +14235,9 @@ class TutorialVideoService {
|
|
|
14083
14235
|
}
|
|
14084
14236
|
TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
|
|
14085
14237
|
TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
|
|
14086
|
-
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
14087
|
-
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
14088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
14238
|
+
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 });
|
|
14239
|
+
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
|
|
14240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TutorialVideoService, decorators: [{
|
|
14089
14241
|
type: Injectable,
|
|
14090
14242
|
args: [{
|
|
14091
14243
|
providedIn: 'root'
|
|
@@ -14516,7 +14668,7 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
14516
14668
|
// User have to create income source with new business.
|
|
14517
14669
|
// Income source is not able for edit business
|
|
14518
14670
|
if (!business.id) {
|
|
14519
|
-
// @TODO Alex: move to separated form class
|
|
14671
|
+
// @TODO Alex (TT-2304): move to separated form class
|
|
14520
14672
|
this.addControl('incomeSource', new FormGroup({
|
|
14521
14673
|
type: new FormControl(IncomeSourceTypeEnum.SOLE, Validators.required),
|
|
14522
14674
|
name: new FormControl(null, Validators.required),
|
|
@@ -14535,13 +14687,32 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
14535
14687
|
})
|
|
14536
14688
|
]));
|
|
14537
14689
|
}
|
|
14690
|
+
this.listenEvents();
|
|
14691
|
+
}
|
|
14692
|
+
listenEvents() {
|
|
14693
|
+
if (this.contains('incomeSource')) {
|
|
14694
|
+
this.listenNameChanges();
|
|
14695
|
+
}
|
|
14538
14696
|
}
|
|
14697
|
+
/**
|
|
14698
|
+
* We take the first forecast because income sources available only for new business, so we have only one forecast
|
|
14699
|
+
*/
|
|
14539
14700
|
get forecastFormGroup() {
|
|
14540
14701
|
return this.get('incomeSource').get('soleForecasts').at(0);
|
|
14541
14702
|
}
|
|
14703
|
+
/**
|
|
14704
|
+
* We take the first loss because losses available only for new business, so we have only one loss
|
|
14705
|
+
*/
|
|
14542
14706
|
get lossFormGroup() {
|
|
14543
14707
|
return this.get('losses').at(0);
|
|
14544
14708
|
}
|
|
14709
|
+
listenNameChanges() {
|
|
14710
|
+
console.log('subs');
|
|
14711
|
+
this.get('name').valueChanges.subscribe((name) => {
|
|
14712
|
+
console.log('listenNameChants');
|
|
14713
|
+
this.get('incomeSource').get('name').setValue(name);
|
|
14714
|
+
});
|
|
14715
|
+
}
|
|
14545
14716
|
}
|
|
14546
14717
|
|
|
14547
14718
|
/**
|
|
@@ -14657,51 +14828,35 @@ class SoleInvoiceItemForm extends AbstractForm {
|
|
|
14657
14828
|
description: new FormControl(item.description, Validators.required),
|
|
14658
14829
|
quantity: new FormControl(item.quantity, Validators.required),
|
|
14659
14830
|
price: new FormControl(item.price, Validators.required),
|
|
14660
|
-
isGST: new FormControl({ value: item.isGST, disabled: !((_a = item.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) }),
|
|
14661
|
-
chartAccounts: new FormControl(item.chartAccounts, Validators.required)
|
|
14831
|
+
isGST: new FormControl({ value: item.isGST || false, disabled: !((_a = item.chartAccounts) === null || _a === void 0 ? void 0 : _a.isGST) }),
|
|
14832
|
+
chartAccounts: new FormControl(item.chartAccounts, Validators.required),
|
|
14662
14833
|
}, item);
|
|
14663
|
-
this.listenEvents();
|
|
14664
|
-
}
|
|
14665
|
-
listenEvents() {
|
|
14666
|
-
this.listenChartAccountsChanges();
|
|
14667
|
-
}
|
|
14668
|
-
onTemplateChanged(template) {
|
|
14669
|
-
this.template = template;
|
|
14670
|
-
if (this.template.isNoTax()) {
|
|
14671
|
-
this.get('isGST').setValue(false);
|
|
14672
|
-
this.get('isGST').disable();
|
|
14673
|
-
}
|
|
14674
|
-
else {
|
|
14675
|
-
this.get('isGST').enable();
|
|
14676
|
-
}
|
|
14677
|
-
}
|
|
14678
|
-
listenChartAccountsChanges() {
|
|
14679
|
-
this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
|
14680
|
-
if (this.template.isNoTax()) {
|
|
14681
|
-
return;
|
|
14682
|
-
}
|
|
14683
|
-
if (chartAccounts.isGST) {
|
|
14684
|
-
this.get('isGST').enable();
|
|
14685
|
-
}
|
|
14686
|
-
else {
|
|
14687
|
-
this.get('isGST').setValue(false);
|
|
14688
|
-
this.get('isGST').disable();
|
|
14689
|
-
}
|
|
14690
|
-
});
|
|
14691
14834
|
}
|
|
14692
14835
|
}
|
|
14693
14836
|
|
|
14694
14837
|
class SoleInvoiceForm extends AbstractForm {
|
|
14695
|
-
constructor(invoice) {
|
|
14838
|
+
constructor(invoice, soleDetailsGST) {
|
|
14696
14839
|
super({
|
|
14697
|
-
dateFrom: new FormControl(invoice.dateFrom, Validators.required),
|
|
14840
|
+
dateFrom: new FormControl(invoice.dateFrom || new Date(), Validators.required),
|
|
14698
14841
|
dateTo: new FormControl(invoice.dateTo, Validators.required),
|
|
14699
|
-
items: new FormArray(invoice.items.map((item) => new SoleInvoiceItemForm(item))),
|
|
14842
|
+
items: new FormArray((invoice.items || [plainToClass(SoleInvoiceItem, {})]).map((item) => new SoleInvoiceItemForm(item))),
|
|
14700
14843
|
payer: new FormControl(invoice.payer, Validators.required),
|
|
14701
|
-
|
|
14844
|
+
taxType: new FormControl(invoice.taxType, Validators.required),
|
|
14845
|
+
bankAccount: new FormControl(invoice.bankAccount, Validators.required)
|
|
14702
14846
|
}, invoice);
|
|
14703
|
-
|
|
14704
|
-
|
|
14847
|
+
this.soleDetailsGST = soleDetailsGST;
|
|
14848
|
+
// we need invoice template only for new invoices
|
|
14849
|
+
if (!invoice.id) {
|
|
14850
|
+
this.addControl('template', new FormControl(invoice.template));
|
|
14851
|
+
}
|
|
14852
|
+
// invoice.taxType is always NONE ('No Tax') when soleDetails.isGST === false
|
|
14853
|
+
if (!this.soleDetailsGST) {
|
|
14854
|
+
this.get('taxType').setValue(SoleInvoiceTaxTypeEnum.NO_TAX);
|
|
14855
|
+
this.get('taxType').disable();
|
|
14856
|
+
// Items isGST is not available when invoice.taxType === NONE ('No Tax')
|
|
14857
|
+
this.items.controls.forEach((itemForm) => {
|
|
14858
|
+
this.disableItemGST(itemForm);
|
|
14859
|
+
});
|
|
14705
14860
|
}
|
|
14706
14861
|
this.listenEvents();
|
|
14707
14862
|
}
|
|
@@ -14709,52 +14864,112 @@ class SoleInvoiceForm extends AbstractForm {
|
|
|
14709
14864
|
return this.get('items');
|
|
14710
14865
|
}
|
|
14711
14866
|
listenEvents() {
|
|
14712
|
-
|
|
14867
|
+
// no need to listen tax type and items chart accounts changes when soleDetails.isGST === false
|
|
14868
|
+
// because invoice tax type always 'No Tax' in this case and not available for changing
|
|
14869
|
+
if (this.soleDetailsGST) {
|
|
14870
|
+
this.listenTaxTypeChanges();
|
|
14871
|
+
this.items.controls.forEach((itemForm) => {
|
|
14872
|
+
this.listenItemChartAccountsChanges(itemForm);
|
|
14873
|
+
});
|
|
14874
|
+
}
|
|
14875
|
+
// nothing to listen if template field is not учшые (edit invoice case)
|
|
14876
|
+
if (this.contains('template')) {
|
|
14877
|
+
this.listenTemplateChanges();
|
|
14878
|
+
}
|
|
14713
14879
|
}
|
|
14714
14880
|
addItem() {
|
|
14715
|
-
|
|
14881
|
+
const itemForm = new SoleInvoiceItemForm(plainToClass(SoleInvoiceItem, {}));
|
|
14882
|
+
// no need to listen items chart accounts changes when soleDetails.isGST === false
|
|
14883
|
+
// because invoice tax type always 'No Tax' in this case and not available for changing
|
|
14884
|
+
if (this.soleDetailsGST) {
|
|
14885
|
+
this.listenItemChartAccountsChanges(itemForm);
|
|
14886
|
+
}
|
|
14887
|
+
this.items.push(itemForm);
|
|
14716
14888
|
}
|
|
14717
14889
|
removeItem(index) {
|
|
14718
|
-
// do not remove the last item
|
|
14719
|
-
if (this.items.length === 1) {
|
|
14720
|
-
return;
|
|
14721
|
-
}
|
|
14722
14890
|
this.items.removeAt(index);
|
|
14723
14891
|
}
|
|
14724
14892
|
submit(data = {}) {
|
|
14893
|
+
// @TODO Alex TT-2190: move child custom forms submit to Abstract Form
|
|
14725
14894
|
const items = this.items.controls.map((control) => control.submit());
|
|
14726
|
-
return super.submit(
|
|
14895
|
+
return super.submit(merge(data, { items }));
|
|
14727
14896
|
}
|
|
14897
|
+
/**
|
|
14898
|
+
* Update default values from selected invoice template
|
|
14899
|
+
*/
|
|
14728
14900
|
listenTemplateChanges() {
|
|
14729
14901
|
this.get('template').valueChanges.subscribe((template) => {
|
|
14730
|
-
this.
|
|
14902
|
+
this.get('bankAccount').setValue(template.bankAccount);
|
|
14903
|
+
const dateFrom = this.get('dateFrom').value;
|
|
14904
|
+
if (dateFrom) {
|
|
14905
|
+
this.get('dateTo').setValue(new Date(dateFrom.getTime() + template.termTime));
|
|
14906
|
+
}
|
|
14907
|
+
// invoice.taxType is always 'No Tax' when soleDetails.isGST = false and not available for changing
|
|
14908
|
+
if (this.soleDetailsGST) {
|
|
14909
|
+
this.get('taxType').setValue(template.taxType);
|
|
14910
|
+
}
|
|
14911
|
+
});
|
|
14912
|
+
}
|
|
14913
|
+
/**
|
|
14914
|
+
* GST is not available for items when invoice.taxType === NONE
|
|
14915
|
+
*/
|
|
14916
|
+
listenTaxTypeChanges() {
|
|
14917
|
+
this.get('taxType').valueChanges.subscribe((type) => {
|
|
14918
|
+
this.items.controls.forEach((itemForm) => {
|
|
14919
|
+
const chartAccounts = itemForm.get('chartAccounts').value;
|
|
14920
|
+
// Item GST is available when invoice.taxType !== NONE ('No Tax')
|
|
14921
|
+
if (type !== SoleInvoiceTaxTypeEnum.NO_TAX && (chartAccounts === null || chartAccounts === void 0 ? void 0 : chartAccounts.isGST)) {
|
|
14922
|
+
this.enableItemGST(itemForm);
|
|
14923
|
+
return;
|
|
14924
|
+
}
|
|
14925
|
+
this.disableItemGST(itemForm);
|
|
14926
|
+
});
|
|
14731
14927
|
});
|
|
14732
14928
|
}
|
|
14733
|
-
|
|
14734
|
-
|
|
14735
|
-
|
|
14929
|
+
/**
|
|
14930
|
+
* GST availability depends of chart accounts isGST flag
|
|
14931
|
+
*/
|
|
14932
|
+
listenItemChartAccountsChanges(itemForm) {
|
|
14933
|
+
itemForm.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
|
14934
|
+
// item.isGST is available only when item.chartAccounts.isGST === true, soleDetails.isGST === true and invoice.taxType !== NONE ('No Tax')
|
|
14935
|
+
if (this.soleDetailsGST && chartAccounts.isGST && !this.currentValue.isNoTax()) {
|
|
14936
|
+
this.enableItemGST(itemForm);
|
|
14937
|
+
return;
|
|
14938
|
+
}
|
|
14939
|
+
this.disableItemGST(itemForm);
|
|
14736
14940
|
});
|
|
14737
14941
|
}
|
|
14942
|
+
disableItemGST(itemForm) {
|
|
14943
|
+
itemForm.get('isGST').setValue(false);
|
|
14944
|
+
itemForm.get('isGST').disable();
|
|
14945
|
+
}
|
|
14946
|
+
/**
|
|
14947
|
+
* Enable GST field for passed item form. Value is always true by default because only case when this field is enabled is
|
|
14948
|
+
* when ChartAccounts.isGST === true, so we just use default value from chartAccounts.isGST
|
|
14949
|
+
*/
|
|
14950
|
+
enableItemGST(itemForm) {
|
|
14951
|
+
itemForm.get('isGST').setValue(true);
|
|
14952
|
+
itemForm.get('isGST').enable();
|
|
14953
|
+
}
|
|
14738
14954
|
}
|
|
14739
14955
|
|
|
14740
14956
|
class SoleInvoiceTemplateForm extends AbstractForm {
|
|
14741
|
-
constructor(invoiceTemplate
|
|
14957
|
+
constructor(invoiceTemplate) {
|
|
14742
14958
|
super({
|
|
14743
14959
|
name: new FormControl(invoiceTemplate.name, Validators.required),
|
|
14744
|
-
// taxType always 'No Tax' when
|
|
14745
|
-
taxType: new FormControl(
|
|
14960
|
+
// taxType is always 'No Tax' when soleDetails.isGST === false
|
|
14961
|
+
taxType: new FormControl(invoiceTemplate.taxType, Validators.required),
|
|
14746
14962
|
term: new FormControl(invoiceTemplate.term, [Validators.required, Validators.min(0)]),
|
|
14747
14963
|
bankAccount: new FormControl(invoiceTemplate.bankAccount, [Validators.required])
|
|
14748
14964
|
}, invoiceTemplate);
|
|
14749
|
-
this.soleDetails = soleDetails;
|
|
14750
14965
|
}
|
|
14751
14966
|
}
|
|
14752
14967
|
|
|
14753
14968
|
class BankAccountAllocationForm extends AbstractForm {
|
|
14754
|
-
constructor(bankAccount) {
|
|
14755
|
-
super({
|
|
14969
|
+
constructor(bankAccount, controls) {
|
|
14970
|
+
super(merge(controls, {
|
|
14756
14971
|
tankType: new FormControl(bankAccount ? bankAccount.tankType : null, Validators.required)
|
|
14757
|
-
}, plainToClass(BankAccount, bankAccount || {}));
|
|
14972
|
+
}), plainToClass(BankAccount, bankAccount || {}));
|
|
14758
14973
|
this.bankAccount = bankAccount;
|
|
14759
14974
|
if (bankAccount === null || bankAccount === void 0 ? void 0 : bankAccount.isPropertyTank()) {
|
|
14760
14975
|
this.addControl('bankAccountProperties', new BankAccountPropertiesForm(bankAccount.bankAccountProperties));
|
|
@@ -14807,12 +15022,16 @@ class BankAccountImportForm extends BankAccountAllocationForm {
|
|
|
14807
15022
|
*/
|
|
14808
15023
|
class BankAccountAddManualForm extends BankAccountAllocationForm {
|
|
14809
15024
|
constructor(connection) {
|
|
14810
|
-
super(
|
|
15025
|
+
super(null, {
|
|
15026
|
+
type: new FormControl(null, Validators.required),
|
|
15027
|
+
accountName: new FormControl(null, Validators.required),
|
|
15028
|
+
currentBalance: new FormControl(null, Validators.required),
|
|
15029
|
+
accountNumber: new FormControl(null, [Validators.required, Validators.pattern(BankAccountAddManualForm.accountNumberPattern)])
|
|
15030
|
+
});
|
|
14811
15031
|
this.connection = connection;
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
this.addControl('accountNumber', new FormControl(null, [Validators.required, Validators.pattern(BankAccountAddManualForm.accountNumberPattern)]));
|
|
15032
|
+
}
|
|
15033
|
+
listenEvents() {
|
|
15034
|
+
super.listenEvents();
|
|
14816
15035
|
this.listenTypeChanges();
|
|
14817
15036
|
}
|
|
14818
15037
|
/**
|
|
@@ -15689,5 +15908,5 @@ VehicleLogbookForm.maxDescriptionLength = 60;
|
|
|
15689
15908
|
* Generated bundle index. Do not edit.
|
|
15690
15909
|
*/
|
|
15691
15910
|
|
|
15692
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, 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, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, 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, 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, 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, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, 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, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RewardfulService, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, 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, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, 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, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, 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 };
|
|
15911
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, 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, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, 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, 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, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, 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, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RewardfulService, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, 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, SoleBusinessLossReport, SoleBusinessLossService, 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, SubscriptionService, SubscriptionTypeEnum, 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, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, 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 };
|
|
15693
15912
|
//# sourceMappingURL=taxtank-core.js.map
|