taxtank-core 0.30.17 → 0.30.19
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/esm2020/lib/collections/allocation-rule.collection.mjs +27 -0
- package/esm2020/lib/collections/index.mjs +2 -1
- package/esm2020/lib/collections/property/property-sale/index.mjs +2 -2
- package/esm2020/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.mjs +17 -0
- package/esm2020/lib/collections/transaction/transaction.collection.mjs +6 -6
- package/esm2020/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.mjs +9 -0
- package/esm2020/lib/db/Enums/allocation-rule-condition-field.enum.mjs +6 -0
- package/esm2020/lib/db/Enums/allocation-rule-condition-operator.enum.mjs +6 -0
- package/esm2020/lib/db/Enums/allocation-rule-type.enum.mjs +7 -0
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.mjs +19 -0
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.mjs +6 -0
- package/esm2020/lib/db/Enums/chart-accounts/index.mjs +3 -3
- package/esm2020/lib/db/Enums/index.mjs +6 -2
- package/esm2020/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.mjs +9 -0
- package/esm2020/lib/db/Models/chart-accounts/chart-accounts-meta-field.mjs +4 -0
- package/esm2020/lib/db/Models/chart-accounts/chart-accounts.mjs +1 -1
- package/esm2020/lib/db/Models/index.mjs +5 -6
- package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +4 -0
- package/esm2020/lib/db/Models/property/property-sale/property-sale.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption-meta-field.mjs +4 -0
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption.mjs +1 -1
- package/esm2020/lib/db/Models/transaction/allocation-rule-condition.mjs +4 -0
- package/esm2020/lib/db/Models/transaction/allocation-rule-transaction-meta-field.mjs +4 -0
- package/esm2020/lib/db/Models/transaction/allocation-rule-transaction.mjs +4 -0
- package/esm2020/lib/db/Models/transaction/allocation-rule.mjs +4 -0
- package/esm2020/lib/db/Models/transaction/transaction-meta-field.mjs +4 -0
- package/esm2020/lib/db/Models/transaction/transaction.mjs +1 -1
- package/esm2020/lib/forms/property/property-sale/property-sale-exemptions.form.mjs +18 -18
- package/esm2020/lib/forms/transaction/allocation-rule-condition.form.mjs +14 -0
- package/esm2020/lib/forms/transaction/allocation-rule-transaction-meta-field.form.mjs +12 -0
- package/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +125 -0
- package/esm2020/lib/forms/transaction/allocation-rule.form.mjs +135 -0
- package/esm2020/lib/forms/transaction/index.mjs +2 -1
- package/esm2020/lib/forms/transaction/work/work-expense.form.mjs +10 -10
- package/esm2020/lib/forms/transaction/work/work-transaction.form.mjs +12 -12
- package/esm2020/lib/models/chart-accounts/chart-accounts-meta-field.mjs +14 -0
- package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +10 -4
- package/esm2020/lib/models/chart-accounts/index.mjs +2 -2
- package/esm2020/lib/models/endpoint/endpoints.const.mjs +5 -1
- package/esm2020/lib/models/property/property-sale/index.mjs +3 -3
- package/esm2020/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +4 -0
- package/esm2020/lib/models/property/property-sale/property-sale.mjs +4 -4
- package/esm2020/lib/models/property/property-sale/tax-exemption-meta-field.mjs +4 -0
- package/esm2020/lib/models/property/property.mjs +6 -6
- package/esm2020/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.mjs +8 -8
- package/esm2020/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.mjs +12 -12
- package/esm2020/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.mjs +6 -6
- package/esm2020/lib/models/transaction/allocation-rule-condition.mjs +35 -0
- package/esm2020/lib/models/transaction/allocation-rule-transaction-meta-field.mjs +4 -0
- package/esm2020/lib/models/transaction/allocation-rule-transaction.mjs +95 -0
- package/esm2020/lib/models/transaction/allocation-rule.mjs +139 -0
- package/esm2020/lib/models/transaction/index.mjs +5 -2
- package/esm2020/lib/models/transaction/transaction-meta-field.mjs +10 -0
- package/esm2020/lib/models/transaction/transaction.mjs +15 -15
- package/esm2020/lib/services/http/transaction/index.mjs +2 -1
- package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +23 -0
- package/esm2020/lib/services/http/tutorial-video/video-source.interface.mjs +1 -1
- package/esm2020/public-api.mjs +5 -5
- package/fesm2015/taxtank-core.mjs +992 -390
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +992 -392
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
- package/lib/collections/allocation-group.collection.d.ts.map +1 -0
- package/lib/collections/allocation-rule.collection.d.ts +15 -0
- package/lib/collections/allocation-rule.collection.d.ts.map +1 -0
- package/lib/collections/bank-account.collection.d.ts.map +1 -0
- package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
- package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
- package/lib/collections/client-invite.collection.d.ts.map +1 -0
- package/lib/collections/client-movement.collection.d.ts.map +1 -0
- package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
- package/lib/collections/client.collection.d.ts.map +1 -0
- package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
- package/lib/collections/depreciation.collection.d.ts.map +1 -0
- package/lib/collections/employee.collection.d.ts.map +1 -0
- package/lib/collections/exportable.collection.d.ts.map +1 -0
- package/lib/collections/income-source.collection.d.ts.map +1 -0
- package/lib/collections/index.d.ts +1 -0
- package/lib/collections/index.d.ts.map +1 -0
- package/lib/collections/loan/index.d.ts.map +1 -0
- package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
- package/lib/collections/loan/loan.collection.d.ts.map +1 -0
- package/lib/collections/property/index.d.ts.map +1 -0
- package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
- package/lib/collections/property/property-sale/index.d.ts +1 -1
- package/lib/collections/property/property-sale/index.d.ts.map +1 -0
- package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts +8 -0
- package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +1 -0
- package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +1 -0
- package/lib/collections/property/property-share.collection.d.ts.map +1 -0
- package/lib/collections/property/property.collection.d.ts.map +1 -0
- package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +1 -0
- package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
- package/lib/collections/report/index.d.ts.map +1 -0
- package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
- package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
- package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
- package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
- package/lib/collections/sole/index.d.ts.map +1 -0
- package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
- package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
- package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
- package/lib/collections/subscription/index.d.ts.map +1 -0
- package/lib/collections/subscription/service-price.collection.d.ts.map +1 -0
- package/lib/collections/subscription/service-product.collection.d.ts.map +1 -0
- package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
- package/lib/collections/subscription/subscription-item.collection.d.ts.map +1 -0
- package/lib/collections/tax-review.collection.d.ts.map +1 -0
- package/lib/collections/tax-summary/index.d.ts.map +1 -0
- package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
- package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
- package/lib/collections/transaction/index.d.ts.map +1 -0
- package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
- package/lib/collections/transaction/transaction.collection.d.ts +3 -3
- package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
- package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
- package/lib/collections/user-event-type-collection.d.ts.map +1 -0
- package/lib/collections/vehicle/index.d.ts.map +1 -0
- package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
- package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
- package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts +7 -0
- package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts +4 -0
- package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts +4 -0
- package/lib/db/Enums/allocation-rule-type.enum.d.ts +5 -0
- package/lib/db/Enums/bank-popular.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/{chart-accounts-metadata-list.enum.d.ts → chart-accounts-meta-field-list.enum.d.ts} +1 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts +4 -0
- package/lib/db/Enums/chart-accounts/index.d.ts +2 -2
- package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source-type-list-other.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source-type-list-sole.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source-type-list-work.enum.d.ts.map +1 -0
- package/lib/db/Enums/index.d.ts +5 -1
- package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/loan-bank-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/loan-frequency.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-category-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-sale/{tax-exemption-metadata.enum.d.ts → tax-exemption-meta-field.enum.d.ts} +1 -1
- package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-return-category-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-return-category-section.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
- package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-connection.d.ts.map +1 -0
- package/lib/db/Models/bank/basiq-job.d.ts.map +1 -0
- package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts +11 -0
- package/lib/db/Models/chart-accounts/chart-accounts.d.ts +2 -2
- package/lib/db/Models/index.d.ts +4 -5
- package/lib/db/Models/observable-model.d.ts.map +1 -0
- package/lib/db/Models/property/property-category.d.ts.map +1 -0
- package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts +9 -0
- package/lib/db/Models/property/property-sale/property-sale.d.ts +2 -2
- package/lib/db/Models/property/property-sale/{tax-exemption-metadata.d.ts → tax-exemption-meta-field.d.ts} +1 -1
- package/lib/db/Models/property/property-sale/tax-exemption.d.ts +2 -2
- package/lib/db/Models/property/property.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-payment-method.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule-condition.d.ts +10 -0
- package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts +9 -0
- package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule-transaction.d.ts +25 -0
- package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule.d.ts +22 -0
- package/lib/db/Models/transaction/allocation-rule.d.ts.map +1 -0
- package/lib/db/Models/transaction/{transaction-metadata.d.ts → transaction-meta-field.d.ts} +3 -3
- package/lib/db/Models/transaction/transaction.d.ts +2 -2
- package/lib/db/Models/user/user.d.ts.map +1 -0
- package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +1 -0
- package/lib/forms/abstract.form.d.ts.map +1 -0
- package/lib/forms/address/address.form.d.ts.map +1 -0
- package/lib/forms/address/index.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-login.form.d.ts.map +1 -0
- package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
- package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
- package/lib/forms/depreciation/index.d.ts.map +1 -0
- package/lib/forms/form-validations.enum.d.ts.map +1 -0
- package/lib/forms/index.d.ts.map +1 -0
- package/lib/forms/loan/index.d.ts.map +1 -0
- package/lib/forms/loan/loan.form.d.ts.map +1 -0
- package/lib/forms/login/login.form.d.ts.map +1 -0
- package/lib/forms/phone/index.d.ts.map +1 -0
- package/lib/forms/phone/phone.form.d.ts.map +1 -0
- package/lib/forms/property/index.d.ts.map +1 -0
- package/lib/forms/property/property-sale/index.d.ts.map +1 -0
- package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
- package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts +2 -2
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
- package/lib/forms/register/register-client.form.d.ts.map +1 -0
- package/lib/forms/register/register-firm.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/index.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
- package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
- package/lib/forms/sole/index.d.ts.map +1 -0
- package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule-condition.form.d.ts +5 -0
- package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts +5 -0
- package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule-transaction.form.d.ts +33 -0
- package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule.form.d.ts +31 -0
- package/lib/forms/transaction/allocation-rule.form.d.ts.map +1 -0
- package/lib/forms/transaction/index.d.ts +1 -0
- package/lib/forms/transaction/index.d.ts.map +1 -0
- package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
- package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
- package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
- package/lib/forms/transaction/work/work-expense.form.d.ts +1 -1
- package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
- package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
- package/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
- package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
- package/lib/forms/user/index.d.ts.map +1 -0
- package/lib/forms/user/password.form.d.ts.map +1 -0
- package/lib/forms/user/reset-password.form.d.ts.map +1 -0
- package/lib/forms/user/user-invite.form.d.ts.map +1 -0
- package/lib/forms/vehicle/index.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
- package/lib/functions/clone-deep.d.ts.map +1 -0
- package/lib/functions/create-date.d.ts.map +1 -0
- package/lib/functions/enum-to-list.d.ts.map +1 -0
- package/lib/functions/get-doc-icon.d.ts.map +1 -0
- package/lib/functions/mat-options-functions.d.ts.map +1 -0
- package/lib/functions/mat-sort-options.d.ts.map +1 -0
- package/lib/functions/round-to.d.ts.map +1 -0
- package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
- package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
- package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
- package/lib/interceptors/interceptors.module.d.ts.map +1 -0
- package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
- package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
- package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
- package/lib/interfaces/asset.interface.d.ts.map +1 -0
- package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
- package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
- package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
- package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
- package/lib/interfaces/expense.interface.d.ts.map +1 -0
- package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/option.interface.d.ts.map +1 -0
- package/lib/interfaces/receipt.interface.d.ts.map +1 -0
- package/lib/interfaces/table-exportable.interface.d.ts.map +1 -0
- package/lib/interfaces/tank.interface.d.ts.map +1 -0
- package/lib/interfaces/updatable.interface.d.ts.map +1 -0
- package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
- package/lib/models/account-setup/account-setup-items.const.d.ts.map +1 -0
- package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
- package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
- package/lib/models/badge/badge.d.ts.map +1 -0
- package/lib/models/bank/allocation-group.d.ts.map +1 -0
- package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
- package/lib/models/bank/bank-account-property.d.ts.map +1 -0
- package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
- package/lib/models/bank/bank-account.d.ts.map +1 -0
- package/lib/models/bank/bank-connection.d.ts.map +1 -0
- package/lib/models/bank/bank-external-stats.d.ts.map +1 -0
- package/lib/models/bank/bank-login-data.d.ts.map +1 -0
- package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
- package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
- package/lib/models/bank/bank-transaction.d.ts.map +1 -0
- package/lib/models/bank/bank.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-job-response.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-job-step.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-job.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-token.d.ts.map +1 -0
- package/lib/models/bank/basiq/index.d.ts.map +1 -0
- package/lib/models/bank/index.d.ts.map +1 -0
- package/lib/models/bank/type-loan.const.d.ts.map +1 -0
- package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
- package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
- package/lib/models/borrowing-expense/index.d.ts.map +1 -0
- package/lib/models/chart/chart-data.d.ts.map +1 -0
- package/lib/models/chart/chart-serie.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts +8 -0
- package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts.d.ts +4 -2
- package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
- package/lib/models/chart-accounts/index.d.ts +1 -1
- package/lib/models/chart-accounts/index.d.ts.map +1 -0
- package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
- package/lib/models/chat/chat.d.ts.map +1 -0
- package/lib/models/chat/index.d.ts.map +1 -0
- package/lib/models/chat/message-document.d.ts.map +1 -0
- package/lib/models/chat/message.d.ts.map +1 -0
- package/lib/models/client/client-income-types.d.ts.map +1 -0
- package/lib/models/client/client-invite.d.ts.map +1 -0
- package/lib/models/client/client-movement.d.ts.map +1 -0
- package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
- package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
- package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-receipt.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation.d.ts.map +1 -0
- package/lib/models/depreciation/index.d.ts.map +1 -0
- package/lib/models/dictionary/dictionary.d.ts.map +1 -0
- package/lib/models/dictionary/index.d.ts.map +1 -0
- package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
- package/lib/models/document/document-file-types.const.d.ts.map +1 -0
- package/lib/models/document/document-folder.d.ts.map +1 -0
- package/lib/models/document/document.d.ts.map +1 -0
- package/lib/models/document/index.d.ts.map +1 -0
- package/lib/models/employee/employee-invite.d.ts.map +1 -0
- package/lib/models/endpoint/endpoint.d.ts.map +1 -0
- package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
- package/lib/models/event/index.d.ts.map +1 -0
- package/lib/models/export/export-format.enum.d.ts.map +1 -0
- package/lib/models/export/export-row-data-type.enum.d.ts.map +1 -0
- package/lib/models/export/export-row.d.ts.map +1 -0
- package/lib/models/file/file.d.ts.map +1 -0
- package/lib/models/file/icons-file.enum.d.ts.map +1 -0
- package/lib/models/file/index.d.ts.map +1 -0
- package/lib/models/financial-year/financial-year.d.ts.map +1 -0
- package/lib/models/financial-year/index.d.ts.map +1 -0
- package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
- package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
- package/lib/models/financial-year/months.const.d.ts.map +1 -0
- package/lib/models/income-position/income-position.d.ts.map +1 -0
- package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
- package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
- package/lib/models/income-source/income-source-type.d.ts.map +1 -0
- package/lib/models/income-source/income-source.d.ts.map +1 -0
- package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
- package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/loan/index.d.ts.map +1 -0
- package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
- package/lib/models/loan/loan.d.ts.map +1 -0
- package/lib/models/notification/index.d.ts.map +1 -0
- package/lib/models/notification/notification.d.ts.map +1 -0
- package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
- package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
- package/lib/models/property/calculation-form-item.d.ts.map +1 -0
- package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
- package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
- package/lib/models/property/index.d.ts.map +1 -0
- package/lib/models/property/property-category-movement.d.ts.map +1 -0
- package/lib/models/property/property-category.d.ts.map +1 -0
- package/lib/models/property/property-document.d.ts.map +1 -0
- package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
- package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
- package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
- package/lib/models/property/property-forecast.d.ts.map +1 -0
- package/lib/models/property/property-sale/index.d.ts +2 -2
- package/lib/models/property/property-sale/index.d.ts.map +1 -0
- package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
- package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts +3 -0
- package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
- package/lib/models/property/property-sale/property-sale.d.ts +2 -2
- package/lib/models/property/property-sale/property-sale.d.ts.map +1 -0
- package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts +3 -0
- package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
- package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
- package/lib/models/property/property-share.d.ts.map +1 -0
- package/lib/models/property/property-subscription.d.ts.map +1 -0
- package/lib/models/property/property-valuation.d.ts.map +1 -0
- package/lib/models/property/property.d.ts.map +1 -0
- package/lib/models/property/share-filter-options.enum.d.ts.map +1 -0
- package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
- package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +1 -0
- package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +1 -0
- package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +1 -0
- package/lib/models/report/depreciation/index.d.ts.map +1 -0
- package/lib/models/report/index.d.ts.map +1 -0
- package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
- package/lib/models/report/my-tax/index.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
- package/lib/models/report/property/index.d.ts.map +1 -0
- package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
- package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
- package/lib/models/report/property/property-report-item.d.ts.map +1 -0
- package/lib/models/report/sole/index.d.ts.map +1 -0
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
- package/lib/models/service-subscription/index.d.ts.map +1 -0
- package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
- package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +1 -0
- package/lib/models/service-subscription/service-payment-method.d.ts.map +1 -0
- package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
- package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
- package/lib/models/service-subscription/stripe-promo-code.d.ts.map +1 -0
- package/lib/models/sole/bas-report.d.ts.map +1 -0
- package/lib/models/sole/index.d.ts.map +1 -0
- package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
- package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
- package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
- package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
- package/lib/models/sole/sole-business.d.ts.map +1 -0
- package/lib/models/sole/sole-contact.d.ts.map +1 -0
- package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
- package/lib/models/sole/sole-details.d.ts.map +1 -0
- package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
- package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
- package/lib/models/sole/sole-invoice.d.ts.map +1 -0
- package/lib/models/tax-review/tax-review.d.ts.map +1 -0
- package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
- package/lib/models/tax-summary/report-item.d.ts.map +1 -0
- package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
- package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
- package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
- package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
- package/lib/models/toast/toast.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule-condition.d.ts +7 -0
- package/lib/models/transaction/allocation-rule-condition.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts +3 -0
- package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule-transaction.d.ts +21 -0
- package/lib/models/transaction/allocation-rule-transaction.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule.d.ts +42 -0
- package/lib/models/transaction/allocation-rule.d.ts.map +1 -0
- package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
- package/lib/models/transaction/index.d.ts +4 -1
- package/lib/models/transaction/index.d.ts.map +1 -0
- package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
- package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
- package/lib/models/transaction/transaction-meta-field.d.ts +5 -0
- package/lib/models/transaction/transaction-meta-field.d.ts.map +1 -0
- package/lib/models/transaction/transaction-receipt.d.ts.map +1 -0
- package/lib/models/transaction/transaction.d.ts +6 -6
- package/lib/models/transaction/transaction.d.ts.map +1 -0
- package/lib/models/user/index.d.ts.map +1 -0
- package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
- package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
- package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
- package/lib/models/user/my-account-history.d.ts.map +1 -0
- package/lib/models/user/occupation.d.ts.map +1 -0
- package/lib/models/user/user-roles.const.d.ts.map +1 -0
- package/lib/models/user/user-to-register.d.ts.map +1 -0
- package/lib/models/user/user.d.ts.map +1 -0
- package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
- package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
- package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
- package/lib/models/user-event/user-event-type.d.ts.map +1 -0
- package/lib/models/vehicle/index.d.ts.map +1 -0
- package/lib/models/vehicle/logbook-period.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle.d.ts.map +1 -0
- package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
- package/lib/services/account-setup/index.d.ts.map +1 -0
- package/lib/services/affiliate/index.d.ts.map +1 -0
- package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
- package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
- package/lib/services/asset/assets.service.d.ts.map +1 -0
- package/lib/services/asset/index.d.ts.map +1 -0
- package/lib/services/auth/auth.service.d.ts.map +1 -0
- package/lib/services/auth/index.d.ts.map +1 -0
- package/lib/services/auth/jwt.service.d.ts.map +1 -0
- package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
- package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
- package/lib/services/bank/index.d.ts.map +1 -0
- package/lib/services/export/export-formatter.service.d.ts.map +1 -0
- package/lib/services/export/index.d.ts.map +1 -0
- package/lib/services/header-title/header-title.service.d.ts.map +1 -0
- package/lib/services/header-title/index.d.ts.map +1 -0
- package/lib/services/http/address/address.service.d.ts.map +1 -0
- package/lib/services/http/address/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
- package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +1 -0
- package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
- package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank.service.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/basiq.service.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
- package/lib/services/http/bank/index.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
- package/lib/services/http/chat/chat.service.d.ts.map +1 -0
- package/lib/services/http/chat/index.d.ts.map +1 -0
- package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
- package/lib/services/http/chat/message.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/index.d.ts.map +1 -0
- package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
- package/lib/services/http/document/document.service.d.ts.map +1 -0
- package/lib/services/http/document/index.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
- package/lib/services/http/facebook/index.d.ts.map +1 -0
- package/lib/services/http/file/file.service.d.ts.map +1 -0
- package/lib/services/http/file/index.d.ts.map +1 -0
- package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
- package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
- package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
- package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
- package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
- package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
- package/lib/services/http/firm/employee/index.d.ts.map +1 -0
- package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
- package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
- package/lib/services/http/firm/firm.service.d.ts.map +1 -0
- package/lib/services/http/firm/index.d.ts.map +1 -0
- package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
- package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
- package/lib/services/http/google/google.service.d.ts.map +1 -0
- package/lib/services/http/google/index.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
- package/lib/services/http/income-source/index.d.ts.map +1 -0
- package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
- package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
- package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
- package/lib/services/http/index.d.ts.map +1 -0
- package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
- package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
- package/lib/services/http/loan/index.d.ts.map +1 -0
- package/lib/services/http/loan/loan.service.d.ts.map +1 -0
- package/lib/services/http/property/index.d.ts.map +1 -0
- package/lib/services/http/property/property-category/index.d.ts.map +1 -0
- package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
- package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
- package/lib/services/http/property/property-document/index.d.ts.map +1 -0
- package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
- package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
- package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
- package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +1 -0
- package/lib/services/http/property/property-share/index.d.ts.map +1 -0
- package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
- package/lib/services/http/property/property.service.d.ts.map +1 -0
- package/lib/services/http/receipt/index.d.ts.map +1 -0
- package/lib/services/http/receipt/receipt.service.d.ts.map +1 -0
- package/lib/services/http/rest/http-method.type.d.ts.map +1 -0
- package/lib/services/http/rest/index.d.ts.map +1 -0
- package/lib/services/http/rest/rest-method.type.d.ts.map +1 -0
- package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
- package/lib/services/http/rest/rest.service.d.ts.map +1 -0
- package/lib/services/http/service-notification/index.d.ts.map +1 -0
- package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
- package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
- package/lib/services/http/sole/index.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
- package/lib/services/http/subscription/index.d.ts.map +1 -0
- package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
- package/lib/services/http/tax-review/index.d.ts.map +1 -0
- package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
- package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
- package/lib/services/http/tax-summary/index.d.ts.map +1 -0
- package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
- package/lib/services/http/transaction/index.d.ts +1 -0
- package/lib/services/http/transaction/index.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +13 -0
- package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/video-source.interface.d.ts +1 -1
- package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
- package/lib/services/http/user/index.d.ts.map +1 -0
- package/lib/services/http/user/occupation/occupation.service.d.ts.map +1 -0
- package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
- package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
- package/lib/services/http/user/user.service.d.ts.map +1 -0
- package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/index.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/intercom/index.d.ts.map +1 -0
- package/lib/services/intercom/intercom.service.d.ts.map +1 -0
- package/lib/services/pdf/index.d.ts.map +1 -0
- package/lib/services/pdf/js-pdf.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
- package/lib/services/preloader/index.d.ts.map +1 -0
- package/lib/services/preloader/preloader.service.d.ts.map +1 -0
- package/lib/services/property/corelogic/index.d.ts.map +1 -0
- package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
- package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
- package/lib/services/property/index.d.ts.map +1 -0
- package/lib/services/property/property-calculation/index.d.ts.map +1 -0
- package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
- package/lib/services/report/index.d.ts.map +1 -0
- package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
- package/lib/services/toast/index.d.ts.map +1 -0
- package/lib/services/toast/toast.service.d.ts.map +1 -0
- package/lib/services/transaction/index.d.ts.map +1 -0
- package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
- package/lib/services/user/index.d.ts.map +1 -0
- package/lib/services/user/user-switcher.service.d.ts.map +1 -0
- package/lib/services/vehicle/index.d.ts.map +1 -0
- package/lib/services/vehicle/logbook-best-period.service.d.ts.map +1 -0
- package/lib/services/xlsx/index.d.ts.map +1 -0
- package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
- package/lib/tt-core.module.d.ts.map +1 -0
- package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
- package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
- package/lib/validators/at-least-one.validator.d.ts.map +1 -0
- package/lib/validators/autocomplete.validator.d.ts.map +1 -0
- package/lib/validators/conditional.validator.d.ts.map +1 -0
- package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
- package/lib/validators/date-range.validator.d.ts.map +1 -0
- package/lib/validators/fields-sum.validator.d.ts.map +1 -0
- package/lib/validators/file.validator.d.ts.map +1 -0
- package/lib/validators/index.d.ts.map +1 -0
- package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
- package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
- package/lib/validators/password-match.validator.d.ts.map +1 -0
- package/lib/validators/password.validator.d.ts.map +1 -0
- package/lib/validators/phone-number.validator.d.ts.map +1 -0
- package/lib/validators/required-length.validator.d.ts.map +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -4
- package/public-api.d.ts.map +1 -0
- package/taxtank-core.d.ts.map +1 -0
- package/esm2020/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.mjs +0 -17
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-metadata-list.enum.mjs +0 -19
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.mjs +0 -6
- package/esm2020/lib/db/Enums/property/property-sale/tax-exemption-metadata.enum.mjs +0 -9
- package/esm2020/lib/db/Models/bank/bank-transaction-rule.mjs +0 -4
- package/esm2020/lib/db/Models/chart-accounts/chart-accounts-metadata.mjs +0 -4
- package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.mjs +0 -4
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption-metadata.mjs +0 -4
- package/esm2020/lib/db/Models/transaction/transaction-metadata.mjs +0 -4
- package/esm2020/lib/models/chart-accounts/chart-accounts-metadata.mjs +0 -14
- package/esm2020/lib/models/property/property-sale/property-sale-tax-exemption-metadata.mjs +0 -4
- package/esm2020/lib/models/property/property-sale/tax-exemption-metadata.mjs +0 -4
- package/esm2020/lib/models/transaction/transaction-metadata.mjs +0 -10
- package/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.d.ts +0 -8
- package/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.d.ts +0 -4
- package/lib/db/Models/bank/bank-transaction-rule.d.ts +0 -26
- package/lib/db/Models/chart-accounts/chart-accounts-metadata.d.ts +0 -11
- package/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +0 -9
- package/lib/models/chart-accounts/chart-accounts-metadata.d.ts +0 -8
- package/lib/models/property/property-sale/property-sale-tax-exemption-metadata.d.ts +0 -3
- package/lib/models/property/property-sale/tax-exemption-metadata.d.ts +0 -3
- package/lib/models/transaction/transaction-metadata.d.ts +0 -5
|
@@ -321,9 +321,6 @@ let BankConnection$1 = class BankConnection extends ObservableModel {
|
|
|
321
321
|
class BankTransactionImport extends AbstractModel {
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
class BankTransactionRule extends AbstractModel {
|
|
325
|
-
}
|
|
326
|
-
|
|
327
324
|
let BankTransaction$1 = class BankTransaction extends ObservableModel {
|
|
328
325
|
};
|
|
329
326
|
|
|
@@ -339,7 +336,7 @@ let ChartAccountsDepreciation$1 = class ChartAccountsDepreciation extends Abstra
|
|
|
339
336
|
let ChartAccountsHeading$1 = class ChartAccountsHeading extends AbstractModel {
|
|
340
337
|
};
|
|
341
338
|
|
|
342
|
-
let
|
|
339
|
+
let ChartAccountsMetaField$1 = class ChartAccountsMetaField extends AbstractModel {
|
|
343
340
|
};
|
|
344
341
|
|
|
345
342
|
let ChartAccountsValue$1 = class ChartAccountsValue extends AbstractModel {
|
|
@@ -526,13 +523,13 @@ let LoanPayout$1 = class LoanPayout extends ObservableModel {
|
|
|
526
523
|
let Loan$1 = class Loan extends ObservableModel {
|
|
527
524
|
};
|
|
528
525
|
|
|
529
|
-
let
|
|
526
|
+
let PropertySaleTaxExemptionMetaField$1 = class PropertySaleTaxExemptionMetaField extends AbstractModel {
|
|
530
527
|
};
|
|
531
528
|
|
|
532
529
|
let PropertySale$1 = class PropertySale extends ObservableModel {
|
|
533
530
|
};
|
|
534
531
|
|
|
535
|
-
let
|
|
532
|
+
let TaxExemptionMetaField$1 = class TaxExemptionMetaField extends AbstractModel {
|
|
536
533
|
};
|
|
537
534
|
|
|
538
535
|
let TaxExemption$1 = class TaxExemption extends AbstractModel {
|
|
@@ -628,7 +625,7 @@ class TaxReturn extends AbstractModel {
|
|
|
628
625
|
let TransactionAllocation$1 = class TransactionAllocation extends AbstractModel {
|
|
629
626
|
};
|
|
630
627
|
|
|
631
|
-
let
|
|
628
|
+
let TransactionMetaField$1 = class TransactionMetaField extends AbstractModel {
|
|
632
629
|
};
|
|
633
630
|
|
|
634
631
|
let TransactionReceipt$1 = class TransactionReceipt extends AbstractModel {
|
|
@@ -1606,27 +1603,27 @@ class PropertySaleCollection extends Collection {
|
|
|
1606
1603
|
}
|
|
1607
1604
|
}
|
|
1608
1605
|
|
|
1609
|
-
var
|
|
1610
|
-
(function (
|
|
1606
|
+
var TaxExemptionMetaFieldEnum;
|
|
1607
|
+
(function (TaxExemptionMetaFieldEnum) {
|
|
1611
1608
|
// principle place of residence
|
|
1612
|
-
|
|
1609
|
+
TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["PPR_DAYS"] = 1] = "PPR_DAYS";
|
|
1613
1610
|
// market value once it was moved, decimal
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
})(
|
|
1611
|
+
TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["MARKET_VALUE"] = 2] = "MARKET_VALUE";
|
|
1612
|
+
TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["CLAIM_PERCENT"] = 3] = "CLAIM_PERCENT";
|
|
1613
|
+
})(TaxExemptionMetaFieldEnum || (TaxExemptionMetaFieldEnum = {}));
|
|
1617
1614
|
|
|
1618
|
-
class
|
|
1615
|
+
class PropertySaleTaxExemptionMetaFieldCollection extends Collection {
|
|
1619
1616
|
getPPRDays() {
|
|
1620
|
-
return this.
|
|
1617
|
+
return this.getByMetaFieldId(TaxExemptionMetaFieldEnum.PPR_DAYS)?.value ?? 0;
|
|
1621
1618
|
}
|
|
1622
1619
|
getMarketValue() {
|
|
1623
|
-
return this.
|
|
1620
|
+
return this.getByMetaFieldId(TaxExemptionMetaFieldEnum.MARKET_VALUE)?.value ?? 0;
|
|
1624
1621
|
}
|
|
1625
1622
|
getClaimPercent() {
|
|
1626
|
-
return this.
|
|
1623
|
+
return this.getByMetaFieldId(TaxExemptionMetaFieldEnum.CLAIM_PERCENT)?.value ?? 100;
|
|
1627
1624
|
}
|
|
1628
|
-
|
|
1629
|
-
return this.items.find((
|
|
1625
|
+
getByMetaFieldId(id) {
|
|
1626
|
+
return this.items.find((metaField) => metaField.metaField.id === id);
|
|
1630
1627
|
}
|
|
1631
1628
|
}
|
|
1632
1629
|
|
|
@@ -1807,10 +1804,33 @@ var DepreciationCalculationEnum;
|
|
|
1807
1804
|
DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
|
|
1808
1805
|
})(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
|
|
1809
1806
|
|
|
1810
|
-
var
|
|
1811
|
-
(function (
|
|
1812
|
-
|
|
1813
|
-
|
|
1807
|
+
var AllocationRuleConditionComparisonOperatorEnum;
|
|
1808
|
+
(function (AllocationRuleConditionComparisonOperatorEnum) {
|
|
1809
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS"] = 1] = "EQUALS";
|
|
1810
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["CONTAINS"] = 2] = "CONTAINS";
|
|
1811
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["STARTS"] = 3] = "STARTS";
|
|
1812
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS_OR_GREATER"] = 4] = "EQUALS_OR_GREATER";
|
|
1813
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS_OR_LESS"] = 5] = "EQUALS_OR_LESS";
|
|
1814
|
+
})(AllocationRuleConditionComparisonOperatorEnum || (AllocationRuleConditionComparisonOperatorEnum = {}));
|
|
1815
|
+
|
|
1816
|
+
var AllocationRuleConditionFieldEnum;
|
|
1817
|
+
(function (AllocationRuleConditionFieldEnum) {
|
|
1818
|
+
AllocationRuleConditionFieldEnum[AllocationRuleConditionFieldEnum["AMOUNT"] = 1] = "AMOUNT";
|
|
1819
|
+
AllocationRuleConditionFieldEnum[AllocationRuleConditionFieldEnum["DESCRIPTION"] = 2] = "DESCRIPTION";
|
|
1820
|
+
})(AllocationRuleConditionFieldEnum || (AllocationRuleConditionFieldEnum = {}));
|
|
1821
|
+
|
|
1822
|
+
var AllocationRuleConditionOperatorEnum;
|
|
1823
|
+
(function (AllocationRuleConditionOperatorEnum) {
|
|
1824
|
+
AllocationRuleConditionOperatorEnum[AllocationRuleConditionOperatorEnum["AND"] = 1] = "AND";
|
|
1825
|
+
AllocationRuleConditionOperatorEnum[AllocationRuleConditionOperatorEnum["OR"] = 2] = "OR";
|
|
1826
|
+
})(AllocationRuleConditionOperatorEnum || (AllocationRuleConditionOperatorEnum = {}));
|
|
1827
|
+
|
|
1828
|
+
var AllocationRuleTypeEnum;
|
|
1829
|
+
(function (AllocationRuleTypeEnum) {
|
|
1830
|
+
AllocationRuleTypeEnum[AllocationRuleTypeEnum["EXPENSE"] = 1] = "EXPENSE";
|
|
1831
|
+
AllocationRuleTypeEnum[AllocationRuleTypeEnum["INCOME"] = 2] = "INCOME";
|
|
1832
|
+
AllocationRuleTypeEnum[AllocationRuleTypeEnum["TRANSFER"] = 3] = "TRANSFER";
|
|
1833
|
+
})(AllocationRuleTypeEnum || (AllocationRuleTypeEnum = {}));
|
|
1814
1834
|
|
|
1815
1835
|
var AnnualFrequencyEnum;
|
|
1816
1836
|
(function (AnnualFrequencyEnum) {
|
|
@@ -2016,30 +2036,30 @@ var ChartAccountsListEnum;
|
|
|
2016
2036
|
ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
|
|
2017
2037
|
})(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
|
|
2018
2038
|
|
|
2019
|
-
var
|
|
2020
|
-
(function (
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
})(
|
|
2037
|
-
|
|
2038
|
-
var
|
|
2039
|
-
(function (
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
})(
|
|
2039
|
+
var ChartAccountsMetaFieldListEnum;
|
|
2040
|
+
(function (ChartAccountsMetaFieldListEnum) {
|
|
2041
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
|
|
2042
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
|
|
2043
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
|
|
2044
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
|
|
2045
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
|
|
2046
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["HOURS"] = 11] = "HOURS";
|
|
2047
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_PAID"] = 13] = "TAX_PAID";
|
|
2048
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
|
|
2049
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
|
|
2050
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
|
|
2051
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
|
|
2052
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["FRANKED"] = 26] = "FRANKED";
|
|
2053
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["UNFRANKED"] = 27] = "UNFRANKED";
|
|
2054
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
|
|
2055
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
|
|
2056
|
+
})(ChartAccountsMetaFieldListEnum || (ChartAccountsMetaFieldListEnum = {}));
|
|
2057
|
+
|
|
2058
|
+
var ChartAccountsMetaFieldTypeEnum;
|
|
2059
|
+
(function (ChartAccountsMetaFieldTypeEnum) {
|
|
2060
|
+
ChartAccountsMetaFieldTypeEnum[ChartAccountsMetaFieldTypeEnum["NUMBER"] = 3] = "NUMBER";
|
|
2061
|
+
ChartAccountsMetaFieldTypeEnum[ChartAccountsMetaFieldTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
|
|
2062
|
+
})(ChartAccountsMetaFieldTypeEnum || (ChartAccountsMetaFieldTypeEnum = {}));
|
|
2043
2063
|
|
|
2044
2064
|
var ChartAccountsSalaryAdjustmentsListEnum;
|
|
2045
2065
|
(function (ChartAccountsSalaryAdjustmentsListEnum) {
|
|
@@ -2088,6 +2108,11 @@ var ChartAccountsKeepSign;
|
|
|
2088
2108
|
ChartAccountsKeepSign[ChartAccountsKeepSign["ADVANCE"] = 556] = "ADVANCE";
|
|
2089
2109
|
})(ChartAccountsKeepSign || (ChartAccountsKeepSign = {}));
|
|
2090
2110
|
|
|
2111
|
+
var DocumentTypeEnum;
|
|
2112
|
+
(function (DocumentTypeEnum) {
|
|
2113
|
+
DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
|
|
2114
|
+
})(DocumentTypeEnum || (DocumentTypeEnum = {}));
|
|
2115
|
+
|
|
2091
2116
|
// @TODO Artem TT-2308 move everything
|
|
2092
2117
|
|
|
2093
2118
|
class DepreciationCapitalProject extends DepreciationCapitalProject$1 {
|
|
@@ -2279,15 +2304,15 @@ class ChartAccountsCategoryECollection {
|
|
|
2279
2304
|
class ChartAccountsHeading extends ChartAccountsHeading$1 {
|
|
2280
2305
|
}
|
|
2281
2306
|
|
|
2282
|
-
class
|
|
2307
|
+
class ChartAccountsMetaField extends ChartAccountsMetaField$1 {
|
|
2283
2308
|
/**
|
|
2284
|
-
* Check if
|
|
2309
|
+
* Check if meta field id is related to SHARE_PERCENTAGE value
|
|
2285
2310
|
*/
|
|
2286
2311
|
isSharePercentage() {
|
|
2287
|
-
return this.id ===
|
|
2312
|
+
return this.id === ChartAccountsMetaFieldListEnum.SHARE_PERCENTAGE;
|
|
2288
2313
|
}
|
|
2289
2314
|
isHours() {
|
|
2290
|
-
return this.id ===
|
|
2315
|
+
return this.id === ChartAccountsMetaFieldListEnum.HOURS;
|
|
2291
2316
|
}
|
|
2292
2317
|
}
|
|
2293
2318
|
|
|
@@ -2996,6 +3021,12 @@ class ChartAccounts extends ChartAccounts$1 {
|
|
|
2996
3021
|
isPropertyCapitalWorks() {
|
|
2997
3022
|
return this.category === ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS;
|
|
2998
3023
|
}
|
|
3024
|
+
isTaxable() {
|
|
3025
|
+
return !this.isNRAS() && this.isWorkIncome();
|
|
3026
|
+
}
|
|
3027
|
+
isTransfer() {
|
|
3028
|
+
return this.id === ChartAccountsListEnum.TRANSFER;
|
|
3029
|
+
}
|
|
2999
3030
|
}
|
|
3000
3031
|
/**
|
|
3001
3032
|
* Australian GST percent value (VAT)
|
|
@@ -3007,8 +3038,8 @@ __decorate([
|
|
|
3007
3038
|
Type(() => ChartAccountsHeading)
|
|
3008
3039
|
], ChartAccounts.prototype, "heading", void 0);
|
|
3009
3040
|
__decorate([
|
|
3010
|
-
Type(() =>
|
|
3011
|
-
], ChartAccounts.prototype, "
|
|
3041
|
+
Type(() => ChartAccountsMetaField)
|
|
3042
|
+
], ChartAccounts.prototype, "metaFields", void 0);
|
|
3012
3043
|
__decorate([
|
|
3013
3044
|
Type(() => ChartAccountsValue),
|
|
3014
3045
|
Transform(({ obj }) => CHART_ACCOUNTS_VALUES.get(obj.id).toArray(), { toClassOnly: true }),
|
|
@@ -3028,6 +3059,439 @@ __decorate([
|
|
|
3028
3059
|
Transform(({ value }) => +value)
|
|
3029
3060
|
], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
|
|
3030
3061
|
|
|
3062
|
+
let AllocationRule$1 = class AllocationRule extends AbstractModel {
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3065
|
+
let AllocationRuleCondition$1 = class AllocationRuleCondition extends AbstractModel {
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
class AllocationRuleCondition extends AllocationRuleCondition$1 {
|
|
3069
|
+
matchBankTransaction(bankTransaction) {
|
|
3070
|
+
return this.field === AllocationRuleConditionFieldEnum.AMOUNT ? this.matchBankTransactionByAmount(bankTransaction) : this.matchBankTransactionByDescription(bankTransaction);
|
|
3071
|
+
}
|
|
3072
|
+
matchBankTransactionByAmount(bankTransaction) {
|
|
3073
|
+
// Amount should be compared as number
|
|
3074
|
+
const value = +this.value;
|
|
3075
|
+
switch (this.comparisonOperator) {
|
|
3076
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS:
|
|
3077
|
+
return bankTransaction.amount === value;
|
|
3078
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS_OR_LESS:
|
|
3079
|
+
return bankTransaction.amount <= value;
|
|
3080
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS_OR_GREATER:
|
|
3081
|
+
return bankTransaction.amount >= value;
|
|
3082
|
+
}
|
|
3083
|
+
return false;
|
|
3084
|
+
}
|
|
3085
|
+
matchBankTransactionByDescription(bankTransaction) {
|
|
3086
|
+
// Prepare value and description for comparison
|
|
3087
|
+
const description = bankTransaction.description.toLowerCase();
|
|
3088
|
+
const value = this.value.trim().toLowerCase();
|
|
3089
|
+
switch (this.comparisonOperator) {
|
|
3090
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS:
|
|
3091
|
+
return description === value;
|
|
3092
|
+
case AllocationRuleConditionComparisonOperatorEnum.CONTAINS:
|
|
3093
|
+
return description.includes(value);
|
|
3094
|
+
case AllocationRuleConditionComparisonOperatorEnum.STARTS:
|
|
3095
|
+
return description.startsWith(value);
|
|
3096
|
+
}
|
|
3097
|
+
return false;
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
let AllocationRuleTransaction$1 = class AllocationRuleTransaction extends TransactionBase {
|
|
3102
|
+
};
|
|
3103
|
+
|
|
3104
|
+
let AllocationRuleTransactionMetaField$1 = class AllocationRuleTransactionMetaField extends AbstractModel {
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
class AllocationRuleTransactionMetaField extends AllocationRuleTransactionMetaField$1 {
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
var IncomeSourceTypeEnum;
|
|
3111
|
+
(function (IncomeSourceTypeEnum) {
|
|
3112
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
3113
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
3114
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
3115
|
+
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
3116
|
+
|
|
3117
|
+
class SalaryForecast extends SalaryForecast$1 {
|
|
3118
|
+
get taxWithheld() {
|
|
3119
|
+
return this.grossAmount - this.netPay;
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
__decorate([
|
|
3123
|
+
Transform(({ obj }) => obj.netPay + obj.tax),
|
|
3124
|
+
Expose()
|
|
3125
|
+
], SalaryForecast.prototype, "grossAmount", void 0);
|
|
3126
|
+
__decorate([
|
|
3127
|
+
Type(() => IncomeSource)
|
|
3128
|
+
], SalaryForecast.prototype, "incomeSource", void 0);
|
|
3129
|
+
|
|
3130
|
+
class SoleForecast extends SoleForecast$1 {
|
|
3131
|
+
get netPay() {
|
|
3132
|
+
return this.amount;
|
|
3133
|
+
}
|
|
3134
|
+
;
|
|
3135
|
+
}
|
|
3136
|
+
__decorate([
|
|
3137
|
+
Type(() => IncomeSource)
|
|
3138
|
+
], SoleForecast.prototype, "incomeSource", void 0);
|
|
3139
|
+
|
|
3140
|
+
var SalaryForecastFrequencyEnum;
|
|
3141
|
+
(function (SalaryForecastFrequencyEnum) {
|
|
3142
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
|
|
3143
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
|
|
3144
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
|
|
3145
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
|
|
3146
|
+
})(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
|
|
3147
|
+
|
|
3148
|
+
var IncomeSourceTypeListWorkEnum;
|
|
3149
|
+
(function (IncomeSourceTypeListWorkEnum) {
|
|
3150
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
|
|
3151
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
|
|
3152
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
|
|
3153
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
|
|
3154
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
3155
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
|
|
3156
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
|
|
3157
|
+
})(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
|
|
3158
|
+
|
|
3159
|
+
var IncomeSourceTypeListOtherEnum;
|
|
3160
|
+
(function (IncomeSourceTypeListOtherEnum) {
|
|
3161
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
|
|
3162
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3163
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
|
|
3164
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
|
|
3165
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
|
|
3166
|
+
})(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
|
|
3167
|
+
|
|
3168
|
+
var IncomeSourceTypeListSoleEnum;
|
|
3169
|
+
(function (IncomeSourceTypeListSoleEnum) {
|
|
3170
|
+
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3171
|
+
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
3172
|
+
|
|
3173
|
+
class IncomeSourceType extends IncomeSourceType$1 {
|
|
3174
|
+
isBonuses() {
|
|
3175
|
+
return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
|
|
3176
|
+
}
|
|
3177
|
+
isWork() {
|
|
3178
|
+
return !!IncomeSourceTypeListWorkEnum[this.id];
|
|
3179
|
+
}
|
|
3180
|
+
isOther() {
|
|
3181
|
+
return !!IncomeSourceTypeListOtherEnum[this.id];
|
|
3182
|
+
}
|
|
3183
|
+
isSole() {
|
|
3184
|
+
return !!IncomeSourceTypeListSoleEnum[this.id];
|
|
3185
|
+
}
|
|
3186
|
+
get type() {
|
|
3187
|
+
switch (true) {
|
|
3188
|
+
case this.isWork():
|
|
3189
|
+
return IncomeSourceTypeEnum.WORK;
|
|
3190
|
+
case this.isSole():
|
|
3191
|
+
return IncomeSourceTypeEnum.SOLE;
|
|
3192
|
+
default:
|
|
3193
|
+
return IncomeSourceTypeEnum.OTHER;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
class IncomeSourceForecast extends IncomeSourceForecast$1 {
|
|
3199
|
+
constructor() {
|
|
3200
|
+
super(...arguments);
|
|
3201
|
+
this.paygIncome = 0;
|
|
3202
|
+
this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
|
|
3203
|
+
this.isTaxFree = false;
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* Sometimes Income source has Salary & Income source forecasts,
|
|
3207
|
+
* and we need these fields to work with Income source forecasts like with Salary Forecasts
|
|
3208
|
+
*/
|
|
3209
|
+
get netPay() {
|
|
3210
|
+
return this.amount;
|
|
3211
|
+
}
|
|
3212
|
+
get grossAmount() {
|
|
3213
|
+
return this.amount + this.tax + this.taxInstalments + this.frankingCredits;
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
__decorate([
|
|
3217
|
+
Type(() => IncomeSourceType)
|
|
3218
|
+
], IncomeSourceForecast.prototype, "incomeSourceType", void 0);
|
|
3219
|
+
__decorate([
|
|
3220
|
+
Type(() => IncomeSource)
|
|
3221
|
+
], IncomeSourceForecast.prototype, "incomeSource", void 0);
|
|
3222
|
+
|
|
3223
|
+
class IncomeSource extends IncomeSource$1 {
|
|
3224
|
+
isSalaryIncome() {
|
|
3225
|
+
return !!this.salaryForecasts.length;
|
|
3226
|
+
// @TODO Vik: old code
|
|
3227
|
+
// return this.type === IncomeSourceTypeEnum.SALARY;
|
|
3228
|
+
}
|
|
3229
|
+
isSoleIncome() {
|
|
3230
|
+
return !!this.soleForecasts.length;
|
|
3231
|
+
}
|
|
3232
|
+
isWorkIncome() {
|
|
3233
|
+
return this.type === IncomeSourceTypeEnum.WORK;
|
|
3234
|
+
}
|
|
3235
|
+
isOtherIncome() {
|
|
3236
|
+
return this.type === IncomeSourceTypeEnum.OTHER || (!this.isSoleIncome() && !this.isSalaryIncome());
|
|
3237
|
+
}
|
|
3238
|
+
/**
|
|
3239
|
+
* Get salary and other income forecasts
|
|
3240
|
+
*/
|
|
3241
|
+
get forecasts() {
|
|
3242
|
+
return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Get actual (1st from the list) forecast
|
|
3246
|
+
*/
|
|
3247
|
+
get actualForecast() {
|
|
3248
|
+
return this.forecasts[0];
|
|
3249
|
+
}
|
|
3250
|
+
/**
|
|
3251
|
+
* Check if user was working in month taken by the index
|
|
3252
|
+
* @param monthIndex by which month should be taken
|
|
3253
|
+
*/
|
|
3254
|
+
isWorkedInMonth(monthIndex) {
|
|
3255
|
+
const monthDate = new FinancialYear().getMonthDate(monthIndex);
|
|
3256
|
+
return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
__decorate([
|
|
3260
|
+
Type(() => SalaryForecast)
|
|
3261
|
+
], IncomeSource.prototype, "salaryForecasts", void 0);
|
|
3262
|
+
__decorate([
|
|
3263
|
+
Type(() => SoleForecast)
|
|
3264
|
+
], IncomeSource.prototype, "soleForecasts", void 0);
|
|
3265
|
+
__decorate([
|
|
3266
|
+
Type(() => IncomeSourceForecast)
|
|
3267
|
+
], IncomeSource.prototype, "incomeSourceForecasts", void 0);
|
|
3268
|
+
__decorate([
|
|
3269
|
+
Type(() => Date)
|
|
3270
|
+
], IncomeSource.prototype, "dateFrom", void 0);
|
|
3271
|
+
__decorate([
|
|
3272
|
+
Type(() => Date)
|
|
3273
|
+
], IncomeSource.prototype, "dateTo", void 0);
|
|
3274
|
+
|
|
3275
|
+
var TransactionSourceEnum;
|
|
3276
|
+
(function (TransactionSourceEnum) {
|
|
3277
|
+
TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
|
|
3278
|
+
TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
|
|
3279
|
+
})(TransactionSourceEnum || (TransactionSourceEnum = {}));
|
|
3280
|
+
|
|
3281
|
+
class AllocationRuleTransaction extends AllocationRuleTransaction$1 {
|
|
3282
|
+
calculateClaimPercent() {
|
|
3283
|
+
if (!this.chartAccounts) {
|
|
3284
|
+
return null;
|
|
3285
|
+
}
|
|
3286
|
+
let claimPercent = this.chartAccounts.taxablePercent;
|
|
3287
|
+
// Property claim (ownership% x shared%) for property expenses, taxable percent for others
|
|
3288
|
+
if (this.chartAccounts?.isProperty() && this.property) {
|
|
3289
|
+
if (this.chartAccounts.isPropertyExpense() && this.chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
|
|
3290
|
+
claimPercent *= this.property?.claimCoefficient;
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
return claimPercent;
|
|
3294
|
+
}
|
|
3295
|
+
/**
|
|
3296
|
+
* Create Transaction instance based on passed bank transaction and rule transaction
|
|
3297
|
+
*/
|
|
3298
|
+
toTransaction(bankTransaction) {
|
|
3299
|
+
return plainToClass(Transaction, {
|
|
3300
|
+
amount: bankTransaction.amount,
|
|
3301
|
+
description: bankTransaction.description,
|
|
3302
|
+
type: bankTransaction.type,
|
|
3303
|
+
date: bankTransaction.date,
|
|
3304
|
+
source: TransactionSourceEnum.BANK_TRANSACTION,
|
|
3305
|
+
tax: this.tax,
|
|
3306
|
+
claimPercent: this.claimPercent,
|
|
3307
|
+
isGST: this.isGST,
|
|
3308
|
+
chartAccounts: this.chartAccounts,
|
|
3309
|
+
property: this.property,
|
|
3310
|
+
loan: this.loan,
|
|
3311
|
+
incomeSource: this.incomeSource,
|
|
3312
|
+
metaFields: this.metaFields,
|
|
3313
|
+
parentTransaction: this.parentTransaction,
|
|
3314
|
+
childTransactions: this.childTransactions,
|
|
3315
|
+
business: this.business,
|
|
3316
|
+
operation: TransactionOperationEnum.ALLOCATE,
|
|
3317
|
+
allocations: [TransactionAllocation.create(bankTransaction.amount, bankTransaction)],
|
|
3318
|
+
});
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
__decorate([
|
|
3322
|
+
Type(() => ChartAccounts)
|
|
3323
|
+
// @TODO Alex: Create custom decorator for this transform
|
|
3324
|
+
,
|
|
3325
|
+
Transform(({ value }) => {
|
|
3326
|
+
return { id: value.id };
|
|
3327
|
+
}, { toPlainOnly: true })
|
|
3328
|
+
], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
|
|
3329
|
+
__decorate([
|
|
3330
|
+
Type(() => Property),
|
|
3331
|
+
Transform(({ value }) => {
|
|
3332
|
+
return value ? { id: value.id } : null;
|
|
3333
|
+
}, { toPlainOnly: true })
|
|
3334
|
+
], AllocationRuleTransaction.prototype, "property", void 0);
|
|
3335
|
+
__decorate([
|
|
3336
|
+
Type(() => Loan),
|
|
3337
|
+
Transform(({ value }) => {
|
|
3338
|
+
return value ? { id: value.id } : null;
|
|
3339
|
+
}, { toPlainOnly: true })
|
|
3340
|
+
], AllocationRuleTransaction.prototype, "loan", void 0);
|
|
3341
|
+
__decorate([
|
|
3342
|
+
Type(() => IncomeSource),
|
|
3343
|
+
Transform(({ value }) => {
|
|
3344
|
+
return value ? { id: value.id } : null;
|
|
3345
|
+
}, { toPlainOnly: true })
|
|
3346
|
+
], AllocationRuleTransaction.prototype, "incomeSource", void 0);
|
|
3347
|
+
__decorate([
|
|
3348
|
+
Type(() => SoleBusiness),
|
|
3349
|
+
Transform(({ value }) => {
|
|
3350
|
+
return value ? { id: value.id } : null;
|
|
3351
|
+
}, { toPlainOnly: true })
|
|
3352
|
+
], AllocationRuleTransaction.prototype, "business", void 0);
|
|
3353
|
+
__decorate([
|
|
3354
|
+
Type(() => AllocationRuleTransactionMetaField)
|
|
3355
|
+
], AllocationRuleTransaction.prototype, "metaFields", void 0);
|
|
3356
|
+
__decorate([
|
|
3357
|
+
Type(() => AllocationRuleTransaction)
|
|
3358
|
+
], AllocationRuleTransaction.prototype, "parentTransaction", void 0);
|
|
3359
|
+
__decorate([
|
|
3360
|
+
Type(() => AllocationRuleTransaction)
|
|
3361
|
+
], AllocationRuleTransaction.prototype, "childTransactions", void 0);
|
|
3362
|
+
__decorate([
|
|
3363
|
+
Type(() => Number)
|
|
3364
|
+
], AllocationRuleTransaction.prototype, "claimPercent", void 0);
|
|
3365
|
+
|
|
3366
|
+
class AllocationRule extends AllocationRule$1 {
|
|
3367
|
+
constructor() {
|
|
3368
|
+
super(...arguments);
|
|
3369
|
+
this.type = AllocationRuleTypeEnum.EXPENSE;
|
|
3370
|
+
this.conditionOperator = AllocationRuleConditionOperatorEnum.OR;
|
|
3371
|
+
}
|
|
3372
|
+
get typeLabel() {
|
|
3373
|
+
switch (this.type) {
|
|
3374
|
+
case AllocationRuleTypeEnum.EXPENSE:
|
|
3375
|
+
return 'expense';
|
|
3376
|
+
case AllocationRuleTypeEnum.INCOME:
|
|
3377
|
+
return 'income';
|
|
3378
|
+
default:
|
|
3379
|
+
return 'transfer';
|
|
3380
|
+
}
|
|
3381
|
+
}
|
|
3382
|
+
get tankTypeLabel() {
|
|
3383
|
+
switch (this.transaction.tankType) {
|
|
3384
|
+
case TankTypeEnum.WORK:
|
|
3385
|
+
return 'work';
|
|
3386
|
+
case TankTypeEnum.PROPERTY:
|
|
3387
|
+
return 'property';
|
|
3388
|
+
case TankTypeEnum.SOLE:
|
|
3389
|
+
return 'sole';
|
|
3390
|
+
default:
|
|
3391
|
+
return 'personal';
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
isIncome() {
|
|
3395
|
+
return this.type === AllocationRuleTypeEnum.INCOME;
|
|
3396
|
+
}
|
|
3397
|
+
isExpense() {
|
|
3398
|
+
return this.type === AllocationRuleTypeEnum.EXPENSE;
|
|
3399
|
+
}
|
|
3400
|
+
isTransfer() {
|
|
3401
|
+
return this.type === AllocationRuleTypeEnum.TRANSFER;
|
|
3402
|
+
}
|
|
3403
|
+
isPropertyTank() {
|
|
3404
|
+
return this.transaction.tankType === TankTypeEnum.PROPERTY;
|
|
3405
|
+
}
|
|
3406
|
+
isWorkTank() {
|
|
3407
|
+
return this.transaction.tankType === TankTypeEnum.WORK;
|
|
3408
|
+
}
|
|
3409
|
+
isSoleTank() {
|
|
3410
|
+
return this.transaction.tankType === TankTypeEnum.SOLE;
|
|
3411
|
+
}
|
|
3412
|
+
isPropertyIncome() {
|
|
3413
|
+
return this.isIncome() && this.isPropertyTank();
|
|
3414
|
+
}
|
|
3415
|
+
isWorkIncome() {
|
|
3416
|
+
return this.isIncome() && this.isWorkTank();
|
|
3417
|
+
}
|
|
3418
|
+
isSoleIncome() {
|
|
3419
|
+
return this.isIncome() && this.isSoleTank();
|
|
3420
|
+
}
|
|
3421
|
+
/**
|
|
3422
|
+
* @TODO Alex: move to collection
|
|
3423
|
+
*/
|
|
3424
|
+
matchBankTransaction(bankTransaction) {
|
|
3425
|
+
return this.conditionOperator === AllocationRuleConditionOperatorEnum.AND ? this.checkAnd(bankTransaction) : this.checkOr(bankTransaction);
|
|
3426
|
+
}
|
|
3427
|
+
createTransaction(bankTransaction) {
|
|
3428
|
+
if (this.isTransfer()) {
|
|
3429
|
+
const transaction = bankTransaction.toTransaction();
|
|
3430
|
+
transaction.operation = TransactionOperationEnum.TRANSFER;
|
|
3431
|
+
transaction.chartAccounts = plainToClass(ChartAccounts, { id: ChartAccountsListEnum.TRANSFER });
|
|
3432
|
+
return transaction;
|
|
3433
|
+
}
|
|
3434
|
+
return this.transaction.toTransaction(bankTransaction);
|
|
3435
|
+
}
|
|
3436
|
+
/**
|
|
3437
|
+
* Rule is matched when all conditions matched
|
|
3438
|
+
*/
|
|
3439
|
+
checkAnd(bankTransaction) {
|
|
3440
|
+
for (let condition of this.conditions) {
|
|
3441
|
+
if (!condition.matchBankTransaction(bankTransaction)) {
|
|
3442
|
+
return false;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
return true;
|
|
3446
|
+
}
|
|
3447
|
+
/**
|
|
3448
|
+
* Rule is matched when at least one condition matched
|
|
3449
|
+
*/
|
|
3450
|
+
checkOr(bankTransaction) {
|
|
3451
|
+
for (let condition of this.conditions) {
|
|
3452
|
+
if (condition.matchBankTransaction(bankTransaction)) {
|
|
3453
|
+
return true;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
return false;
|
|
3457
|
+
}
|
|
3458
|
+
/**
|
|
3459
|
+
* Create allocation rule based on bank transaction (just prefill rule fields with bank transaction values)
|
|
3460
|
+
*/
|
|
3461
|
+
static fromBankTransaction(bankTransaction) {
|
|
3462
|
+
return plainToClass(AllocationRule, {
|
|
3463
|
+
type: bankTransaction.isDebit() ? AllocationRuleTypeEnum.EXPENSE : AllocationRuleTypeEnum.INCOME,
|
|
3464
|
+
bankAccount: bankTransaction.bankAccount,
|
|
3465
|
+
conditionOperator: AllocationRuleConditionOperatorEnum.AND,
|
|
3466
|
+
conditions: [
|
|
3467
|
+
plainToClass(AllocationRuleCondition, {
|
|
3468
|
+
field: AllocationRuleConditionFieldEnum.AMOUNT,
|
|
3469
|
+
comparisonOperator: AllocationRuleConditionComparisonOperatorEnum.EQUALS,
|
|
3470
|
+
value: bankTransaction.amount
|
|
3471
|
+
}),
|
|
3472
|
+
plainToClass(AllocationRuleCondition, {
|
|
3473
|
+
field: AllocationRuleConditionFieldEnum.DESCRIPTION,
|
|
3474
|
+
comparisonOperator: AllocationRuleConditionComparisonOperatorEnum.EQUALS,
|
|
3475
|
+
value: bankTransaction.description
|
|
3476
|
+
})
|
|
3477
|
+
]
|
|
3478
|
+
});
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
__decorate([
|
|
3482
|
+
Type(() => BankAccount),
|
|
3483
|
+
Transform(({ value }) => { return { id: value.id }; }, { toPlainOnly: true })
|
|
3484
|
+
], AllocationRule.prototype, "bankAccount", void 0);
|
|
3485
|
+
__decorate([
|
|
3486
|
+
Type(() => AllocationRuleCondition)
|
|
3487
|
+
], AllocationRule.prototype, "conditions", void 0);
|
|
3488
|
+
__decorate([
|
|
3489
|
+
Type(() => AllocationRuleTransaction)
|
|
3490
|
+
], AllocationRule.prototype, "transaction", void 0);
|
|
3491
|
+
__decorate([
|
|
3492
|
+
Type(() => BankAccount)
|
|
3493
|
+
], AllocationRule.prototype, "transferBankAccount", void 0);
|
|
3494
|
+
|
|
3031
3495
|
/**
|
|
3032
3496
|
* Enum with income amount types (Net or Gross)
|
|
3033
3497
|
*/
|
|
@@ -3043,12 +3507,6 @@ var TransactionTypeEnum;
|
|
|
3043
3507
|
TransactionTypeEnum[TransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
|
|
3044
3508
|
})(TransactionTypeEnum || (TransactionTypeEnum = {}));
|
|
3045
3509
|
|
|
3046
|
-
var TransactionSourceEnum;
|
|
3047
|
-
(function (TransactionSourceEnum) {
|
|
3048
|
-
TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
|
|
3049
|
-
TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
|
|
3050
|
-
})(TransactionSourceEnum || (TransactionSourceEnum = {}));
|
|
3051
|
-
|
|
3052
3510
|
var TaxExemptionEnum;
|
|
3053
3511
|
(function (TaxExemptionEnum) {
|
|
3054
3512
|
TaxExemptionEnum[TaxExemptionEnum["ONE_YEAR_RULE"] = 1] = "ONE_YEAR_RULE";
|
|
@@ -3095,8 +3553,8 @@ __decorate([
|
|
|
3095
3553
|
Type(() => Date)
|
|
3096
3554
|
], PropertySale.prototype, "contractDate", void 0);
|
|
3097
3555
|
__decorate([
|
|
3098
|
-
Type(() =>
|
|
3099
|
-
], PropertySale.prototype, "
|
|
3556
|
+
Type(() => PropertySaleTaxExemptionMetaField$1)
|
|
3557
|
+
], PropertySale.prototype, "taxExemptionMetaFields", void 0);
|
|
3100
3558
|
|
|
3101
3559
|
/**
|
|
3102
3560
|
* @Todo TT-2143 should be removed when PropertySaleCostBaseForm refactored (cut property to separated form)
|
|
@@ -3114,13 +3572,13 @@ class PropertySaleCostBase {
|
|
|
3114
3572
|
}
|
|
3115
3573
|
}
|
|
3116
3574
|
|
|
3117
|
-
class
|
|
3575
|
+
class PropertySaleTaxExemptionMetaField extends PropertySaleTaxExemptionMetaField$1 {
|
|
3118
3576
|
}
|
|
3119
3577
|
|
|
3120
3578
|
class TaxExemption extends TaxExemption$1 {
|
|
3121
3579
|
}
|
|
3122
3580
|
|
|
3123
|
-
class
|
|
3581
|
+
class TaxExemptionMetaField extends TaxExemptionMetaField$1 {
|
|
3124
3582
|
}
|
|
3125
3583
|
|
|
3126
3584
|
/**
|
|
@@ -3503,283 +3961,118 @@ class PropertyForecast extends PropertyForecast$1 {
|
|
|
3503
3961
|
return this.cashPosition + this.depreciation;
|
|
3504
3962
|
}
|
|
3505
3963
|
/**
|
|
3506
|
-
* Get rental return percent
|
|
3507
|
-
* Rental Return = Income / Market Value
|
|
3508
|
-
*/
|
|
3509
|
-
get rentalReturn() {
|
|
3510
|
-
return this.income / this.marketValue;
|
|
3511
|
-
}
|
|
3512
|
-
/**
|
|
3513
|
-
* Check if forecast is for real current fin year (not selected in the sidebar)
|
|
3514
|
-
*/
|
|
3515
|
-
isCurrentYear() {
|
|
3516
|
-
return this.financialYear === new FinancialYear(new Date()).year;
|
|
3517
|
-
}
|
|
3518
|
-
}
|
|
3519
|
-
__decorate([
|
|
3520
|
-
Transform(({ value }) => +value)
|
|
3521
|
-
], PropertyForecast.prototype, "income", void 0);
|
|
3522
|
-
__decorate([
|
|
3523
|
-
Transform(({ value }) => -Math.abs(+value))
|
|
3524
|
-
], PropertyForecast.prototype, "expense", void 0);
|
|
3525
|
-
__decorate([
|
|
3526
|
-
Transform(({ value }) => -Math.abs(+value))
|
|
3527
|
-
], PropertyForecast.prototype, "interest", void 0);
|
|
3528
|
-
__decorate([
|
|
3529
|
-
Transform(({ value }) => -Math.abs(+value))
|
|
3530
|
-
], PropertyForecast.prototype, "depreciation", void 0);
|
|
3531
|
-
__decorate([
|
|
3532
|
-
Transform(({ value }) => +value)
|
|
3533
|
-
], PropertyForecast.prototype, "loanBalance", void 0);
|
|
3534
|
-
__decorate([
|
|
3535
|
-
Transform(({ value }) => +value)
|
|
3536
|
-
], PropertyForecast.prototype, "marketValue", void 0);
|
|
3537
|
-
|
|
3538
|
-
var PropertyShareStatusEnum;
|
|
3539
|
-
(function (PropertyShareStatusEnum) {
|
|
3540
|
-
PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
|
|
3541
|
-
PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
|
|
3542
|
-
PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
|
|
3543
|
-
})(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
|
|
3544
|
-
|
|
3545
|
-
class RegistrationInvite extends RegistrationInvite$1 {
|
|
3546
|
-
getPhotoPlaceholder() {
|
|
3547
|
-
return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
|
|
3548
|
-
}
|
|
3549
|
-
getPhoto() {
|
|
3550
|
-
return null;
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
class PropertyShare extends PropertyShare$1 {
|
|
3555
|
-
isAccepted() {
|
|
3556
|
-
return this.status === PropertyShareStatusEnum.APPROVED;
|
|
3557
|
-
}
|
|
3558
|
-
isPending() {
|
|
3559
|
-
return this.status === PropertyShareStatusEnum.PENDING;
|
|
3560
|
-
}
|
|
3561
|
-
isRejected() {
|
|
3562
|
-
return this.status === PropertyShareStatusEnum.REJECTED;
|
|
3563
|
-
}
|
|
3564
|
-
get statusName() {
|
|
3565
|
-
return PropertyShareStatusEnum[this.status]?.toLowerCase();
|
|
3566
|
-
}
|
|
3567
|
-
/**
|
|
3568
|
-
* Return full user name if user is already registered.
|
|
3569
|
-
* Otherwise - return first name from invitation
|
|
3570
|
-
*/
|
|
3571
|
-
get userName() {
|
|
3572
|
-
return this.user ? this.user.fullName : `${this.invite.firstName}`;
|
|
3573
|
-
}
|
|
3574
|
-
}
|
|
3575
|
-
__decorate([
|
|
3576
|
-
Type(() => Date)
|
|
3577
|
-
], PropertyShare.prototype, "fromDate", void 0);
|
|
3578
|
-
__decorate([
|
|
3579
|
-
Type(() => Date)
|
|
3580
|
-
], PropertyShare.prototype, "toDate", void 0);
|
|
3581
|
-
__decorate([
|
|
3582
|
-
Type(() => User)
|
|
3583
|
-
], PropertyShare.prototype, "user", void 0);
|
|
3584
|
-
__decorate([
|
|
3585
|
-
Type(() => RegistrationInvite)
|
|
3586
|
-
], PropertyShare.prototype, "invite", void 0);
|
|
3587
|
-
__decorate([
|
|
3588
|
-
Type(() => Property)
|
|
3589
|
-
], PropertyShare.prototype, "property", void 0);
|
|
3590
|
-
__decorate([
|
|
3591
|
-
Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
|
|
3592
|
-
], PropertyShare.prototype, "email", void 0);
|
|
3593
|
-
|
|
3594
|
-
/**
|
|
3595
|
-
* @TODO used only on dashboard, move from tt-core
|
|
3596
|
-
* Enum with properties ownership filter options
|
|
3597
|
-
*/
|
|
3598
|
-
var ShareFilterOptionsEnum;
|
|
3599
|
-
(function (ShareFilterOptionsEnum) {
|
|
3600
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
|
|
3601
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
|
|
3602
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
|
|
3603
|
-
})(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
|
|
3604
|
-
|
|
3605
|
-
class TransactionReceipt extends TransactionReceipt$1 {
|
|
3606
|
-
constructor() {
|
|
3607
|
-
super(...arguments);
|
|
3608
|
-
this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
|
|
3609
|
-
this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
|
|
3610
|
-
}
|
|
3611
|
-
}
|
|
3612
|
-
|
|
3613
|
-
var IncomeSourceTypeEnum;
|
|
3614
|
-
(function (IncomeSourceTypeEnum) {
|
|
3615
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
3616
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
3617
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
3618
|
-
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
3619
|
-
|
|
3620
|
-
class SalaryForecast extends SalaryForecast$1 {
|
|
3621
|
-
get taxWithheld() {
|
|
3622
|
-
return this.grossAmount - this.netPay;
|
|
3623
|
-
}
|
|
3624
|
-
}
|
|
3625
|
-
__decorate([
|
|
3626
|
-
Transform(({ obj }) => obj.netPay + obj.tax),
|
|
3627
|
-
Expose()
|
|
3628
|
-
], SalaryForecast.prototype, "grossAmount", void 0);
|
|
3629
|
-
__decorate([
|
|
3630
|
-
Type(() => IncomeSource)
|
|
3631
|
-
], SalaryForecast.prototype, "incomeSource", void 0);
|
|
3632
|
-
|
|
3633
|
-
class SoleForecast extends SoleForecast$1 {
|
|
3634
|
-
get netPay() {
|
|
3635
|
-
return this.amount;
|
|
3636
|
-
}
|
|
3637
|
-
;
|
|
3638
|
-
}
|
|
3639
|
-
__decorate([
|
|
3640
|
-
Type(() => IncomeSource)
|
|
3641
|
-
], SoleForecast.prototype, "incomeSource", void 0);
|
|
3642
|
-
|
|
3643
|
-
var SalaryForecastFrequencyEnum;
|
|
3644
|
-
(function (SalaryForecastFrequencyEnum) {
|
|
3645
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
|
|
3646
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
|
|
3647
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
|
|
3648
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
|
|
3649
|
-
})(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
|
|
3650
|
-
|
|
3651
|
-
var IncomeSourceTypeListWorkEnum;
|
|
3652
|
-
(function (IncomeSourceTypeListWorkEnum) {
|
|
3653
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
|
|
3654
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
|
|
3655
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
|
|
3656
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
|
|
3657
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
3658
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
|
|
3659
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
|
|
3660
|
-
})(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
|
|
3661
|
-
|
|
3662
|
-
var IncomeSourceTypeListOtherEnum;
|
|
3663
|
-
(function (IncomeSourceTypeListOtherEnum) {
|
|
3664
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
|
|
3665
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3666
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
|
|
3667
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
|
|
3668
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
|
|
3669
|
-
})(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
|
|
3670
|
-
|
|
3671
|
-
var IncomeSourceTypeListSoleEnum;
|
|
3672
|
-
(function (IncomeSourceTypeListSoleEnum) {
|
|
3673
|
-
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3674
|
-
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
3675
|
-
|
|
3676
|
-
class IncomeSourceType extends IncomeSourceType$1 {
|
|
3677
|
-
isBonuses() {
|
|
3678
|
-
return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
|
|
3679
|
-
}
|
|
3680
|
-
isWork() {
|
|
3681
|
-
return !!IncomeSourceTypeListWorkEnum[this.id];
|
|
3682
|
-
}
|
|
3683
|
-
isOther() {
|
|
3684
|
-
return !!IncomeSourceTypeListOtherEnum[this.id];
|
|
3685
|
-
}
|
|
3686
|
-
isSole() {
|
|
3687
|
-
return !!IncomeSourceTypeListSoleEnum[this.id];
|
|
3688
|
-
}
|
|
3689
|
-
get type() {
|
|
3690
|
-
switch (true) {
|
|
3691
|
-
case this.isWork():
|
|
3692
|
-
return IncomeSourceTypeEnum.WORK;
|
|
3693
|
-
case this.isSole():
|
|
3694
|
-
return IncomeSourceTypeEnum.SOLE;
|
|
3695
|
-
default:
|
|
3696
|
-
return IncomeSourceTypeEnum.OTHER;
|
|
3697
|
-
}
|
|
3698
|
-
}
|
|
3699
|
-
}
|
|
3700
|
-
|
|
3701
|
-
class IncomeSourceForecast extends IncomeSourceForecast$1 {
|
|
3702
|
-
constructor() {
|
|
3703
|
-
super(...arguments);
|
|
3704
|
-
this.paygIncome = 0;
|
|
3705
|
-
this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
|
|
3706
|
-
this.isTaxFree = false;
|
|
3707
|
-
}
|
|
3708
|
-
/**
|
|
3709
|
-
* Sometimes Income source has Salary & Income source forecasts,
|
|
3710
|
-
* and we need these fields to work with Income source forecasts like with Salary Forecasts
|
|
3964
|
+
* Get rental return percent
|
|
3965
|
+
* Rental Return = Income / Market Value
|
|
3711
3966
|
*/
|
|
3712
|
-
get
|
|
3713
|
-
return this.
|
|
3967
|
+
get rentalReturn() {
|
|
3968
|
+
return this.income / this.marketValue;
|
|
3714
3969
|
}
|
|
3715
|
-
|
|
3716
|
-
|
|
3970
|
+
/**
|
|
3971
|
+
* Check if forecast is for real current fin year (not selected in the sidebar)
|
|
3972
|
+
*/
|
|
3973
|
+
isCurrentYear() {
|
|
3974
|
+
return this.financialYear === new FinancialYear(new Date()).year;
|
|
3717
3975
|
}
|
|
3718
3976
|
}
|
|
3719
3977
|
__decorate([
|
|
3720
|
-
|
|
3721
|
-
],
|
|
3978
|
+
Transform(({ value }) => +value)
|
|
3979
|
+
], PropertyForecast.prototype, "income", void 0);
|
|
3722
3980
|
__decorate([
|
|
3723
|
-
|
|
3724
|
-
],
|
|
3981
|
+
Transform(({ value }) => -Math.abs(+value))
|
|
3982
|
+
], PropertyForecast.prototype, "expense", void 0);
|
|
3983
|
+
__decorate([
|
|
3984
|
+
Transform(({ value }) => -Math.abs(+value))
|
|
3985
|
+
], PropertyForecast.prototype, "interest", void 0);
|
|
3986
|
+
__decorate([
|
|
3987
|
+
Transform(({ value }) => -Math.abs(+value))
|
|
3988
|
+
], PropertyForecast.prototype, "depreciation", void 0);
|
|
3989
|
+
__decorate([
|
|
3990
|
+
Transform(({ value }) => +value)
|
|
3991
|
+
], PropertyForecast.prototype, "loanBalance", void 0);
|
|
3992
|
+
__decorate([
|
|
3993
|
+
Transform(({ value }) => +value)
|
|
3994
|
+
], PropertyForecast.prototype, "marketValue", void 0);
|
|
3725
3995
|
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3996
|
+
var PropertyShareStatusEnum;
|
|
3997
|
+
(function (PropertyShareStatusEnum) {
|
|
3998
|
+
PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
|
|
3999
|
+
PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
|
|
4000
|
+
PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
|
|
4001
|
+
})(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
|
|
4002
|
+
|
|
4003
|
+
class RegistrationInvite extends RegistrationInvite$1 {
|
|
4004
|
+
getPhotoPlaceholder() {
|
|
4005
|
+
return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
|
|
3731
4006
|
}
|
|
3732
|
-
|
|
3733
|
-
return
|
|
4007
|
+
getPhoto() {
|
|
4008
|
+
return null;
|
|
3734
4009
|
}
|
|
3735
|
-
|
|
3736
|
-
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
class PropertyShare extends PropertyShare$1 {
|
|
4013
|
+
isAccepted() {
|
|
4014
|
+
return this.status === PropertyShareStatusEnum.APPROVED;
|
|
3737
4015
|
}
|
|
3738
|
-
|
|
3739
|
-
return this.
|
|
4016
|
+
isPending() {
|
|
4017
|
+
return this.status === PropertyShareStatusEnum.PENDING;
|
|
3740
4018
|
}
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
*/
|
|
3744
|
-
get forecasts() {
|
|
3745
|
-
return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
|
|
4019
|
+
isRejected() {
|
|
4020
|
+
return this.status === PropertyShareStatusEnum.REJECTED;
|
|
3746
4021
|
}
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
*/
|
|
3750
|
-
get actualForecast() {
|
|
3751
|
-
return this.forecasts[0];
|
|
4022
|
+
get statusName() {
|
|
4023
|
+
return PropertyShareStatusEnum[this.status]?.toLowerCase();
|
|
3752
4024
|
}
|
|
3753
4025
|
/**
|
|
3754
|
-
*
|
|
3755
|
-
*
|
|
4026
|
+
* Return full user name if user is already registered.
|
|
4027
|
+
* Otherwise - return first name from invitation
|
|
3756
4028
|
*/
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
|
|
4029
|
+
get userName() {
|
|
4030
|
+
return this.user ? this.user.fullName : `${this.invite.firstName}`;
|
|
3760
4031
|
}
|
|
3761
4032
|
}
|
|
3762
4033
|
__decorate([
|
|
3763
|
-
Type(() =>
|
|
3764
|
-
],
|
|
4034
|
+
Type(() => Date)
|
|
4035
|
+
], PropertyShare.prototype, "fromDate", void 0);
|
|
3765
4036
|
__decorate([
|
|
3766
|
-
Type(() =>
|
|
3767
|
-
],
|
|
4037
|
+
Type(() => Date)
|
|
4038
|
+
], PropertyShare.prototype, "toDate", void 0);
|
|
3768
4039
|
__decorate([
|
|
3769
|
-
Type(() =>
|
|
3770
|
-
],
|
|
4040
|
+
Type(() => User)
|
|
4041
|
+
], PropertyShare.prototype, "user", void 0);
|
|
3771
4042
|
__decorate([
|
|
3772
|
-
Type(() =>
|
|
3773
|
-
],
|
|
4043
|
+
Type(() => RegistrationInvite)
|
|
4044
|
+
], PropertyShare.prototype, "invite", void 0);
|
|
3774
4045
|
__decorate([
|
|
3775
|
-
Type(() =>
|
|
3776
|
-
],
|
|
4046
|
+
Type(() => Property)
|
|
4047
|
+
], PropertyShare.prototype, "property", void 0);
|
|
4048
|
+
__decorate([
|
|
4049
|
+
Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
|
|
4050
|
+
], PropertyShare.prototype, "email", void 0);
|
|
4051
|
+
|
|
4052
|
+
/**
|
|
4053
|
+
* @TODO used only on dashboard, move from tt-core
|
|
4054
|
+
* Enum with properties ownership filter options
|
|
4055
|
+
*/
|
|
4056
|
+
var ShareFilterOptionsEnum;
|
|
4057
|
+
(function (ShareFilterOptionsEnum) {
|
|
4058
|
+
ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
|
|
4059
|
+
ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
|
|
4060
|
+
ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
|
|
4061
|
+
})(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
|
|
4062
|
+
|
|
4063
|
+
class TransactionReceipt extends TransactionReceipt$1 {
|
|
4064
|
+
constructor() {
|
|
4065
|
+
super(...arguments);
|
|
4066
|
+
this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
|
|
4067
|
+
this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
3777
4070
|
|
|
3778
|
-
class
|
|
4071
|
+
class TransactionMetaField extends TransactionMetaField$1 {
|
|
3779
4072
|
}
|
|
3780
4073
|
__decorate([
|
|
3781
|
-
Type(() =>
|
|
3782
|
-
],
|
|
4074
|
+
Type(() => ChartAccountsMetaField)
|
|
4075
|
+
], TransactionMetaField.prototype, "metaField", void 0);
|
|
3783
4076
|
|
|
3784
4077
|
/**
|
|
3785
4078
|
* Enum with maximum number of payments, depending on the frequency.
|
|
@@ -4538,7 +4831,7 @@ class Transaction extends Transaction$1 {
|
|
|
4538
4831
|
super(...arguments);
|
|
4539
4832
|
// list of child transactions (fees)
|
|
4540
4833
|
this.transactions = [];
|
|
4541
|
-
this.
|
|
4834
|
+
this.metaFields = [];
|
|
4542
4835
|
this.allocations = [];
|
|
4543
4836
|
this.tax = 0;
|
|
4544
4837
|
this.operation = TransactionOperationEnum.FIND_AND_MATCH;
|
|
@@ -4605,16 +4898,16 @@ class Transaction extends Transaction$1 {
|
|
|
4605
4898
|
return this.chartAccounts.isVehicleExpense();
|
|
4606
4899
|
}
|
|
4607
4900
|
get taxFreeComponent() {
|
|
4608
|
-
return this.
|
|
4901
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.TAX_FREE_COMPONENT);
|
|
4609
4902
|
}
|
|
4610
4903
|
get frankingCredit() {
|
|
4611
|
-
return this.
|
|
4904
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.FRANKING_CREDIT);
|
|
4612
4905
|
}
|
|
4613
4906
|
get eligibleForReduction() {
|
|
4614
|
-
return this.
|
|
4907
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.ELIGIBLE_FOR_REDUCTION);
|
|
4615
4908
|
}
|
|
4616
4909
|
get untaxedElement() {
|
|
4617
|
-
return this.
|
|
4910
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.UNTAXED_ELEMENT);
|
|
4618
4911
|
}
|
|
4619
4912
|
/**
|
|
4620
4913
|
* Check if transaction reconcile operation if TRANSFER
|
|
@@ -4636,13 +4929,13 @@ class Transaction extends Transaction$1 {
|
|
|
4636
4929
|
return this.isCredit() ? Math.abs(this.grossAmount) : 0;
|
|
4637
4930
|
}
|
|
4638
4931
|
/**
|
|
4639
|
-
* Get value of transaction
|
|
4932
|
+
* Get value of transaction meta field
|
|
4640
4933
|
* @param field for which value should be returned
|
|
4641
|
-
* @Todo modify '
|
|
4934
|
+
* @Todo modify 'metaFields' property from array to Collection
|
|
4642
4935
|
*/
|
|
4643
|
-
|
|
4644
|
-
return +this.
|
|
4645
|
-
return
|
|
4936
|
+
getMetaFieldValue(field) {
|
|
4937
|
+
return +this.metaFields.find((transactionMetaField) => {
|
|
4938
|
+
return transactionMetaField.chartAccountsMetaField.id === field;
|
|
4646
4939
|
})?.value || 0;
|
|
4647
4940
|
}
|
|
4648
4941
|
isCash() {
|
|
@@ -4733,8 +5026,8 @@ __decorate([
|
|
|
4733
5026
|
Type(() => IncomeSource)
|
|
4734
5027
|
], Transaction.prototype, "incomeSource", void 0);
|
|
4735
5028
|
__decorate([
|
|
4736
|
-
Type(() =>
|
|
4737
|
-
], Transaction.prototype, "
|
|
5029
|
+
Type(() => TransactionMetaField)
|
|
5030
|
+
], Transaction.prototype, "metaFields", void 0);
|
|
4738
5031
|
__decorate([
|
|
4739
5032
|
Type(() => Transaction)
|
|
4740
5033
|
], Transaction.prototype, "transfer", void 0);
|
|
@@ -5024,14 +5317,14 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5024
5317
|
return new TransactionCollection(this.items.filter((transaction) => transaction.date.getMonth() === monthIndex));
|
|
5025
5318
|
}
|
|
5026
5319
|
/**
|
|
5027
|
-
* Get collection of transactions
|
|
5320
|
+
* Get collection of transactions meta fields
|
|
5028
5321
|
*/
|
|
5029
|
-
|
|
5030
|
-
const
|
|
5322
|
+
getTransactionsMetaFields() {
|
|
5323
|
+
const metaFieldsArray = [];
|
|
5031
5324
|
this.items.forEach((transaction) => {
|
|
5032
|
-
|
|
5325
|
+
metaFieldsArray.push(...transaction.metaFields);
|
|
5033
5326
|
});
|
|
5034
|
-
return new Collection(
|
|
5327
|
+
return new Collection(metaFieldsArray);
|
|
5035
5328
|
}
|
|
5036
5329
|
getIncomeTransactions() {
|
|
5037
5330
|
return new TransactionCollection(this.items.filter((transaction) => transaction.isIncome()));
|
|
@@ -6146,6 +6439,30 @@ class AllocationGroupCollection extends Collection {
|
|
|
6146
6439
|
}
|
|
6147
6440
|
}
|
|
6148
6441
|
|
|
6442
|
+
class AllocationRuleCollection extends Collection {
|
|
6443
|
+
getExpense() {
|
|
6444
|
+
return this.filterBy('type', AllocationRuleTypeEnum.EXPENSE);
|
|
6445
|
+
}
|
|
6446
|
+
getIncome() {
|
|
6447
|
+
return this.filterBy('type', AllocationRuleTypeEnum.INCOME);
|
|
6448
|
+
}
|
|
6449
|
+
getTransfer() {
|
|
6450
|
+
return this.filterBy('type', AllocationRuleTypeEnum.TRANSFER);
|
|
6451
|
+
}
|
|
6452
|
+
/**
|
|
6453
|
+
* Get dictionary where key is bank transaction id and value is collection of matched rules.
|
|
6454
|
+
* Group by this way for better performance
|
|
6455
|
+
* @TODO Alex: break bank transactions by pagination in case of bad performance
|
|
6456
|
+
*/
|
|
6457
|
+
groupByBankTransaction(bankTransactions) {
|
|
6458
|
+
const rulesByBankTransaction = new CollectionDictionary(new AllocationRuleCollection([]));
|
|
6459
|
+
bankTransactions.toArray().forEach((bankTransaction) => {
|
|
6460
|
+
rulesByBankTransaction.add(bankTransaction.id, this.filter((rule) => rule.matchBankTransaction(bankTransaction)));
|
|
6461
|
+
});
|
|
6462
|
+
return rulesByBankTransaction;
|
|
6463
|
+
}
|
|
6464
|
+
}
|
|
6465
|
+
|
|
6149
6466
|
class AccountSetupItemCollection extends Collection {
|
|
6150
6467
|
constructor(items) {
|
|
6151
6468
|
super(compact(items));
|
|
@@ -7014,7 +7331,7 @@ class Property extends Property$1 {
|
|
|
7014
7331
|
* in that case it's equal to market value, when property became an investment property
|
|
7015
7332
|
*/
|
|
7016
7333
|
calculateCostBase(sale) {
|
|
7017
|
-
const marketValue = new
|
|
7334
|
+
const marketValue = new PropertySaleTaxExemptionMetaFieldCollection(sale.taxExemptionMetaFields).getMarketValue();
|
|
7018
7335
|
if (marketValue) {
|
|
7019
7336
|
return marketValue;
|
|
7020
7337
|
}
|
|
@@ -7054,7 +7371,7 @@ class Property extends Property$1 {
|
|
|
7054
7371
|
* tax exemption can reduce cgt from 100% to less (up to zero)
|
|
7055
7372
|
*/
|
|
7056
7373
|
getCGTExemptionRatio(sale) {
|
|
7057
|
-
const
|
|
7374
|
+
const metaFields = new PropertySaleTaxExemptionMetaFieldCollection(sale.taxExemptionMetaFields);
|
|
7058
7375
|
switch (sale.taxExemption?.id) {
|
|
7059
7376
|
// 50% exemption for investments owned for at least one year
|
|
7060
7377
|
case TaxExemptionEnum.ONE_YEAR_RULE:
|
|
@@ -7062,12 +7379,12 @@ class Property extends Property$1 {
|
|
|
7062
7379
|
// investment property become main residence (exemption for main residence ownership duration)
|
|
7063
7380
|
case TaxExemptionEnum.INVESTMENT_TO_PPR:
|
|
7064
7381
|
const ownershipDays = this.getOwnershipDuration(sale);
|
|
7065
|
-
return (ownershipDays -
|
|
7382
|
+
return (ownershipDays - metaFields.getPPRDays()) / ownershipDays;
|
|
7066
7383
|
// main residence become investment (exemption for home office percent usage)
|
|
7067
7384
|
case TaxExemptionEnum.PPR_TO_INVESTMENT:
|
|
7068
7385
|
// 1 year CGT discount can still apply (on the income producing % if used for 12 months or more)
|
|
7069
7386
|
const ratio = this.isOneYearExemptionApplicable(sale) ? 0.5 : 1;
|
|
7070
|
-
return
|
|
7387
|
+
return metaFields.getClaimPercent() / 100 * ratio;
|
|
7071
7388
|
// full exemption
|
|
7072
7389
|
case TaxExemptionEnum.PPR:
|
|
7073
7390
|
case TaxExemptionEnum.SIX_YEARS_RULE:
|
|
@@ -8252,6 +8569,10 @@ class Endpoint {
|
|
|
8252
8569
|
*/
|
|
8253
8570
|
const ENDPOINTS = {
|
|
8254
8571
|
ASSETS_GET: new Endpoint('GET', '\\/assets\\/\.\*\\/\\d+'),
|
|
8572
|
+
ALLOCATION_RULES_GET: new Endpoint('GET', '\\/allocation-rules'),
|
|
8573
|
+
ALLOCATION_RULES_POST: new Endpoint('POST', '\\/allocation-rules'),
|
|
8574
|
+
ALLOCATION_RULES_PUT: new Endpoint('PUT', '\\/allocation-rules\\/\\d+'),
|
|
8575
|
+
ALLOCATION_RULES_DELETE: new Endpoint('DELETE', '\\/allocation-rules\\/\\d+'),
|
|
8255
8576
|
BANKS_GET: new Endpoint('GET', '\\/banks'),
|
|
8256
8577
|
BANK_ACCOUNTS_GET: new Endpoint('GET', '\\/bank-accounts'),
|
|
8257
8578
|
BANK_ACCOUNTS_POST: new Endpoint('POST', '\\/bank-accounts'),
|
|
@@ -10600,14 +10921,14 @@ MyTaxDeductions.selfEducationNotDeductibleAmount = -250;
|
|
|
10600
10921
|
class MyTaxDividends {
|
|
10601
10922
|
constructor(transactions) {
|
|
10602
10923
|
this.transactions = transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.DIVIDENDS);
|
|
10603
|
-
this.dividendsUnfrankedAmount = this.transactions.
|
|
10604
|
-
.filterBy('
|
|
10924
|
+
this.dividendsUnfrankedAmount = this.transactions.getTransactionsMetaFields()
|
|
10925
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.UNFRANKED)
|
|
10605
10926
|
.sumBy('value');
|
|
10606
|
-
this.dividendsFrankedAmount = this.transactions.
|
|
10607
|
-
.filterBy('
|
|
10927
|
+
this.dividendsFrankedAmount = this.transactions.getTransactionsMetaFields()
|
|
10928
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKED)
|
|
10608
10929
|
.sumBy('value');
|
|
10609
|
-
this.dividendsFrankingCreditsAmount = this.transactions.
|
|
10610
|
-
.filterBy('
|
|
10930
|
+
this.dividendsFrankingCreditsAmount = this.transactions.getTransactionsMetaFields()
|
|
10931
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
|
|
10611
10932
|
.sumBy('value');
|
|
10612
10933
|
this.dividendsTotalTax = this.transactions.sumBy('tax');
|
|
10613
10934
|
}
|
|
@@ -10762,20 +11083,20 @@ class MyTaxOtherIncome {
|
|
|
10762
11083
|
this.employeeShareSchemesTransactions = transactions
|
|
10763
11084
|
.filterBy('chartAccounts.id', ChartAccountsListEnum.EMPLOYEE_SHARE_SCHEME_INCOME);
|
|
10764
11085
|
// Employee Share Schemes data
|
|
10765
|
-
this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.
|
|
10766
|
-
.filterBy('
|
|
11086
|
+
this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11087
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.ELIGIBLE_FOR_REDUCTION)
|
|
10767
11088
|
.sumBy('value');
|
|
10768
|
-
this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.
|
|
10769
|
-
.filterBy('
|
|
11089
|
+
this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11090
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
|
|
10770
11091
|
.sumBy('value');
|
|
10771
|
-
this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.
|
|
10772
|
-
.filterBy('
|
|
11092
|
+
this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11093
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
|
|
10773
11094
|
.sumBy('value');
|
|
10774
|
-
this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.
|
|
10775
|
-
.filterBy('
|
|
11095
|
+
this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11096
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
|
|
10776
11097
|
.sumBy('value') +
|
|
10777
|
-
this.employeeShareSchemesTransactions.
|
|
10778
|
-
.filterBy('
|
|
11098
|
+
this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11099
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
|
|
10779
11100
|
.sumBy('value');
|
|
10780
11101
|
this.shareSchemesTotalTax = this.employeeShareSchemesTransactions.sumBy('tax');
|
|
10781
11102
|
// Other income data
|
|
@@ -10818,14 +11139,14 @@ class MyTaxPartnershipsAndTrusts {
|
|
|
10818
11139
|
this.trustsNetNonPrimaryProductionAmount = this.trustsIncomeTotalAmount - this.trustsExpenseTotalAmount;
|
|
10819
11140
|
this.frankingCreditsTotal = this.transactions
|
|
10820
11141
|
.filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
|
|
10821
|
-
.
|
|
10822
|
-
.filterBy('
|
|
11142
|
+
.getTransactionsMetaFields()
|
|
11143
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
|
|
10823
11144
|
.sumBy('value');
|
|
10824
11145
|
this.trustsIncomeTotalTax = this.trustsIncomes.sumBy('tax');
|
|
10825
11146
|
this.frankingCreditsTotal = this.transactions
|
|
10826
11147
|
.filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
|
|
10827
|
-
.
|
|
10828
|
-
.filterBy('
|
|
11148
|
+
.getTransactionsMetaFields()
|
|
11149
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
|
|
10829
11150
|
.sumBy('value');
|
|
10830
11151
|
this.taxOffsetNRASTotalAmount = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S).sumBy('amount');
|
|
10831
11152
|
}
|
|
@@ -14399,6 +14720,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
14399
14720
|
args: ['environment']
|
|
14400
14721
|
}] }]; } });
|
|
14401
14722
|
|
|
14723
|
+
class AllocationRuleService extends RestService$1 {
|
|
14724
|
+
constructor() {
|
|
14725
|
+
super(...arguments);
|
|
14726
|
+
this.endpointUri = 'allocation-rules';
|
|
14727
|
+
this.collectionClass = AllocationRuleCollection;
|
|
14728
|
+
this.modelClass = AllocationRule;
|
|
14729
|
+
this.isApiPlatform = true;
|
|
14730
|
+
}
|
|
14731
|
+
}
|
|
14732
|
+
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14733
|
+
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
|
|
14734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, decorators: [{
|
|
14735
|
+
type: Injectable,
|
|
14736
|
+
args: [{
|
|
14737
|
+
providedIn: 'root'
|
|
14738
|
+
}]
|
|
14739
|
+
}] });
|
|
14740
|
+
|
|
14402
14741
|
// @TODO Don't look at the commented code. Will be refactored/removed during TT-1503
|
|
14403
14742
|
/**
|
|
14404
14743
|
* Service for transaction allocations business logic
|
|
@@ -17800,14 +18139,14 @@ class PropertySaleExemptionsForm extends AbstractForm {
|
|
|
17800
18139
|
constructor(propertySale, property, taxExemptions) {
|
|
17801
18140
|
super({
|
|
17802
18141
|
taxExemption: new UntypedFormControl(taxExemptions.findBy('id', propertySale.taxExemption?.id ?? property.getCGTExemption(propertySale))),
|
|
17803
|
-
|
|
18142
|
+
taxExemptionMetaFields: new UntypedFormArray([]),
|
|
17804
18143
|
netCGT: new UntypedFormControl(propertySale.netCGT)
|
|
17805
18144
|
}, propertySale);
|
|
17806
18145
|
this.propertySale = propertySale;
|
|
17807
18146
|
this.property = property;
|
|
17808
18147
|
this.taxExemptions = taxExemptions;
|
|
17809
18148
|
if (propertySale.taxExemption) {
|
|
17810
|
-
this.
|
|
18149
|
+
this.setFormMetaFieldsControls();
|
|
17811
18150
|
}
|
|
17812
18151
|
this.updateNetCGT();
|
|
17813
18152
|
this.listenEvents();
|
|
@@ -17827,36 +18166,36 @@ class PropertySaleExemptionsForm extends AbstractForm {
|
|
|
17827
18166
|
listenTaxExemptionUpdated() {
|
|
17828
18167
|
this.get('taxExemption').valueChanges.subscribe((taxExemption) => {
|
|
17829
18168
|
this.updateNetCGT();
|
|
17830
|
-
this.
|
|
18169
|
+
this.setFormMetaFieldsControls(taxExemption);
|
|
17831
18170
|
});
|
|
17832
18171
|
}
|
|
17833
18172
|
/**
|
|
17834
|
-
* show
|
|
18173
|
+
* show meta fields related to passed tax exemption or existing property sale meta fields
|
|
17835
18174
|
*/
|
|
17836
|
-
|
|
18175
|
+
setFormMetaFieldsControls(taxExemption) {
|
|
17837
18176
|
// use property sale tax exemption if it exists to preselect data
|
|
17838
18177
|
const currentTaxExemption = this.propertySale.taxExemption ?
|
|
17839
18178
|
this.taxExemptions.findBy('id', this.propertySale.taxExemption.id) :
|
|
17840
18179
|
taxExemption;
|
|
17841
|
-
const formArray = this.get('
|
|
18180
|
+
const formArray = this.get('taxExemptionMetaFields');
|
|
17842
18181
|
// clean up
|
|
17843
18182
|
formArray.clear();
|
|
17844
|
-
// show all tax exemption
|
|
17845
|
-
currentTaxExemption.
|
|
17846
|
-
// use property sale tax exemption
|
|
17847
|
-
const
|
|
17848
|
-
this.propertySale.
|
|
17849
|
-
.find((
|
|
18183
|
+
// show all tax exemption meta fields
|
|
18184
|
+
currentTaxExemption.metaFields.forEach((metaField) => {
|
|
18185
|
+
// use property sale tax exemption meta field value if it exists
|
|
18186
|
+
const metaFieldValue = this.propertySale.taxExemption ?
|
|
18187
|
+
this.propertySale.taxExemptionMetaFields
|
|
18188
|
+
.find((saleMetaField) => saleMetaField.metaField.id === metaField.id).value :
|
|
17850
18189
|
null;
|
|
17851
18190
|
const validators = [
|
|
17852
18191
|
// claim percent is optional
|
|
17853
|
-
|
|
18192
|
+
metaField.id !== TaxExemptionMetaFieldEnum.CLAIM_PERCENT && Validators.required,
|
|
17854
18193
|
// ppr days can't be more than ownership days
|
|
17855
|
-
|
|
18194
|
+
metaField.id === TaxExemptionMetaFieldEnum.PPR_DAYS && Validators.max(this.property.getOwnershipDuration(this.propertySale))
|
|
17856
18195
|
].filter(Boolean);
|
|
17857
18196
|
formArray.push(new UntypedFormGroup({
|
|
17858
|
-
|
|
17859
|
-
value: new UntypedFormControl(
|
|
18197
|
+
metaField: new UntypedFormControl(metaField),
|
|
18198
|
+
value: new UntypedFormControl(metaFieldValue, validators)
|
|
17860
18199
|
}));
|
|
17861
18200
|
});
|
|
17862
18201
|
}
|
|
@@ -18551,6 +18890,267 @@ var FormValidationsEnum;
|
|
|
18551
18890
|
FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
|
|
18552
18891
|
})(FormValidationsEnum || (FormValidationsEnum = {}));
|
|
18553
18892
|
|
|
18893
|
+
class AllocationRuleConditionForm extends AbstractForm {
|
|
18894
|
+
constructor(condition = plainToClass(AllocationRuleCondition, {})) {
|
|
18895
|
+
super({
|
|
18896
|
+
field: new UntypedFormControl(condition.field, Validators.required),
|
|
18897
|
+
comparisonOperator: new UntypedFormControl(condition.comparisonOperator, Validators.required),
|
|
18898
|
+
value: new UntypedFormControl(condition.value, Validators.required)
|
|
18899
|
+
}, condition);
|
|
18900
|
+
}
|
|
18901
|
+
}
|
|
18902
|
+
|
|
18903
|
+
class AllocationRuleTransactionMetaFieldForm extends AbstractForm {
|
|
18904
|
+
constructor(metaField = plainToClass(AllocationRuleTransactionMetaField, {})) {
|
|
18905
|
+
super({
|
|
18906
|
+
value: new UntypedFormControl(metaField.value)
|
|
18907
|
+
}, metaField);
|
|
18908
|
+
}
|
|
18909
|
+
}
|
|
18910
|
+
|
|
18911
|
+
/**
|
|
18912
|
+
* @TODO Alex: extend transaction form(s) when transaction forms refactored
|
|
18913
|
+
*/
|
|
18914
|
+
class AllocationRuleTransactionForm extends AbstractForm {
|
|
18915
|
+
constructor(transaction,
|
|
18916
|
+
// Flag to enable transaction GST field
|
|
18917
|
+
isGST) {
|
|
18918
|
+
super({
|
|
18919
|
+
amount: new UntypedFormControl(null),
|
|
18920
|
+
tax: new UntypedFormControl(transaction.tax || 0, Validators.required),
|
|
18921
|
+
claimPercent: new UntypedFormControl(transaction.claimPercent || 100, [Validators.required, Validators.min(0), Validators.max(100)]),
|
|
18922
|
+
chartAccounts: new UntypedFormControl(transaction.chartAccounts, Validators.required),
|
|
18923
|
+
isGST: new UntypedFormControl({ value: transaction.isGST || false, disabled: !isGST }),
|
|
18924
|
+
loan: new UntypedFormControl(transaction.loan),
|
|
18925
|
+
incomeSource: new UntypedFormControl(transaction.incomeSource, conditionalValidator(() => transaction.chartAccounts?.isWorkIncome(), Validators.required)),
|
|
18926
|
+
metaFields: new UntypedFormArray((transaction.metaFields || []).map((metaField) => new AllocationRuleTransactionMetaFieldForm(metaField))),
|
|
18927
|
+
business: new UntypedFormControl(transaction.business, Validators.required),
|
|
18928
|
+
property: new UntypedFormControl(transaction.property, Validators.required),
|
|
18929
|
+
// Show null as default value for new transaction to avoid preselecting of not allowed tank types
|
|
18930
|
+
tankType: new UntypedFormControl(transaction.id ? transaction.tankType : null, Validators.required),
|
|
18931
|
+
childTransactions: new UntypedFormArray((transaction.childTransactions || []).map((childTransaction) => new UntypedFormGroup({
|
|
18932
|
+
chartAccounts: new UntypedFormControl(childTransaction.chartAccounts, Validators.required),
|
|
18933
|
+
amount: new UntypedFormControl(childTransaction.amount, Validators.required)
|
|
18934
|
+
})))
|
|
18935
|
+
}, transaction);
|
|
18936
|
+
this.listenEvents();
|
|
18937
|
+
}
|
|
18938
|
+
/**
|
|
18939
|
+
* @TODO Alex: move to abstract form, universal method getArray(arrayName)
|
|
18940
|
+
*/
|
|
18941
|
+
get metaFieldsArray() {
|
|
18942
|
+
return this.get('metaFields');
|
|
18943
|
+
}
|
|
18944
|
+
get childTransactionsArray() {
|
|
18945
|
+
return this.get('childTransactions');
|
|
18946
|
+
}
|
|
18947
|
+
addChildTransactionForm() {
|
|
18948
|
+
this.childTransactionsArray.push(new UntypedFormGroup({
|
|
18949
|
+
chartAccounts: new UntypedFormControl(null, Validators.required),
|
|
18950
|
+
amount: new UntypedFormControl(null, Validators.required)
|
|
18951
|
+
}));
|
|
18952
|
+
}
|
|
18953
|
+
submit() {
|
|
18954
|
+
const data = {
|
|
18955
|
+
metaFields: this.metaFieldsArray.controls.map((metaFieldForm) => metaFieldForm.submit())
|
|
18956
|
+
};
|
|
18957
|
+
return super.submit(data);
|
|
18958
|
+
}
|
|
18959
|
+
listenEvents() {
|
|
18960
|
+
this.listenChartAccountsChanges();
|
|
18961
|
+
this.listenTankTypeChanges();
|
|
18962
|
+
this.listenIncomeSourceChanges();
|
|
18963
|
+
this.listenPropertyChanges();
|
|
18964
|
+
}
|
|
18965
|
+
listenChartAccountsChanges() {
|
|
18966
|
+
this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
|
18967
|
+
this.get('incomeSource').removeValidators(Validators.required);
|
|
18968
|
+
if (!chartAccounts) {
|
|
18969
|
+
return;
|
|
18970
|
+
}
|
|
18971
|
+
this.updateClaimPercent();
|
|
18972
|
+
// User have to select income source for work income
|
|
18973
|
+
if (chartAccounts.isWorkIncome()) {
|
|
18974
|
+
this.get('incomeSource').setValidators(Validators.required);
|
|
18975
|
+
}
|
|
18976
|
+
// Rebuild meta fields
|
|
18977
|
+
this.metaFieldsArray.clear();
|
|
18978
|
+
chartAccounts.metaFields.forEach((chartAccountsMetaField) => {
|
|
18979
|
+
this.metaFieldsArray.push(new AllocationRuleTransactionMetaFieldForm(plainToClass(AllocationRuleTransactionMetaField, { chartAccountsMetaField })));
|
|
18980
|
+
});
|
|
18981
|
+
});
|
|
18982
|
+
}
|
|
18983
|
+
/**
|
|
18984
|
+
* Child transaction allowance depends on tank type.
|
|
18985
|
+
* Also chart accounts are different, so we just reset child transactions when tank type changed
|
|
18986
|
+
*/
|
|
18987
|
+
listenTankTypeChanges() {
|
|
18988
|
+
this.get('tankType').valueChanges.subscribe(() => {
|
|
18989
|
+
this.childTransactionsArray.reset();
|
|
18990
|
+
});
|
|
18991
|
+
}
|
|
18992
|
+
/**
|
|
18993
|
+
* Set tax automatically when salary income source selected
|
|
18994
|
+
*/
|
|
18995
|
+
listenIncomeSourceChanges() {
|
|
18996
|
+
this.get('incomeSource').valueChanges.subscribe((incomeSource) => {
|
|
18997
|
+
if (!incomeSource) {
|
|
18998
|
+
this.get('tax').setValue(0);
|
|
18999
|
+
return;
|
|
19000
|
+
}
|
|
19001
|
+
// prefill salary tax with its income source forecast
|
|
19002
|
+
if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !this.get('tax').value) {
|
|
19003
|
+
this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
|
|
19004
|
+
}
|
|
19005
|
+
});
|
|
19006
|
+
}
|
|
19007
|
+
listenPropertyChanges() {
|
|
19008
|
+
this.get('property').valueChanges.subscribe(() => {
|
|
19009
|
+
this.updateClaimPercent();
|
|
19010
|
+
});
|
|
19011
|
+
}
|
|
19012
|
+
/**
|
|
19013
|
+
* Update claim percent value and state depends on business logic
|
|
19014
|
+
*/
|
|
19015
|
+
updateClaimPercent() {
|
|
19016
|
+
const claimPercentControl = this.get('claimPercent');
|
|
19017
|
+
// claim percent is changeable only for work and sole expenses except vehicle and personal
|
|
19018
|
+
claimPercentControl.disable();
|
|
19019
|
+
if (!this.currentValue.chartAccounts) {
|
|
19020
|
+
return;
|
|
19021
|
+
}
|
|
19022
|
+
if (this.currentValue.chartAccounts.isClaimPercentEditable()) {
|
|
19023
|
+
claimPercentControl.enable();
|
|
19024
|
+
}
|
|
19025
|
+
claimPercentControl.setValue(this.currentValue.calculateClaimPercent());
|
|
19026
|
+
}
|
|
19027
|
+
}
|
|
19028
|
+
|
|
19029
|
+
class AllocationRuleForm extends AbstractForm {
|
|
19030
|
+
constructor(
|
|
19031
|
+
// rule is required because we have to keep bank account relation
|
|
19032
|
+
rule,
|
|
19033
|
+
// Flag to enable transaction GST field
|
|
19034
|
+
isGST) {
|
|
19035
|
+
super({
|
|
19036
|
+
type: new UntypedFormControl(rule.type, Validators.required),
|
|
19037
|
+
name: new UntypedFormControl(rule.name, Validators.required),
|
|
19038
|
+
conditionOperator: new UntypedFormControl(rule.conditionOperator, Validators.required),
|
|
19039
|
+
conditions: new UntypedFormArray((rule.conditions || [plainToClass(AllocationRuleCondition, {})])
|
|
19040
|
+
.map((condition) => new AllocationRuleConditionForm(condition))),
|
|
19041
|
+
transaction: new AllocationRuleTransactionForm(rule.transaction || plainToClass(AllocationRuleTransaction, {}), isGST),
|
|
19042
|
+
transferBankAccount: new UntypedFormControl(rule.transferBankAccount, Validators.required),
|
|
19043
|
+
autoAllocate: new UntypedFormControl(rule.autoAllocate || false, Validators.required)
|
|
19044
|
+
}, rule);
|
|
19045
|
+
this.isGST = isGST;
|
|
19046
|
+
this.listenEvents();
|
|
19047
|
+
this.setupFieldsByType(rule.type);
|
|
19048
|
+
this.setupFieldsByTankType(rule.transaction?.tankType);
|
|
19049
|
+
this.updateChartAccountsCategories();
|
|
19050
|
+
if (!this.transactionFormGroup.get('chartAccounts').value?.isClaimPercentEditable()) {
|
|
19051
|
+
this.transactionFormGroup.get('claimPercent').disable();
|
|
19052
|
+
}
|
|
19053
|
+
}
|
|
19054
|
+
get conditionsArray() {
|
|
19055
|
+
return this.get('conditions');
|
|
19056
|
+
}
|
|
19057
|
+
get childTransactionsArray() {
|
|
19058
|
+
return this.transactionFormGroup.get('childTransactions');
|
|
19059
|
+
}
|
|
19060
|
+
get transactionFormGroup() {
|
|
19061
|
+
return this.get('transaction');
|
|
19062
|
+
}
|
|
19063
|
+
addConditionForm() {
|
|
19064
|
+
this.conditionsArray.push(new AllocationRuleConditionForm());
|
|
19065
|
+
}
|
|
19066
|
+
isTaxFieldHidden() {
|
|
19067
|
+
const chartAccounts = this.transactionFormGroup.get('chartAccounts').value;
|
|
19068
|
+
return !chartAccounts || !chartAccounts.isTaxable();
|
|
19069
|
+
}
|
|
19070
|
+
/**
|
|
19071
|
+
* TODO Alex: disable sole tank in form control when income selected
|
|
19072
|
+
*/
|
|
19073
|
+
isTransactionFieldsHidden() {
|
|
19074
|
+
return this.transactionFormGroup.get('tankType').value === null || this.currentValue.isSoleIncome();
|
|
19075
|
+
}
|
|
19076
|
+
submit() {
|
|
19077
|
+
const data = {
|
|
19078
|
+
conditions: this.conditionsArray.controls.map((conditionForm) => conditionForm.submit()),
|
|
19079
|
+
transaction: null
|
|
19080
|
+
};
|
|
19081
|
+
if (!this.currentValue.isTransfer()) {
|
|
19082
|
+
data.transaction = this.transactionFormGroup.submit();
|
|
19083
|
+
}
|
|
19084
|
+
return super.submit(data);
|
|
19085
|
+
}
|
|
19086
|
+
listenEvents() {
|
|
19087
|
+
this.listenTankTypeChanges();
|
|
19088
|
+
this.listenTypeChanges();
|
|
19089
|
+
}
|
|
19090
|
+
listenTypeChanges() {
|
|
19091
|
+
this.get('type').valueChanges.subscribe((type) => {
|
|
19092
|
+
this.setupFieldsByType(type);
|
|
19093
|
+
this.updateChartAccountsCategories();
|
|
19094
|
+
// we have different fields for different types
|
|
19095
|
+
this.get('transaction').reset();
|
|
19096
|
+
});
|
|
19097
|
+
}
|
|
19098
|
+
listenTankTypeChanges() {
|
|
19099
|
+
this.transactionFormGroup.get('tankType').valueChanges.subscribe((tankType) => {
|
|
19100
|
+
this.updateChartAccountsCategories();
|
|
19101
|
+
this.setupFieldsByTankType(tankType);
|
|
19102
|
+
});
|
|
19103
|
+
}
|
|
19104
|
+
/**
|
|
19105
|
+
* Update list of chart accounts categories allowed for transaction
|
|
19106
|
+
* Depends on transaction type and tank type
|
|
19107
|
+
*/
|
|
19108
|
+
updateChartAccountsCategories() {
|
|
19109
|
+
// We use unique one Chart Accounts for transfer
|
|
19110
|
+
if (this.currentValue.isTransfer()) {
|
|
19111
|
+
this.chartAccountsCategories = null;
|
|
19112
|
+
return;
|
|
19113
|
+
}
|
|
19114
|
+
const excludedCategories = [...CHART_ACCOUNTS_CATEGORIES.depreciation];
|
|
19115
|
+
this.chartAccountsCategories = intersection(CHART_ACCOUNTS_CATEGORIES[this.currentValue.typeLabel], CHART_ACCOUNTS_CATEGORIES[this.currentValue.tankTypeLabel])
|
|
19116
|
+
.filter((category) => !excludedCategories.includes(category));
|
|
19117
|
+
}
|
|
19118
|
+
setupFieldsByType(type) {
|
|
19119
|
+
switch (type) {
|
|
19120
|
+
case AllocationRuleTypeEnum.EXPENSE:
|
|
19121
|
+
case AllocationRuleTypeEnum.INCOME:
|
|
19122
|
+
this.get('transaction').enable({ emitEvent: false });
|
|
19123
|
+
this.get('transferBankAccount').disable({ emitEvent: false });
|
|
19124
|
+
break;
|
|
19125
|
+
case AllocationRuleTypeEnum.TRANSFER:
|
|
19126
|
+
this.get('transaction').disable({ emitEvent: false });
|
|
19127
|
+
this.get('transferBankAccount').enable({ emitEvent: false });
|
|
19128
|
+
return;
|
|
19129
|
+
}
|
|
19130
|
+
}
|
|
19131
|
+
setupFieldsByTankType(tankType) {
|
|
19132
|
+
// First disable tankType-related fields, second enable for selected tank type
|
|
19133
|
+
this.transactionFormGroup.get('property').disable({ emitEvent: false });
|
|
19134
|
+
this.transactionFormGroup.get('business').disable({ emitEvent: false });
|
|
19135
|
+
this.transactionFormGroup.get('isGST').disable({ emitEvent: false });
|
|
19136
|
+
this.transactionFormGroup.get('incomeSource').disable({ emitEvent: false });
|
|
19137
|
+
switch (tankType) {
|
|
19138
|
+
case TankTypeEnum.WORK:
|
|
19139
|
+
this.transactionFormGroup.get('incomeSource').enable({ emitEvent: false });
|
|
19140
|
+
break;
|
|
19141
|
+
case TankTypeEnum.PROPERTY:
|
|
19142
|
+
this.transactionFormGroup.get('property').enable({ emitEvent: false });
|
|
19143
|
+
break;
|
|
19144
|
+
case TankTypeEnum.SOLE:
|
|
19145
|
+
this.transactionFormGroup.get('business').enable({ emitEvent: false });
|
|
19146
|
+
if (this.isGST) {
|
|
19147
|
+
this.transactionFormGroup.get('isGST').enable({ emitEvent: false });
|
|
19148
|
+
}
|
|
19149
|
+
break;
|
|
19150
|
+
}
|
|
19151
|
+
}
|
|
19152
|
+
}
|
|
19153
|
+
|
|
18554
19154
|
/**
|
|
18555
19155
|
* @TODO refactor, move specific fields like property in separated forms
|
|
18556
19156
|
* @TODO remove useless getters
|
|
@@ -18708,10 +19308,10 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
18708
19308
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
18709
19309
|
super(transaction, registeredForGst, allocations, Object.assign(controls, {
|
|
18710
19310
|
// additional data related to work (like tax instalments)
|
|
18711
|
-
|
|
19311
|
+
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
|
|
18712
19312
|
return new FormGroup({
|
|
18713
|
-
value: new FormControl(
|
|
18714
|
-
|
|
19313
|
+
value: new FormControl(transactionMetaField.value),
|
|
19314
|
+
chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
|
|
18715
19315
|
});
|
|
18716
19316
|
}))
|
|
18717
19317
|
}));
|
|
@@ -18723,20 +19323,20 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
18723
19323
|
watchChartAccounts() {
|
|
18724
19324
|
super.watchChartAccounts();
|
|
18725
19325
|
this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
|
18726
|
-
this.
|
|
19326
|
+
this.buildMetaFieldsForm();
|
|
18727
19327
|
});
|
|
18728
19328
|
}
|
|
18729
19329
|
/**
|
|
18730
19330
|
* depends on chartAccounts the form could include different extra fields
|
|
18731
19331
|
*/
|
|
18732
|
-
|
|
19332
|
+
buildMetaFieldsForm() {
|
|
18733
19333
|
// Remove all controls in the FormArray before pushing
|
|
18734
|
-
this.get('
|
|
18735
|
-
// create form controls for each
|
|
18736
|
-
(this.get('chartAccounts').value.
|
|
18737
|
-
this.get('
|
|
18738
|
-
value: new FormControl(
|
|
18739
|
-
|
|
19334
|
+
this.get('metaFields').clear();
|
|
19335
|
+
// create form controls for each metaField object from selected chart accounts
|
|
19336
|
+
(this.get('chartAccounts').value.metaFields).forEach((chartAccountsMetaField) => {
|
|
19337
|
+
this.get('metaFields').push(new FormGroup({
|
|
19338
|
+
value: new FormControl(chartAccountsMetaField.isSharePercentage() ? 100 : 0),
|
|
19339
|
+
chartAccountsMetaField: new FormControl(chartAccountsMetaField),
|
|
18740
19340
|
}));
|
|
18741
19341
|
});
|
|
18742
19342
|
}
|
|
@@ -18825,24 +19425,24 @@ class WorkIncomeForm extends WorkTransactionForm {
|
|
|
18825
19425
|
class WorkExpenseForm extends WorkTransactionForm {
|
|
18826
19426
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
18827
19427
|
super(transaction, registeredForGst, allocations, controls);
|
|
18828
|
-
// amount set automatically for chartAccounts with hours
|
|
18829
|
-
if (transaction.
|
|
19428
|
+
// amount set automatically for chartAccounts with hours meta field
|
|
19429
|
+
if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
|
|
18830
19430
|
this.get('amount').disable();
|
|
18831
19431
|
}
|
|
18832
19432
|
}
|
|
18833
19433
|
listenEvents() {
|
|
18834
|
-
this.
|
|
19434
|
+
this.watchChartAccountsMetaFields();
|
|
18835
19435
|
}
|
|
18836
|
-
|
|
18837
|
-
this.get('
|
|
18838
|
-
const
|
|
18839
|
-
if (!
|
|
19436
|
+
watchChartAccountsMetaFields() {
|
|
19437
|
+
this.get('metaFields').valueChanges.subscribe((metaFields) => {
|
|
19438
|
+
const hoursMetaField = new Collection(metaFields).findBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.HOURS);
|
|
19439
|
+
if (!hoursMetaField) {
|
|
18840
19440
|
return;
|
|
18841
19441
|
}
|
|
18842
19442
|
// for home office hours expense amount is a fixed rate per hour
|
|
18843
19443
|
this.get('amount').reset();
|
|
18844
19444
|
this.get('amount').disable();
|
|
18845
|
-
this.get('amount').setValue((this.get('chartAccounts').value.getCurrentYearValue().value * +
|
|
19445
|
+
this.get('amount').setValue((this.get('chartAccounts').value.getCurrentYearValue().value * +hoursMetaField.value).toFixed(2));
|
|
18846
19446
|
});
|
|
18847
19447
|
}
|
|
18848
19448
|
}
|
|
@@ -18888,5 +19488,5 @@ class DepreciationForm extends TransactionBaseForm {
|
|
|
18888
19488
|
* Generated bundle index. Do not edit.
|
|
18889
19489
|
*/
|
|
18890
19490
|
|
|
18891
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, 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, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, StripePromoCode, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, 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, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
19491
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, 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, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, StripePromoCode, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, 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, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, 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, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
18892
19492
|
//# sourceMappingURL=taxtank-core.mjs.map
|