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
|
@@ -327,9 +327,6 @@ let BankConnection$1 = class BankConnection extends ObservableModel {
|
|
|
327
327
|
class BankTransactionImport extends AbstractModel {
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
class BankTransactionRule extends AbstractModel {
|
|
331
|
-
}
|
|
332
|
-
|
|
333
330
|
let BankTransaction$1 = class BankTransaction extends ObservableModel {
|
|
334
331
|
};
|
|
335
332
|
|
|
@@ -345,7 +342,7 @@ let ChartAccountsDepreciation$1 = class ChartAccountsDepreciation extends Abstra
|
|
|
345
342
|
let ChartAccountsHeading$1 = class ChartAccountsHeading extends AbstractModel {
|
|
346
343
|
};
|
|
347
344
|
|
|
348
|
-
let
|
|
345
|
+
let ChartAccountsMetaField$1 = class ChartAccountsMetaField extends AbstractModel {
|
|
349
346
|
};
|
|
350
347
|
|
|
351
348
|
let ChartAccountsValue$1 = class ChartAccountsValue extends AbstractModel {
|
|
@@ -534,13 +531,13 @@ let LoanPayout$1 = class LoanPayout extends ObservableModel {
|
|
|
534
531
|
let Loan$1 = class Loan extends ObservableModel {
|
|
535
532
|
};
|
|
536
533
|
|
|
537
|
-
let
|
|
534
|
+
let PropertySaleTaxExemptionMetaField$1 = class PropertySaleTaxExemptionMetaField extends AbstractModel {
|
|
538
535
|
};
|
|
539
536
|
|
|
540
537
|
let PropertySale$1 = class PropertySale extends ObservableModel {
|
|
541
538
|
};
|
|
542
539
|
|
|
543
|
-
let
|
|
540
|
+
let TaxExemptionMetaField$1 = class TaxExemptionMetaField extends AbstractModel {
|
|
544
541
|
};
|
|
545
542
|
|
|
546
543
|
let TaxExemption$1 = class TaxExemption extends AbstractModel {
|
|
@@ -636,7 +633,7 @@ class TaxReturn extends AbstractModel {
|
|
|
636
633
|
let TransactionAllocation$1 = class TransactionAllocation extends AbstractModel {
|
|
637
634
|
};
|
|
638
635
|
|
|
639
|
-
let
|
|
636
|
+
let TransactionMetaField$1 = class TransactionMetaField extends AbstractModel {
|
|
640
637
|
};
|
|
641
638
|
|
|
642
639
|
let TransactionReceipt$1 = class TransactionReceipt extends AbstractModel {
|
|
@@ -1615,30 +1612,30 @@ class PropertySaleCollection extends Collection {
|
|
|
1615
1612
|
}
|
|
1616
1613
|
}
|
|
1617
1614
|
|
|
1618
|
-
var
|
|
1619
|
-
(function (
|
|
1615
|
+
var TaxExemptionMetaFieldEnum;
|
|
1616
|
+
(function (TaxExemptionMetaFieldEnum) {
|
|
1620
1617
|
// principle place of residence
|
|
1621
|
-
|
|
1618
|
+
TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["PPR_DAYS"] = 1] = "PPR_DAYS";
|
|
1622
1619
|
// market value once it was moved, decimal
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
})(
|
|
1620
|
+
TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["MARKET_VALUE"] = 2] = "MARKET_VALUE";
|
|
1621
|
+
TaxExemptionMetaFieldEnum[TaxExemptionMetaFieldEnum["CLAIM_PERCENT"] = 3] = "CLAIM_PERCENT";
|
|
1622
|
+
})(TaxExemptionMetaFieldEnum || (TaxExemptionMetaFieldEnum = {}));
|
|
1626
1623
|
|
|
1627
|
-
class
|
|
1624
|
+
class PropertySaleTaxExemptionMetaFieldCollection extends Collection {
|
|
1628
1625
|
getPPRDays() {
|
|
1629
1626
|
var _a, _b;
|
|
1630
|
-
return (_b = (_a = this.
|
|
1627
|
+
return (_b = (_a = this.getByMetaFieldId(TaxExemptionMetaFieldEnum.PPR_DAYS)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
|
|
1631
1628
|
}
|
|
1632
1629
|
getMarketValue() {
|
|
1633
1630
|
var _a, _b;
|
|
1634
|
-
return (_b = (_a = this.
|
|
1631
|
+
return (_b = (_a = this.getByMetaFieldId(TaxExemptionMetaFieldEnum.MARKET_VALUE)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
|
|
1635
1632
|
}
|
|
1636
1633
|
getClaimPercent() {
|
|
1637
1634
|
var _a, _b;
|
|
1638
|
-
return (_b = (_a = this.
|
|
1635
|
+
return (_b = (_a = this.getByMetaFieldId(TaxExemptionMetaFieldEnum.CLAIM_PERCENT)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 100;
|
|
1639
1636
|
}
|
|
1640
|
-
|
|
1641
|
-
return this.items.find((
|
|
1637
|
+
getByMetaFieldId(id) {
|
|
1638
|
+
return this.items.find((metaField) => metaField.metaField.id === id);
|
|
1642
1639
|
}
|
|
1643
1640
|
}
|
|
1644
1641
|
|
|
@@ -1820,10 +1817,33 @@ var DepreciationCalculationEnum;
|
|
|
1820
1817
|
DepreciationCalculationEnum[DepreciationCalculationEnum["SBP"] = 6] = "SBP";
|
|
1821
1818
|
})(DepreciationCalculationEnum || (DepreciationCalculationEnum = {}));
|
|
1822
1819
|
|
|
1823
|
-
var
|
|
1824
|
-
(function (
|
|
1825
|
-
|
|
1826
|
-
|
|
1820
|
+
var AllocationRuleConditionComparisonOperatorEnum;
|
|
1821
|
+
(function (AllocationRuleConditionComparisonOperatorEnum) {
|
|
1822
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS"] = 1] = "EQUALS";
|
|
1823
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["CONTAINS"] = 2] = "CONTAINS";
|
|
1824
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["STARTS"] = 3] = "STARTS";
|
|
1825
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS_OR_GREATER"] = 4] = "EQUALS_OR_GREATER";
|
|
1826
|
+
AllocationRuleConditionComparisonOperatorEnum[AllocationRuleConditionComparisonOperatorEnum["EQUALS_OR_LESS"] = 5] = "EQUALS_OR_LESS";
|
|
1827
|
+
})(AllocationRuleConditionComparisonOperatorEnum || (AllocationRuleConditionComparisonOperatorEnum = {}));
|
|
1828
|
+
|
|
1829
|
+
var AllocationRuleConditionFieldEnum;
|
|
1830
|
+
(function (AllocationRuleConditionFieldEnum) {
|
|
1831
|
+
AllocationRuleConditionFieldEnum[AllocationRuleConditionFieldEnum["AMOUNT"] = 1] = "AMOUNT";
|
|
1832
|
+
AllocationRuleConditionFieldEnum[AllocationRuleConditionFieldEnum["DESCRIPTION"] = 2] = "DESCRIPTION";
|
|
1833
|
+
})(AllocationRuleConditionFieldEnum || (AllocationRuleConditionFieldEnum = {}));
|
|
1834
|
+
|
|
1835
|
+
var AllocationRuleConditionOperatorEnum;
|
|
1836
|
+
(function (AllocationRuleConditionOperatorEnum) {
|
|
1837
|
+
AllocationRuleConditionOperatorEnum[AllocationRuleConditionOperatorEnum["AND"] = 1] = "AND";
|
|
1838
|
+
AllocationRuleConditionOperatorEnum[AllocationRuleConditionOperatorEnum["OR"] = 2] = "OR";
|
|
1839
|
+
})(AllocationRuleConditionOperatorEnum || (AllocationRuleConditionOperatorEnum = {}));
|
|
1840
|
+
|
|
1841
|
+
var AllocationRuleTypeEnum;
|
|
1842
|
+
(function (AllocationRuleTypeEnum) {
|
|
1843
|
+
AllocationRuleTypeEnum[AllocationRuleTypeEnum["EXPENSE"] = 1] = "EXPENSE";
|
|
1844
|
+
AllocationRuleTypeEnum[AllocationRuleTypeEnum["INCOME"] = 2] = "INCOME";
|
|
1845
|
+
AllocationRuleTypeEnum[AllocationRuleTypeEnum["TRANSFER"] = 3] = "TRANSFER";
|
|
1846
|
+
})(AllocationRuleTypeEnum || (AllocationRuleTypeEnum = {}));
|
|
1827
1847
|
|
|
1828
1848
|
var AnnualFrequencyEnum;
|
|
1829
1849
|
(function (AnnualFrequencyEnum) {
|
|
@@ -2029,30 +2049,30 @@ var ChartAccountsListEnum;
|
|
|
2029
2049
|
ChartAccountsListEnum[ChartAccountsListEnum["PSI_DEDUCTION_OTHER"] = 860] = "PSI_DEDUCTION_OTHER";
|
|
2030
2050
|
})(ChartAccountsListEnum || (ChartAccountsListEnum = {}));
|
|
2031
2051
|
|
|
2032
|
-
var
|
|
2033
|
-
(function (
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
})(
|
|
2050
|
-
|
|
2051
|
-
var
|
|
2052
|
-
(function (
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
})(
|
|
2052
|
+
var ChartAccountsMetaFieldListEnum;
|
|
2053
|
+
(function (ChartAccountsMetaFieldListEnum) {
|
|
2054
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_INSTALMENTS"] = 4] = "TAX_INSTALMENTS";
|
|
2055
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["FRANKING_CREDIT"] = 5] = "FRANKING_CREDIT";
|
|
2056
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["ELIGIBLE_FOR_REDUCTION"] = 6] = "ELIGIBLE_FOR_REDUCTION";
|
|
2057
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["SHARE_PERCENTAGE"] = 7] = "SHARE_PERCENTAGE";
|
|
2058
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_OFFSETS"] = 8] = "TAX_OFFSETS";
|
|
2059
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["HOURS"] = 11] = "HOURS";
|
|
2060
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_PAID"] = 13] = "TAX_PAID";
|
|
2061
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_FREE_COMPONENT"] = 18] = "TAX_FREE_COMPONENT";
|
|
2062
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["YEARS_OF_SERVICE"] = 19] = "YEARS_OF_SERVICE";
|
|
2063
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["UNTAXED_ELEMENT"] = 24] = "UNTAXED_ELEMENT";
|
|
2064
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["NOT_ELIGIBLE_FOR_DEDUCTION"] = 25] = "NOT_ELIGIBLE_FOR_DEDUCTION";
|
|
2065
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["FRANKED"] = 26] = "FRANKED";
|
|
2066
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["UNFRANKED"] = 27] = "UNFRANKED";
|
|
2067
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["TAX_OFFSETS_N_R_A_S"] = 29] = "TAX_OFFSETS_N_R_A_S";
|
|
2068
|
+
ChartAccountsMetaFieldListEnum[ChartAccountsMetaFieldListEnum["DISCOUNT_FROM_DEFERRED_SCHEMES"] = 32] = "DISCOUNT_FROM_DEFERRED_SCHEMES";
|
|
2069
|
+
})(ChartAccountsMetaFieldListEnum || (ChartAccountsMetaFieldListEnum = {}));
|
|
2070
|
+
|
|
2071
|
+
var ChartAccountsMetaFieldTypeEnum;
|
|
2072
|
+
(function (ChartAccountsMetaFieldTypeEnum) {
|
|
2073
|
+
ChartAccountsMetaFieldTypeEnum[ChartAccountsMetaFieldTypeEnum["NUMBER"] = 3] = "NUMBER";
|
|
2074
|
+
ChartAccountsMetaFieldTypeEnum[ChartAccountsMetaFieldTypeEnum["BOOLEAN"] = 4] = "BOOLEAN";
|
|
2075
|
+
})(ChartAccountsMetaFieldTypeEnum || (ChartAccountsMetaFieldTypeEnum = {}));
|
|
2056
2076
|
|
|
2057
2077
|
var ChartAccountsSalaryAdjustmentsListEnum;
|
|
2058
2078
|
(function (ChartAccountsSalaryAdjustmentsListEnum) {
|
|
@@ -2101,6 +2121,11 @@ var ChartAccountsKeepSign;
|
|
|
2101
2121
|
ChartAccountsKeepSign[ChartAccountsKeepSign["ADVANCE"] = 556] = "ADVANCE";
|
|
2102
2122
|
})(ChartAccountsKeepSign || (ChartAccountsKeepSign = {}));
|
|
2103
2123
|
|
|
2124
|
+
var DocumentTypeEnum;
|
|
2125
|
+
(function (DocumentTypeEnum) {
|
|
2126
|
+
DocumentTypeEnum[DocumentTypeEnum["INVOICE"] = 1] = "INVOICE";
|
|
2127
|
+
})(DocumentTypeEnum || (DocumentTypeEnum = {}));
|
|
2128
|
+
|
|
2104
2129
|
// @TODO Artem TT-2308 move everything
|
|
2105
2130
|
|
|
2106
2131
|
class DepreciationCapitalProject extends DepreciationCapitalProject$1 {
|
|
@@ -2292,15 +2317,15 @@ class ChartAccountsCategoryECollection {
|
|
|
2292
2317
|
class ChartAccountsHeading extends ChartAccountsHeading$1 {
|
|
2293
2318
|
}
|
|
2294
2319
|
|
|
2295
|
-
class
|
|
2320
|
+
class ChartAccountsMetaField extends ChartAccountsMetaField$1 {
|
|
2296
2321
|
/**
|
|
2297
|
-
* Check if
|
|
2322
|
+
* Check if meta field id is related to SHARE_PERCENTAGE value
|
|
2298
2323
|
*/
|
|
2299
2324
|
isSharePercentage() {
|
|
2300
|
-
return this.id ===
|
|
2325
|
+
return this.id === ChartAccountsMetaFieldListEnum.SHARE_PERCENTAGE;
|
|
2301
2326
|
}
|
|
2302
2327
|
isHours() {
|
|
2303
|
-
return this.id ===
|
|
2328
|
+
return this.id === ChartAccountsMetaFieldListEnum.HOURS;
|
|
2304
2329
|
}
|
|
2305
2330
|
}
|
|
2306
2331
|
|
|
@@ -3011,6 +3036,12 @@ class ChartAccounts extends ChartAccounts$1 {
|
|
|
3011
3036
|
isPropertyCapitalWorks() {
|
|
3012
3037
|
return this.category === ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS;
|
|
3013
3038
|
}
|
|
3039
|
+
isTaxable() {
|
|
3040
|
+
return !this.isNRAS() && this.isWorkIncome();
|
|
3041
|
+
}
|
|
3042
|
+
isTransfer() {
|
|
3043
|
+
return this.id === ChartAccountsListEnum.TRANSFER;
|
|
3044
|
+
}
|
|
3014
3045
|
}
|
|
3015
3046
|
/**
|
|
3016
3047
|
* Australian GST percent value (VAT)
|
|
@@ -3022,8 +3053,8 @@ __decorate([
|
|
|
3022
3053
|
Type(() => ChartAccountsHeading)
|
|
3023
3054
|
], ChartAccounts.prototype, "heading", void 0);
|
|
3024
3055
|
__decorate([
|
|
3025
|
-
Type(() =>
|
|
3026
|
-
], ChartAccounts.prototype, "
|
|
3056
|
+
Type(() => ChartAccountsMetaField)
|
|
3057
|
+
], ChartAccounts.prototype, "metaFields", void 0);
|
|
3027
3058
|
__decorate([
|
|
3028
3059
|
Type(() => ChartAccountsValue),
|
|
3029
3060
|
Transform(({ obj }) => CHART_ACCOUNTS_VALUES.get(obj.id).toArray(), { toClassOnly: true }),
|
|
@@ -3043,6 +3074,440 @@ __decorate([
|
|
|
3043
3074
|
Transform(({ value }) => +value)
|
|
3044
3075
|
], ChartAccountsDepreciation.prototype, "effectiveLife", void 0);
|
|
3045
3076
|
|
|
3077
|
+
let AllocationRule$1 = class AllocationRule extends AbstractModel {
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
let AllocationRuleCondition$1 = class AllocationRuleCondition extends AbstractModel {
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
class AllocationRuleCondition extends AllocationRuleCondition$1 {
|
|
3084
|
+
matchBankTransaction(bankTransaction) {
|
|
3085
|
+
return this.field === AllocationRuleConditionFieldEnum.AMOUNT ? this.matchBankTransactionByAmount(bankTransaction) : this.matchBankTransactionByDescription(bankTransaction);
|
|
3086
|
+
}
|
|
3087
|
+
matchBankTransactionByAmount(bankTransaction) {
|
|
3088
|
+
// Amount should be compared as number
|
|
3089
|
+
const value = +this.value;
|
|
3090
|
+
switch (this.comparisonOperator) {
|
|
3091
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS:
|
|
3092
|
+
return bankTransaction.amount === value;
|
|
3093
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS_OR_LESS:
|
|
3094
|
+
return bankTransaction.amount <= value;
|
|
3095
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS_OR_GREATER:
|
|
3096
|
+
return bankTransaction.amount >= value;
|
|
3097
|
+
}
|
|
3098
|
+
return false;
|
|
3099
|
+
}
|
|
3100
|
+
matchBankTransactionByDescription(bankTransaction) {
|
|
3101
|
+
// Prepare value and description for comparison
|
|
3102
|
+
const description = bankTransaction.description.toLowerCase();
|
|
3103
|
+
const value = this.value.trim().toLowerCase();
|
|
3104
|
+
switch (this.comparisonOperator) {
|
|
3105
|
+
case AllocationRuleConditionComparisonOperatorEnum.EQUALS:
|
|
3106
|
+
return description === value;
|
|
3107
|
+
case AllocationRuleConditionComparisonOperatorEnum.CONTAINS:
|
|
3108
|
+
return description.includes(value);
|
|
3109
|
+
case AllocationRuleConditionComparisonOperatorEnum.STARTS:
|
|
3110
|
+
return description.startsWith(value);
|
|
3111
|
+
}
|
|
3112
|
+
return false;
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
let AllocationRuleTransaction$1 = class AllocationRuleTransaction extends TransactionBase {
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
let AllocationRuleTransactionMetaField$1 = class AllocationRuleTransactionMetaField extends AbstractModel {
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
class AllocationRuleTransactionMetaField extends AllocationRuleTransactionMetaField$1 {
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
var IncomeSourceTypeEnum;
|
|
3126
|
+
(function (IncomeSourceTypeEnum) {
|
|
3127
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
3128
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
3129
|
+
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
3130
|
+
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
3131
|
+
|
|
3132
|
+
class SalaryForecast extends SalaryForecast$1 {
|
|
3133
|
+
get taxWithheld() {
|
|
3134
|
+
return this.grossAmount - this.netPay;
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
__decorate([
|
|
3138
|
+
Transform(({ obj }) => obj.netPay + obj.tax),
|
|
3139
|
+
Expose()
|
|
3140
|
+
], SalaryForecast.prototype, "grossAmount", void 0);
|
|
3141
|
+
__decorate([
|
|
3142
|
+
Type(() => IncomeSource)
|
|
3143
|
+
], SalaryForecast.prototype, "incomeSource", void 0);
|
|
3144
|
+
|
|
3145
|
+
class SoleForecast extends SoleForecast$1 {
|
|
3146
|
+
get netPay() {
|
|
3147
|
+
return this.amount;
|
|
3148
|
+
}
|
|
3149
|
+
;
|
|
3150
|
+
}
|
|
3151
|
+
__decorate([
|
|
3152
|
+
Type(() => IncomeSource)
|
|
3153
|
+
], SoleForecast.prototype, "incomeSource", void 0);
|
|
3154
|
+
|
|
3155
|
+
var SalaryForecastFrequencyEnum;
|
|
3156
|
+
(function (SalaryForecastFrequencyEnum) {
|
|
3157
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
|
|
3158
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
|
|
3159
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
|
|
3160
|
+
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
|
|
3161
|
+
})(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
|
|
3162
|
+
|
|
3163
|
+
var IncomeSourceTypeListWorkEnum;
|
|
3164
|
+
(function (IncomeSourceTypeListWorkEnum) {
|
|
3165
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
|
|
3166
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
|
|
3167
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
|
|
3168
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
|
|
3169
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
3170
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
|
|
3171
|
+
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
|
|
3172
|
+
})(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
|
|
3173
|
+
|
|
3174
|
+
var IncomeSourceTypeListOtherEnum;
|
|
3175
|
+
(function (IncomeSourceTypeListOtherEnum) {
|
|
3176
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
|
|
3177
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3178
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
|
|
3179
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
|
|
3180
|
+
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
|
|
3181
|
+
})(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
|
|
3182
|
+
|
|
3183
|
+
var IncomeSourceTypeListSoleEnum;
|
|
3184
|
+
(function (IncomeSourceTypeListSoleEnum) {
|
|
3185
|
+
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3186
|
+
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
3187
|
+
|
|
3188
|
+
class IncomeSourceType extends IncomeSourceType$1 {
|
|
3189
|
+
isBonuses() {
|
|
3190
|
+
return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
|
|
3191
|
+
}
|
|
3192
|
+
isWork() {
|
|
3193
|
+
return !!IncomeSourceTypeListWorkEnum[this.id];
|
|
3194
|
+
}
|
|
3195
|
+
isOther() {
|
|
3196
|
+
return !!IncomeSourceTypeListOtherEnum[this.id];
|
|
3197
|
+
}
|
|
3198
|
+
isSole() {
|
|
3199
|
+
return !!IncomeSourceTypeListSoleEnum[this.id];
|
|
3200
|
+
}
|
|
3201
|
+
get type() {
|
|
3202
|
+
switch (true) {
|
|
3203
|
+
case this.isWork():
|
|
3204
|
+
return IncomeSourceTypeEnum.WORK;
|
|
3205
|
+
case this.isSole():
|
|
3206
|
+
return IncomeSourceTypeEnum.SOLE;
|
|
3207
|
+
default:
|
|
3208
|
+
return IncomeSourceTypeEnum.OTHER;
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
class IncomeSourceForecast extends IncomeSourceForecast$1 {
|
|
3214
|
+
constructor() {
|
|
3215
|
+
super(...arguments);
|
|
3216
|
+
this.paygIncome = 0;
|
|
3217
|
+
this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
|
|
3218
|
+
this.isTaxFree = false;
|
|
3219
|
+
}
|
|
3220
|
+
/**
|
|
3221
|
+
* Sometimes Income source has Salary & Income source forecasts,
|
|
3222
|
+
* and we need these fields to work with Income source forecasts like with Salary Forecasts
|
|
3223
|
+
*/
|
|
3224
|
+
get netPay() {
|
|
3225
|
+
return this.amount;
|
|
3226
|
+
}
|
|
3227
|
+
get grossAmount() {
|
|
3228
|
+
return this.amount + this.tax + this.taxInstalments + this.frankingCredits;
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
__decorate([
|
|
3232
|
+
Type(() => IncomeSourceType)
|
|
3233
|
+
], IncomeSourceForecast.prototype, "incomeSourceType", void 0);
|
|
3234
|
+
__decorate([
|
|
3235
|
+
Type(() => IncomeSource)
|
|
3236
|
+
], IncomeSourceForecast.prototype, "incomeSource", void 0);
|
|
3237
|
+
|
|
3238
|
+
class IncomeSource extends IncomeSource$1 {
|
|
3239
|
+
isSalaryIncome() {
|
|
3240
|
+
return !!this.salaryForecasts.length;
|
|
3241
|
+
// @TODO Vik: old code
|
|
3242
|
+
// return this.type === IncomeSourceTypeEnum.SALARY;
|
|
3243
|
+
}
|
|
3244
|
+
isSoleIncome() {
|
|
3245
|
+
return !!this.soleForecasts.length;
|
|
3246
|
+
}
|
|
3247
|
+
isWorkIncome() {
|
|
3248
|
+
return this.type === IncomeSourceTypeEnum.WORK;
|
|
3249
|
+
}
|
|
3250
|
+
isOtherIncome() {
|
|
3251
|
+
return this.type === IncomeSourceTypeEnum.OTHER || (!this.isSoleIncome() && !this.isSalaryIncome());
|
|
3252
|
+
}
|
|
3253
|
+
/**
|
|
3254
|
+
* Get salary and other income forecasts
|
|
3255
|
+
*/
|
|
3256
|
+
get forecasts() {
|
|
3257
|
+
return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
|
|
3258
|
+
}
|
|
3259
|
+
/**
|
|
3260
|
+
* Get actual (1st from the list) forecast
|
|
3261
|
+
*/
|
|
3262
|
+
get actualForecast() {
|
|
3263
|
+
return this.forecasts[0];
|
|
3264
|
+
}
|
|
3265
|
+
/**
|
|
3266
|
+
* Check if user was working in month taken by the index
|
|
3267
|
+
* @param monthIndex by which month should be taken
|
|
3268
|
+
*/
|
|
3269
|
+
isWorkedInMonth(monthIndex) {
|
|
3270
|
+
const monthDate = new FinancialYear().getMonthDate(monthIndex);
|
|
3271
|
+
return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
__decorate([
|
|
3275
|
+
Type(() => SalaryForecast)
|
|
3276
|
+
], IncomeSource.prototype, "salaryForecasts", void 0);
|
|
3277
|
+
__decorate([
|
|
3278
|
+
Type(() => SoleForecast)
|
|
3279
|
+
], IncomeSource.prototype, "soleForecasts", void 0);
|
|
3280
|
+
__decorate([
|
|
3281
|
+
Type(() => IncomeSourceForecast)
|
|
3282
|
+
], IncomeSource.prototype, "incomeSourceForecasts", void 0);
|
|
3283
|
+
__decorate([
|
|
3284
|
+
Type(() => Date)
|
|
3285
|
+
], IncomeSource.prototype, "dateFrom", void 0);
|
|
3286
|
+
__decorate([
|
|
3287
|
+
Type(() => Date)
|
|
3288
|
+
], IncomeSource.prototype, "dateTo", void 0);
|
|
3289
|
+
|
|
3290
|
+
var TransactionSourceEnum;
|
|
3291
|
+
(function (TransactionSourceEnum) {
|
|
3292
|
+
TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
|
|
3293
|
+
TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
|
|
3294
|
+
})(TransactionSourceEnum || (TransactionSourceEnum = {}));
|
|
3295
|
+
|
|
3296
|
+
class AllocationRuleTransaction extends AllocationRuleTransaction$1 {
|
|
3297
|
+
calculateClaimPercent() {
|
|
3298
|
+
var _a, _b;
|
|
3299
|
+
if (!this.chartAccounts) {
|
|
3300
|
+
return null;
|
|
3301
|
+
}
|
|
3302
|
+
let claimPercent = this.chartAccounts.taxablePercent;
|
|
3303
|
+
// Property claim (ownership% x shared%) for property expenses, taxable percent for others
|
|
3304
|
+
if (((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.isProperty()) && this.property) {
|
|
3305
|
+
if (this.chartAccounts.isPropertyExpense() && this.chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
|
|
3306
|
+
claimPercent *= (_b = this.property) === null || _b === void 0 ? void 0 : _b.claimCoefficient;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
return claimPercent;
|
|
3310
|
+
}
|
|
3311
|
+
/**
|
|
3312
|
+
* Create Transaction instance based on passed bank transaction and rule transaction
|
|
3313
|
+
*/
|
|
3314
|
+
toTransaction(bankTransaction) {
|
|
3315
|
+
return plainToClass(Transaction, {
|
|
3316
|
+
amount: bankTransaction.amount,
|
|
3317
|
+
description: bankTransaction.description,
|
|
3318
|
+
type: bankTransaction.type,
|
|
3319
|
+
date: bankTransaction.date,
|
|
3320
|
+
source: TransactionSourceEnum.BANK_TRANSACTION,
|
|
3321
|
+
tax: this.tax,
|
|
3322
|
+
claimPercent: this.claimPercent,
|
|
3323
|
+
isGST: this.isGST,
|
|
3324
|
+
chartAccounts: this.chartAccounts,
|
|
3325
|
+
property: this.property,
|
|
3326
|
+
loan: this.loan,
|
|
3327
|
+
incomeSource: this.incomeSource,
|
|
3328
|
+
metaFields: this.metaFields,
|
|
3329
|
+
parentTransaction: this.parentTransaction,
|
|
3330
|
+
childTransactions: this.childTransactions,
|
|
3331
|
+
business: this.business,
|
|
3332
|
+
operation: TransactionOperationEnum.ALLOCATE,
|
|
3333
|
+
allocations: [TransactionAllocation.create(bankTransaction.amount, bankTransaction)],
|
|
3334
|
+
});
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
__decorate([
|
|
3338
|
+
Type(() => ChartAccounts)
|
|
3339
|
+
// @TODO Alex: Create custom decorator for this transform
|
|
3340
|
+
,
|
|
3341
|
+
Transform(({ value }) => {
|
|
3342
|
+
return { id: value.id };
|
|
3343
|
+
}, { toPlainOnly: true })
|
|
3344
|
+
], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
|
|
3345
|
+
__decorate([
|
|
3346
|
+
Type(() => Property),
|
|
3347
|
+
Transform(({ value }) => {
|
|
3348
|
+
return value ? { id: value.id } : null;
|
|
3349
|
+
}, { toPlainOnly: true })
|
|
3350
|
+
], AllocationRuleTransaction.prototype, "property", void 0);
|
|
3351
|
+
__decorate([
|
|
3352
|
+
Type(() => Loan),
|
|
3353
|
+
Transform(({ value }) => {
|
|
3354
|
+
return value ? { id: value.id } : null;
|
|
3355
|
+
}, { toPlainOnly: true })
|
|
3356
|
+
], AllocationRuleTransaction.prototype, "loan", void 0);
|
|
3357
|
+
__decorate([
|
|
3358
|
+
Type(() => IncomeSource),
|
|
3359
|
+
Transform(({ value }) => {
|
|
3360
|
+
return value ? { id: value.id } : null;
|
|
3361
|
+
}, { toPlainOnly: true })
|
|
3362
|
+
], AllocationRuleTransaction.prototype, "incomeSource", void 0);
|
|
3363
|
+
__decorate([
|
|
3364
|
+
Type(() => SoleBusiness),
|
|
3365
|
+
Transform(({ value }) => {
|
|
3366
|
+
return value ? { id: value.id } : null;
|
|
3367
|
+
}, { toPlainOnly: true })
|
|
3368
|
+
], AllocationRuleTransaction.prototype, "business", void 0);
|
|
3369
|
+
__decorate([
|
|
3370
|
+
Type(() => AllocationRuleTransactionMetaField)
|
|
3371
|
+
], AllocationRuleTransaction.prototype, "metaFields", void 0);
|
|
3372
|
+
__decorate([
|
|
3373
|
+
Type(() => AllocationRuleTransaction)
|
|
3374
|
+
], AllocationRuleTransaction.prototype, "parentTransaction", void 0);
|
|
3375
|
+
__decorate([
|
|
3376
|
+
Type(() => AllocationRuleTransaction)
|
|
3377
|
+
], AllocationRuleTransaction.prototype, "childTransactions", void 0);
|
|
3378
|
+
__decorate([
|
|
3379
|
+
Type(() => Number)
|
|
3380
|
+
], AllocationRuleTransaction.prototype, "claimPercent", void 0);
|
|
3381
|
+
|
|
3382
|
+
class AllocationRule extends AllocationRule$1 {
|
|
3383
|
+
constructor() {
|
|
3384
|
+
super(...arguments);
|
|
3385
|
+
this.type = AllocationRuleTypeEnum.EXPENSE;
|
|
3386
|
+
this.conditionOperator = AllocationRuleConditionOperatorEnum.OR;
|
|
3387
|
+
}
|
|
3388
|
+
get typeLabel() {
|
|
3389
|
+
switch (this.type) {
|
|
3390
|
+
case AllocationRuleTypeEnum.EXPENSE:
|
|
3391
|
+
return 'expense';
|
|
3392
|
+
case AllocationRuleTypeEnum.INCOME:
|
|
3393
|
+
return 'income';
|
|
3394
|
+
default:
|
|
3395
|
+
return 'transfer';
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
get tankTypeLabel() {
|
|
3399
|
+
switch (this.transaction.tankType) {
|
|
3400
|
+
case TankTypeEnum.WORK:
|
|
3401
|
+
return 'work';
|
|
3402
|
+
case TankTypeEnum.PROPERTY:
|
|
3403
|
+
return 'property';
|
|
3404
|
+
case TankTypeEnum.SOLE:
|
|
3405
|
+
return 'sole';
|
|
3406
|
+
default:
|
|
3407
|
+
return 'personal';
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
isIncome() {
|
|
3411
|
+
return this.type === AllocationRuleTypeEnum.INCOME;
|
|
3412
|
+
}
|
|
3413
|
+
isExpense() {
|
|
3414
|
+
return this.type === AllocationRuleTypeEnum.EXPENSE;
|
|
3415
|
+
}
|
|
3416
|
+
isTransfer() {
|
|
3417
|
+
return this.type === AllocationRuleTypeEnum.TRANSFER;
|
|
3418
|
+
}
|
|
3419
|
+
isPropertyTank() {
|
|
3420
|
+
return this.transaction.tankType === TankTypeEnum.PROPERTY;
|
|
3421
|
+
}
|
|
3422
|
+
isWorkTank() {
|
|
3423
|
+
return this.transaction.tankType === TankTypeEnum.WORK;
|
|
3424
|
+
}
|
|
3425
|
+
isSoleTank() {
|
|
3426
|
+
return this.transaction.tankType === TankTypeEnum.SOLE;
|
|
3427
|
+
}
|
|
3428
|
+
isPropertyIncome() {
|
|
3429
|
+
return this.isIncome() && this.isPropertyTank();
|
|
3430
|
+
}
|
|
3431
|
+
isWorkIncome() {
|
|
3432
|
+
return this.isIncome() && this.isWorkTank();
|
|
3433
|
+
}
|
|
3434
|
+
isSoleIncome() {
|
|
3435
|
+
return this.isIncome() && this.isSoleTank();
|
|
3436
|
+
}
|
|
3437
|
+
/**
|
|
3438
|
+
* @TODO Alex: move to collection
|
|
3439
|
+
*/
|
|
3440
|
+
matchBankTransaction(bankTransaction) {
|
|
3441
|
+
return this.conditionOperator === AllocationRuleConditionOperatorEnum.AND ? this.checkAnd(bankTransaction) : this.checkOr(bankTransaction);
|
|
3442
|
+
}
|
|
3443
|
+
createTransaction(bankTransaction) {
|
|
3444
|
+
if (this.isTransfer()) {
|
|
3445
|
+
const transaction = bankTransaction.toTransaction();
|
|
3446
|
+
transaction.operation = TransactionOperationEnum.TRANSFER;
|
|
3447
|
+
transaction.chartAccounts = plainToClass(ChartAccounts, { id: ChartAccountsListEnum.TRANSFER });
|
|
3448
|
+
return transaction;
|
|
3449
|
+
}
|
|
3450
|
+
return this.transaction.toTransaction(bankTransaction);
|
|
3451
|
+
}
|
|
3452
|
+
/**
|
|
3453
|
+
* Rule is matched when all conditions matched
|
|
3454
|
+
*/
|
|
3455
|
+
checkAnd(bankTransaction) {
|
|
3456
|
+
for (let condition of this.conditions) {
|
|
3457
|
+
if (!condition.matchBankTransaction(bankTransaction)) {
|
|
3458
|
+
return false;
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
return true;
|
|
3462
|
+
}
|
|
3463
|
+
/**
|
|
3464
|
+
* Rule is matched when at least one condition matched
|
|
3465
|
+
*/
|
|
3466
|
+
checkOr(bankTransaction) {
|
|
3467
|
+
for (let condition of this.conditions) {
|
|
3468
|
+
if (condition.matchBankTransaction(bankTransaction)) {
|
|
3469
|
+
return true;
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
return false;
|
|
3473
|
+
}
|
|
3474
|
+
/**
|
|
3475
|
+
* Create allocation rule based on bank transaction (just prefill rule fields with bank transaction values)
|
|
3476
|
+
*/
|
|
3477
|
+
static fromBankTransaction(bankTransaction) {
|
|
3478
|
+
return plainToClass(AllocationRule, {
|
|
3479
|
+
type: bankTransaction.isDebit() ? AllocationRuleTypeEnum.EXPENSE : AllocationRuleTypeEnum.INCOME,
|
|
3480
|
+
bankAccount: bankTransaction.bankAccount,
|
|
3481
|
+
conditionOperator: AllocationRuleConditionOperatorEnum.AND,
|
|
3482
|
+
conditions: [
|
|
3483
|
+
plainToClass(AllocationRuleCondition, {
|
|
3484
|
+
field: AllocationRuleConditionFieldEnum.AMOUNT,
|
|
3485
|
+
comparisonOperator: AllocationRuleConditionComparisonOperatorEnum.EQUALS,
|
|
3486
|
+
value: bankTransaction.amount
|
|
3487
|
+
}),
|
|
3488
|
+
plainToClass(AllocationRuleCondition, {
|
|
3489
|
+
field: AllocationRuleConditionFieldEnum.DESCRIPTION,
|
|
3490
|
+
comparisonOperator: AllocationRuleConditionComparisonOperatorEnum.EQUALS,
|
|
3491
|
+
value: bankTransaction.description
|
|
3492
|
+
})
|
|
3493
|
+
]
|
|
3494
|
+
});
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
__decorate([
|
|
3498
|
+
Type(() => BankAccount),
|
|
3499
|
+
Transform(({ value }) => { return { id: value.id }; }, { toPlainOnly: true })
|
|
3500
|
+
], AllocationRule.prototype, "bankAccount", void 0);
|
|
3501
|
+
__decorate([
|
|
3502
|
+
Type(() => AllocationRuleCondition)
|
|
3503
|
+
], AllocationRule.prototype, "conditions", void 0);
|
|
3504
|
+
__decorate([
|
|
3505
|
+
Type(() => AllocationRuleTransaction)
|
|
3506
|
+
], AllocationRule.prototype, "transaction", void 0);
|
|
3507
|
+
__decorate([
|
|
3508
|
+
Type(() => BankAccount)
|
|
3509
|
+
], AllocationRule.prototype, "transferBankAccount", void 0);
|
|
3510
|
+
|
|
3046
3511
|
/**
|
|
3047
3512
|
* Enum with income amount types (Net or Gross)
|
|
3048
3513
|
*/
|
|
@@ -3058,12 +3523,6 @@ var TransactionTypeEnum;
|
|
|
3058
3523
|
TransactionTypeEnum[TransactionTypeEnum["CREDIT"] = 2] = "CREDIT";
|
|
3059
3524
|
})(TransactionTypeEnum || (TransactionTypeEnum = {}));
|
|
3060
3525
|
|
|
3061
|
-
var TransactionSourceEnum;
|
|
3062
|
-
(function (TransactionSourceEnum) {
|
|
3063
|
-
TransactionSourceEnum[TransactionSourceEnum["CASH"] = 1] = "CASH";
|
|
3064
|
-
TransactionSourceEnum[TransactionSourceEnum["BANK_TRANSACTION"] = 2] = "BANK_TRANSACTION";
|
|
3065
|
-
})(TransactionSourceEnum || (TransactionSourceEnum = {}));
|
|
3066
|
-
|
|
3067
3526
|
var TaxExemptionEnum;
|
|
3068
3527
|
(function (TaxExemptionEnum) {
|
|
3069
3528
|
TaxExemptionEnum[TaxExemptionEnum["ONE_YEAR_RULE"] = 1] = "ONE_YEAR_RULE";
|
|
@@ -3111,8 +3570,8 @@ __decorate([
|
|
|
3111
3570
|
Type(() => Date)
|
|
3112
3571
|
], PropertySale.prototype, "contractDate", void 0);
|
|
3113
3572
|
__decorate([
|
|
3114
|
-
Type(() =>
|
|
3115
|
-
], PropertySale.prototype, "
|
|
3573
|
+
Type(() => PropertySaleTaxExemptionMetaField$1)
|
|
3574
|
+
], PropertySale.prototype, "taxExemptionMetaFields", void 0);
|
|
3116
3575
|
|
|
3117
3576
|
/**
|
|
3118
3577
|
* @Todo TT-2143 should be removed when PropertySaleCostBaseForm refactored (cut property to separated form)
|
|
@@ -3131,13 +3590,13 @@ class PropertySaleCostBase {
|
|
|
3131
3590
|
}
|
|
3132
3591
|
}
|
|
3133
3592
|
|
|
3134
|
-
class
|
|
3593
|
+
class PropertySaleTaxExemptionMetaField extends PropertySaleTaxExemptionMetaField$1 {
|
|
3135
3594
|
}
|
|
3136
3595
|
|
|
3137
3596
|
class TaxExemption extends TaxExemption$1 {
|
|
3138
3597
|
}
|
|
3139
3598
|
|
|
3140
|
-
class
|
|
3599
|
+
class TaxExemptionMetaField extends TaxExemptionMetaField$1 {
|
|
3141
3600
|
}
|
|
3142
3601
|
|
|
3143
3602
|
/**
|
|
@@ -3524,282 +3983,117 @@ class PropertyForecast extends PropertyForecast$1 {
|
|
|
3524
3983
|
/**
|
|
3525
3984
|
* Get rental return percent
|
|
3526
3985
|
* Rental Return = Income / Market Value
|
|
3527
|
-
*/
|
|
3528
|
-
get rentalReturn() {
|
|
3529
|
-
return this.income / this.marketValue;
|
|
3530
|
-
}
|
|
3531
|
-
/**
|
|
3532
|
-
* Check if forecast is for real current fin year (not selected in the sidebar)
|
|
3533
|
-
*/
|
|
3534
|
-
isCurrentYear() {
|
|
3535
|
-
return this.financialYear === new FinancialYear(new Date()).year;
|
|
3536
|
-
}
|
|
3537
|
-
}
|
|
3538
|
-
__decorate([
|
|
3539
|
-
Transform(({ value }) => +value)
|
|
3540
|
-
], PropertyForecast.prototype, "income", void 0);
|
|
3541
|
-
__decorate([
|
|
3542
|
-
Transform(({ value }) => -Math.abs(+value))
|
|
3543
|
-
], PropertyForecast.prototype, "expense", void 0);
|
|
3544
|
-
__decorate([
|
|
3545
|
-
Transform(({ value }) => -Math.abs(+value))
|
|
3546
|
-
], PropertyForecast.prototype, "interest", void 0);
|
|
3547
|
-
__decorate([
|
|
3548
|
-
Transform(({ value }) => -Math.abs(+value))
|
|
3549
|
-
], PropertyForecast.prototype, "depreciation", void 0);
|
|
3550
|
-
__decorate([
|
|
3551
|
-
Transform(({ value }) => +value)
|
|
3552
|
-
], PropertyForecast.prototype, "loanBalance", void 0);
|
|
3553
|
-
__decorate([
|
|
3554
|
-
Transform(({ value }) => +value)
|
|
3555
|
-
], PropertyForecast.prototype, "marketValue", void 0);
|
|
3556
|
-
|
|
3557
|
-
var PropertyShareStatusEnum;
|
|
3558
|
-
(function (PropertyShareStatusEnum) {
|
|
3559
|
-
PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
|
|
3560
|
-
PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
|
|
3561
|
-
PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
|
|
3562
|
-
})(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
|
|
3563
|
-
|
|
3564
|
-
class RegistrationInvite extends RegistrationInvite$1 {
|
|
3565
|
-
getPhotoPlaceholder() {
|
|
3566
|
-
return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
|
|
3567
|
-
}
|
|
3568
|
-
getPhoto() {
|
|
3569
|
-
return null;
|
|
3570
|
-
}
|
|
3571
|
-
}
|
|
3572
|
-
|
|
3573
|
-
class PropertyShare extends PropertyShare$1 {
|
|
3574
|
-
isAccepted() {
|
|
3575
|
-
return this.status === PropertyShareStatusEnum.APPROVED;
|
|
3576
|
-
}
|
|
3577
|
-
isPending() {
|
|
3578
|
-
return this.status === PropertyShareStatusEnum.PENDING;
|
|
3579
|
-
}
|
|
3580
|
-
isRejected() {
|
|
3581
|
-
return this.status === PropertyShareStatusEnum.REJECTED;
|
|
3582
|
-
}
|
|
3583
|
-
get statusName() {
|
|
3584
|
-
var _a;
|
|
3585
|
-
return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
3586
|
-
}
|
|
3587
|
-
/**
|
|
3588
|
-
* Return full user name if user is already registered.
|
|
3589
|
-
* Otherwise - return first name from invitation
|
|
3590
|
-
*/
|
|
3591
|
-
get userName() {
|
|
3592
|
-
return this.user ? this.user.fullName : `${this.invite.firstName}`;
|
|
3593
|
-
}
|
|
3594
|
-
}
|
|
3595
|
-
__decorate([
|
|
3596
|
-
Type(() => Date)
|
|
3597
|
-
], PropertyShare.prototype, "fromDate", void 0);
|
|
3598
|
-
__decorate([
|
|
3599
|
-
Type(() => Date)
|
|
3600
|
-
], PropertyShare.prototype, "toDate", void 0);
|
|
3601
|
-
__decorate([
|
|
3602
|
-
Type(() => User)
|
|
3603
|
-
], PropertyShare.prototype, "user", void 0);
|
|
3604
|
-
__decorate([
|
|
3605
|
-
Type(() => RegistrationInvite)
|
|
3606
|
-
], PropertyShare.prototype, "invite", void 0);
|
|
3607
|
-
__decorate([
|
|
3608
|
-
Type(() => Property)
|
|
3609
|
-
], PropertyShare.prototype, "property", void 0);
|
|
3610
|
-
__decorate([
|
|
3611
|
-
Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
|
|
3612
|
-
], PropertyShare.prototype, "email", void 0);
|
|
3613
|
-
|
|
3614
|
-
/**
|
|
3615
|
-
* @TODO used only on dashboard, move from tt-core
|
|
3616
|
-
* Enum with properties ownership filter options
|
|
3617
|
-
*/
|
|
3618
|
-
var ShareFilterOptionsEnum;
|
|
3619
|
-
(function (ShareFilterOptionsEnum) {
|
|
3620
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
|
|
3621
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
|
|
3622
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
|
|
3623
|
-
})(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
|
|
3624
|
-
|
|
3625
|
-
class TransactionReceipt extends TransactionReceipt$1 {
|
|
3626
|
-
constructor() {
|
|
3627
|
-
super(...arguments);
|
|
3628
|
-
this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
|
|
3629
|
-
this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
|
|
3630
|
-
}
|
|
3631
|
-
}
|
|
3632
|
-
|
|
3633
|
-
var IncomeSourceTypeEnum;
|
|
3634
|
-
(function (IncomeSourceTypeEnum) {
|
|
3635
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
3636
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
3637
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
3638
|
-
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
3639
|
-
|
|
3640
|
-
class SalaryForecast extends SalaryForecast$1 {
|
|
3641
|
-
get taxWithheld() {
|
|
3642
|
-
return this.grossAmount - this.netPay;
|
|
3643
|
-
}
|
|
3644
|
-
}
|
|
3645
|
-
__decorate([
|
|
3646
|
-
Transform(({ obj }) => obj.netPay + obj.tax),
|
|
3647
|
-
Expose()
|
|
3648
|
-
], SalaryForecast.prototype, "grossAmount", void 0);
|
|
3649
|
-
__decorate([
|
|
3650
|
-
Type(() => IncomeSource)
|
|
3651
|
-
], SalaryForecast.prototype, "incomeSource", void 0);
|
|
3652
|
-
|
|
3653
|
-
class SoleForecast extends SoleForecast$1 {
|
|
3654
|
-
get netPay() {
|
|
3655
|
-
return this.amount;
|
|
3656
|
-
}
|
|
3657
|
-
;
|
|
3658
|
-
}
|
|
3659
|
-
__decorate([
|
|
3660
|
-
Type(() => IncomeSource)
|
|
3661
|
-
], SoleForecast.prototype, "incomeSource", void 0);
|
|
3662
|
-
|
|
3663
|
-
var SalaryForecastFrequencyEnum;
|
|
3664
|
-
(function (SalaryForecastFrequencyEnum) {
|
|
3665
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["ANNUAL"] = 1] = "ANNUAL";
|
|
3666
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["MONTHLY"] = 12] = "MONTHLY";
|
|
3667
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["FORTNIGHTLY"] = 26] = "FORTNIGHTLY";
|
|
3668
|
-
SalaryForecastFrequencyEnum[SalaryForecastFrequencyEnum["WEEKLY"] = 52] = "WEEKLY";
|
|
3669
|
-
})(SalaryForecastFrequencyEnum || (SalaryForecastFrequencyEnum = {}));
|
|
3670
|
-
|
|
3671
|
-
var IncomeSourceTypeListWorkEnum;
|
|
3672
|
-
(function (IncomeSourceTypeListWorkEnum) {
|
|
3673
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["BONUSES"] = 1] = "BONUSES";
|
|
3674
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIRECTOR_FEES"] = 2] = "DIRECTOR_FEES";
|
|
3675
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["DIVIDENDS"] = 3] = "DIVIDENDS";
|
|
3676
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["INTEREST"] = 4] = "INTEREST";
|
|
3677
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["PENSIONS_AND_ALLOWANCES"] = 5] = "PENSIONS_AND_ALLOWANCES";
|
|
3678
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["SUPERANNUATION"] = 8] = "SUPERANNUATION";
|
|
3679
|
-
IncomeSourceTypeListWorkEnum[IncomeSourceTypeListWorkEnum["ATTRIBUTED_P_S_I"] = 11] = "ATTRIBUTED_P_S_I";
|
|
3680
|
-
})(IncomeSourceTypeListWorkEnum || (IncomeSourceTypeListWorkEnum = {}));
|
|
3681
|
-
|
|
3682
|
-
var IncomeSourceTypeListOtherEnum;
|
|
3683
|
-
(function (IncomeSourceTypeListOtherEnum) {
|
|
3684
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PSI"] = 6] = "PSI";
|
|
3685
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3686
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["TRUSTS"] = 9] = "TRUSTS";
|
|
3687
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["OTHER_INCOME"] = 10] = "OTHER_INCOME";
|
|
3688
|
-
IncomeSourceTypeListOtherEnum[IncomeSourceTypeListOtherEnum["PARTNERSHIPS"] = 12] = "PARTNERSHIPS";
|
|
3689
|
-
})(IncomeSourceTypeListOtherEnum || (IncomeSourceTypeListOtherEnum = {}));
|
|
3690
|
-
|
|
3691
|
-
var IncomeSourceTypeListSoleEnum;
|
|
3692
|
-
(function (IncomeSourceTypeListSoleEnum) {
|
|
3693
|
-
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
3694
|
-
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
3695
|
-
|
|
3696
|
-
class IncomeSourceType extends IncomeSourceType$1 {
|
|
3697
|
-
isBonuses() {
|
|
3698
|
-
return this.id === IncomeSourceTypeListWorkEnum.BONUSES;
|
|
3699
|
-
}
|
|
3700
|
-
isWork() {
|
|
3701
|
-
return !!IncomeSourceTypeListWorkEnum[this.id];
|
|
3702
|
-
}
|
|
3703
|
-
isOther() {
|
|
3704
|
-
return !!IncomeSourceTypeListOtherEnum[this.id];
|
|
3705
|
-
}
|
|
3706
|
-
isSole() {
|
|
3707
|
-
return !!IncomeSourceTypeListSoleEnum[this.id];
|
|
3708
|
-
}
|
|
3709
|
-
get type() {
|
|
3710
|
-
switch (true) {
|
|
3711
|
-
case this.isWork():
|
|
3712
|
-
return IncomeSourceTypeEnum.WORK;
|
|
3713
|
-
case this.isSole():
|
|
3714
|
-
return IncomeSourceTypeEnum.SOLE;
|
|
3715
|
-
default:
|
|
3716
|
-
return IncomeSourceTypeEnum.OTHER;
|
|
3717
|
-
}
|
|
3718
|
-
}
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
class IncomeSourceForecast extends IncomeSourceForecast$1 {
|
|
3722
|
-
constructor() {
|
|
3723
|
-
super(...arguments);
|
|
3724
|
-
this.paygIncome = 0;
|
|
3725
|
-
this.frequency = SalaryForecastFrequencyEnum.ANNUAL;
|
|
3726
|
-
this.isTaxFree = false;
|
|
3986
|
+
*/
|
|
3987
|
+
get rentalReturn() {
|
|
3988
|
+
return this.income / this.marketValue;
|
|
3727
3989
|
}
|
|
3728
3990
|
/**
|
|
3729
|
-
*
|
|
3730
|
-
* and we need these fields to work with Income source forecasts like with Salary Forecasts
|
|
3991
|
+
* Check if forecast is for real current fin year (not selected in the sidebar)
|
|
3731
3992
|
*/
|
|
3732
|
-
|
|
3733
|
-
return this.
|
|
3734
|
-
}
|
|
3735
|
-
get grossAmount() {
|
|
3736
|
-
return this.amount + this.tax + this.taxInstalments + this.frankingCredits;
|
|
3993
|
+
isCurrentYear() {
|
|
3994
|
+
return this.financialYear === new FinancialYear(new Date()).year;
|
|
3737
3995
|
}
|
|
3738
3996
|
}
|
|
3739
3997
|
__decorate([
|
|
3740
|
-
|
|
3741
|
-
],
|
|
3998
|
+
Transform(({ value }) => +value)
|
|
3999
|
+
], PropertyForecast.prototype, "income", void 0);
|
|
3742
4000
|
__decorate([
|
|
3743
|
-
|
|
3744
|
-
],
|
|
4001
|
+
Transform(({ value }) => -Math.abs(+value))
|
|
4002
|
+
], PropertyForecast.prototype, "expense", void 0);
|
|
4003
|
+
__decorate([
|
|
4004
|
+
Transform(({ value }) => -Math.abs(+value))
|
|
4005
|
+
], PropertyForecast.prototype, "interest", void 0);
|
|
4006
|
+
__decorate([
|
|
4007
|
+
Transform(({ value }) => -Math.abs(+value))
|
|
4008
|
+
], PropertyForecast.prototype, "depreciation", void 0);
|
|
4009
|
+
__decorate([
|
|
4010
|
+
Transform(({ value }) => +value)
|
|
4011
|
+
], PropertyForecast.prototype, "loanBalance", void 0);
|
|
4012
|
+
__decorate([
|
|
4013
|
+
Transform(({ value }) => +value)
|
|
4014
|
+
], PropertyForecast.prototype, "marketValue", void 0);
|
|
3745
4015
|
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
4016
|
+
var PropertyShareStatusEnum;
|
|
4017
|
+
(function (PropertyShareStatusEnum) {
|
|
4018
|
+
PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
|
|
4019
|
+
PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
|
|
4020
|
+
PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
|
|
4021
|
+
})(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
|
|
4022
|
+
|
|
4023
|
+
class RegistrationInvite extends RegistrationInvite$1 {
|
|
4024
|
+
getPhotoPlaceholder() {
|
|
4025
|
+
return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
|
|
3751
4026
|
}
|
|
3752
|
-
|
|
3753
|
-
return
|
|
4027
|
+
getPhoto() {
|
|
4028
|
+
return null;
|
|
3754
4029
|
}
|
|
3755
|
-
|
|
3756
|
-
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
class PropertyShare extends PropertyShare$1 {
|
|
4033
|
+
isAccepted() {
|
|
4034
|
+
return this.status === PropertyShareStatusEnum.APPROVED;
|
|
3757
4035
|
}
|
|
3758
|
-
|
|
3759
|
-
return this.
|
|
4036
|
+
isPending() {
|
|
4037
|
+
return this.status === PropertyShareStatusEnum.PENDING;
|
|
3760
4038
|
}
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
*/
|
|
3764
|
-
get forecasts() {
|
|
3765
|
-
return [...this.salaryForecasts, ...this.incomeSourceForecasts, ...this.soleForecasts];
|
|
4039
|
+
isRejected() {
|
|
4040
|
+
return this.status === PropertyShareStatusEnum.REJECTED;
|
|
3766
4041
|
}
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
get actualForecast() {
|
|
3771
|
-
return this.forecasts[0];
|
|
4042
|
+
get statusName() {
|
|
4043
|
+
var _a;
|
|
4044
|
+
return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
3772
4045
|
}
|
|
3773
4046
|
/**
|
|
3774
|
-
*
|
|
3775
|
-
*
|
|
4047
|
+
* Return full user name if user is already registered.
|
|
4048
|
+
* Otherwise - return first name from invitation
|
|
3776
4049
|
*/
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
return (!this.dateFrom || monthDate >= this.dateFrom) && (!this.dateTo || monthDate < this.dateTo);
|
|
4050
|
+
get userName() {
|
|
4051
|
+
return this.user ? this.user.fullName : `${this.invite.firstName}`;
|
|
3780
4052
|
}
|
|
3781
4053
|
}
|
|
3782
4054
|
__decorate([
|
|
3783
|
-
Type(() =>
|
|
3784
|
-
],
|
|
4055
|
+
Type(() => Date)
|
|
4056
|
+
], PropertyShare.prototype, "fromDate", void 0);
|
|
3785
4057
|
__decorate([
|
|
3786
|
-
Type(() =>
|
|
3787
|
-
],
|
|
4058
|
+
Type(() => Date)
|
|
4059
|
+
], PropertyShare.prototype, "toDate", void 0);
|
|
3788
4060
|
__decorate([
|
|
3789
|
-
Type(() =>
|
|
3790
|
-
],
|
|
4061
|
+
Type(() => User)
|
|
4062
|
+
], PropertyShare.prototype, "user", void 0);
|
|
3791
4063
|
__decorate([
|
|
3792
|
-
Type(() =>
|
|
3793
|
-
],
|
|
4064
|
+
Type(() => RegistrationInvite)
|
|
4065
|
+
], PropertyShare.prototype, "invite", void 0);
|
|
3794
4066
|
__decorate([
|
|
3795
|
-
Type(() =>
|
|
3796
|
-
],
|
|
4067
|
+
Type(() => Property)
|
|
4068
|
+
], PropertyShare.prototype, "property", void 0);
|
|
4069
|
+
__decorate([
|
|
4070
|
+
Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
|
|
4071
|
+
], PropertyShare.prototype, "email", void 0);
|
|
4072
|
+
|
|
4073
|
+
/**
|
|
4074
|
+
* @TODO used only on dashboard, move from tt-core
|
|
4075
|
+
* Enum with properties ownership filter options
|
|
4076
|
+
*/
|
|
4077
|
+
var ShareFilterOptionsEnum;
|
|
4078
|
+
(function (ShareFilterOptionsEnum) {
|
|
4079
|
+
ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
|
|
4080
|
+
ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
|
|
4081
|
+
ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
|
|
4082
|
+
})(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
|
|
4083
|
+
|
|
4084
|
+
class TransactionReceipt extends TransactionReceipt$1 {
|
|
4085
|
+
constructor() {
|
|
4086
|
+
super(...arguments);
|
|
4087
|
+
this.type = AssetTypeEnum.TRANSACTION_RECEIPT;
|
|
4088
|
+
this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
3797
4091
|
|
|
3798
|
-
class
|
|
4092
|
+
class TransactionMetaField extends TransactionMetaField$1 {
|
|
3799
4093
|
}
|
|
3800
4094
|
__decorate([
|
|
3801
|
-
Type(() =>
|
|
3802
|
-
],
|
|
4095
|
+
Type(() => ChartAccountsMetaField)
|
|
4096
|
+
], TransactionMetaField.prototype, "metaField", void 0);
|
|
3803
4097
|
|
|
3804
4098
|
/**
|
|
3805
4099
|
* Enum with maximum number of payments, depending on the frequency.
|
|
@@ -4558,7 +4852,7 @@ class Transaction extends Transaction$1 {
|
|
|
4558
4852
|
super(...arguments);
|
|
4559
4853
|
// list of child transactions (fees)
|
|
4560
4854
|
this.transactions = [];
|
|
4561
|
-
this.
|
|
4855
|
+
this.metaFields = [];
|
|
4562
4856
|
this.allocations = [];
|
|
4563
4857
|
this.tax = 0;
|
|
4564
4858
|
this.operation = TransactionOperationEnum.FIND_AND_MATCH;
|
|
@@ -4626,16 +4920,16 @@ class Transaction extends Transaction$1 {
|
|
|
4626
4920
|
return this.chartAccounts.isVehicleExpense();
|
|
4627
4921
|
}
|
|
4628
4922
|
get taxFreeComponent() {
|
|
4629
|
-
return this.
|
|
4923
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.TAX_FREE_COMPONENT);
|
|
4630
4924
|
}
|
|
4631
4925
|
get frankingCredit() {
|
|
4632
|
-
return this.
|
|
4926
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.FRANKING_CREDIT);
|
|
4633
4927
|
}
|
|
4634
4928
|
get eligibleForReduction() {
|
|
4635
|
-
return this.
|
|
4929
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.ELIGIBLE_FOR_REDUCTION);
|
|
4636
4930
|
}
|
|
4637
4931
|
get untaxedElement() {
|
|
4638
|
-
return this.
|
|
4932
|
+
return this.getMetaFieldValue(ChartAccountsMetaFieldListEnum.UNTAXED_ELEMENT);
|
|
4639
4933
|
}
|
|
4640
4934
|
/**
|
|
4641
4935
|
* Check if transaction reconcile operation if TRANSFER
|
|
@@ -4657,14 +4951,14 @@ class Transaction extends Transaction$1 {
|
|
|
4657
4951
|
return this.isCredit() ? Math.abs(this.grossAmount) : 0;
|
|
4658
4952
|
}
|
|
4659
4953
|
/**
|
|
4660
|
-
* Get value of transaction
|
|
4954
|
+
* Get value of transaction meta field
|
|
4661
4955
|
* @param field for which value should be returned
|
|
4662
|
-
* @Todo modify '
|
|
4956
|
+
* @Todo modify 'metaFields' property from array to Collection
|
|
4663
4957
|
*/
|
|
4664
|
-
|
|
4958
|
+
getMetaFieldValue(field) {
|
|
4665
4959
|
var _a;
|
|
4666
|
-
return +((_a = this.
|
|
4667
|
-
return
|
|
4960
|
+
return +((_a = this.metaFields.find((transactionMetaField) => {
|
|
4961
|
+
return transactionMetaField.chartAccountsMetaField.id === field;
|
|
4668
4962
|
})) === null || _a === void 0 ? void 0 : _a.value) || 0;
|
|
4669
4963
|
}
|
|
4670
4964
|
isCash() {
|
|
@@ -4756,8 +5050,8 @@ __decorate([
|
|
|
4756
5050
|
Type(() => IncomeSource)
|
|
4757
5051
|
], Transaction.prototype, "incomeSource", void 0);
|
|
4758
5052
|
__decorate([
|
|
4759
|
-
Type(() =>
|
|
4760
|
-
], Transaction.prototype, "
|
|
5053
|
+
Type(() => TransactionMetaField)
|
|
5054
|
+
], Transaction.prototype, "metaFields", void 0);
|
|
4761
5055
|
__decorate([
|
|
4762
5056
|
Type(() => Transaction)
|
|
4763
5057
|
], Transaction.prototype, "transfer", void 0);
|
|
@@ -5054,14 +5348,14 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5054
5348
|
return new TransactionCollection(this.items.filter((transaction) => transaction.date.getMonth() === monthIndex));
|
|
5055
5349
|
}
|
|
5056
5350
|
/**
|
|
5057
|
-
* Get collection of transactions
|
|
5351
|
+
* Get collection of transactions meta fields
|
|
5058
5352
|
*/
|
|
5059
|
-
|
|
5060
|
-
const
|
|
5353
|
+
getTransactionsMetaFields() {
|
|
5354
|
+
const metaFieldsArray = [];
|
|
5061
5355
|
this.items.forEach((transaction) => {
|
|
5062
|
-
|
|
5356
|
+
metaFieldsArray.push(...transaction.metaFields);
|
|
5063
5357
|
});
|
|
5064
|
-
return new Collection(
|
|
5358
|
+
return new Collection(metaFieldsArray);
|
|
5065
5359
|
}
|
|
5066
5360
|
getIncomeTransactions() {
|
|
5067
5361
|
return new TransactionCollection(this.items.filter((transaction) => transaction.isIncome()));
|
|
@@ -6179,6 +6473,30 @@ class AllocationGroupCollection extends Collection {
|
|
|
6179
6473
|
}
|
|
6180
6474
|
}
|
|
6181
6475
|
|
|
6476
|
+
class AllocationRuleCollection extends Collection {
|
|
6477
|
+
getExpense() {
|
|
6478
|
+
return this.filterBy('type', AllocationRuleTypeEnum.EXPENSE);
|
|
6479
|
+
}
|
|
6480
|
+
getIncome() {
|
|
6481
|
+
return this.filterBy('type', AllocationRuleTypeEnum.INCOME);
|
|
6482
|
+
}
|
|
6483
|
+
getTransfer() {
|
|
6484
|
+
return this.filterBy('type', AllocationRuleTypeEnum.TRANSFER);
|
|
6485
|
+
}
|
|
6486
|
+
/**
|
|
6487
|
+
* Get dictionary where key is bank transaction id and value is collection of matched rules.
|
|
6488
|
+
* Group by this way for better performance
|
|
6489
|
+
* @TODO Alex: break bank transactions by pagination in case of bad performance
|
|
6490
|
+
*/
|
|
6491
|
+
groupByBankTransaction(bankTransactions) {
|
|
6492
|
+
const rulesByBankTransaction = new CollectionDictionary(new AllocationRuleCollection([]));
|
|
6493
|
+
bankTransactions.toArray().forEach((bankTransaction) => {
|
|
6494
|
+
rulesByBankTransaction.add(bankTransaction.id, this.filter((rule) => rule.matchBankTransaction(bankTransaction)));
|
|
6495
|
+
});
|
|
6496
|
+
return rulesByBankTransaction;
|
|
6497
|
+
}
|
|
6498
|
+
}
|
|
6499
|
+
|
|
6182
6500
|
class AccountSetupItemCollection extends Collection {
|
|
6183
6501
|
constructor(items) {
|
|
6184
6502
|
super(compact(items));
|
|
@@ -7056,7 +7374,7 @@ class Property extends Property$1 {
|
|
|
7056
7374
|
* in that case it's equal to market value, when property became an investment property
|
|
7057
7375
|
*/
|
|
7058
7376
|
calculateCostBase(sale) {
|
|
7059
|
-
const marketValue = new
|
|
7377
|
+
const marketValue = new PropertySaleTaxExemptionMetaFieldCollection(sale.taxExemptionMetaFields).getMarketValue();
|
|
7060
7378
|
if (marketValue) {
|
|
7061
7379
|
return marketValue;
|
|
7062
7380
|
}
|
|
@@ -7097,7 +7415,7 @@ class Property extends Property$1 {
|
|
|
7097
7415
|
*/
|
|
7098
7416
|
getCGTExemptionRatio(sale) {
|
|
7099
7417
|
var _a;
|
|
7100
|
-
const
|
|
7418
|
+
const metaFields = new PropertySaleTaxExemptionMetaFieldCollection(sale.taxExemptionMetaFields);
|
|
7101
7419
|
switch ((_a = sale.taxExemption) === null || _a === void 0 ? void 0 : _a.id) {
|
|
7102
7420
|
// 50% exemption for investments owned for at least one year
|
|
7103
7421
|
case TaxExemptionEnum.ONE_YEAR_RULE:
|
|
@@ -7105,12 +7423,12 @@ class Property extends Property$1 {
|
|
|
7105
7423
|
// investment property become main residence (exemption for main residence ownership duration)
|
|
7106
7424
|
case TaxExemptionEnum.INVESTMENT_TO_PPR:
|
|
7107
7425
|
const ownershipDays = this.getOwnershipDuration(sale);
|
|
7108
|
-
return (ownershipDays -
|
|
7426
|
+
return (ownershipDays - metaFields.getPPRDays()) / ownershipDays;
|
|
7109
7427
|
// main residence become investment (exemption for home office percent usage)
|
|
7110
7428
|
case TaxExemptionEnum.PPR_TO_INVESTMENT:
|
|
7111
7429
|
// 1 year CGT discount can still apply (on the income producing % if used for 12 months or more)
|
|
7112
7430
|
const ratio = this.isOneYearExemptionApplicable(sale) ? 0.5 : 1;
|
|
7113
|
-
return
|
|
7431
|
+
return metaFields.getClaimPercent() / 100 * ratio;
|
|
7114
7432
|
// full exemption
|
|
7115
7433
|
case TaxExemptionEnum.PPR:
|
|
7116
7434
|
case TaxExemptionEnum.SIX_YEARS_RULE:
|
|
@@ -8303,6 +8621,10 @@ class Endpoint {
|
|
|
8303
8621
|
*/
|
|
8304
8622
|
const ENDPOINTS = {
|
|
8305
8623
|
ASSETS_GET: new Endpoint('GET', '\\/assets\\/\.\*\\/\\d+'),
|
|
8624
|
+
ALLOCATION_RULES_GET: new Endpoint('GET', '\\/allocation-rules'),
|
|
8625
|
+
ALLOCATION_RULES_POST: new Endpoint('POST', '\\/allocation-rules'),
|
|
8626
|
+
ALLOCATION_RULES_PUT: new Endpoint('PUT', '\\/allocation-rules\\/\\d+'),
|
|
8627
|
+
ALLOCATION_RULES_DELETE: new Endpoint('DELETE', '\\/allocation-rules\\/\\d+'),
|
|
8306
8628
|
BANKS_GET: new Endpoint('GET', '\\/banks'),
|
|
8307
8629
|
BANK_ACCOUNTS_GET: new Endpoint('GET', '\\/bank-accounts'),
|
|
8308
8630
|
BANK_ACCOUNTS_POST: new Endpoint('POST', '\\/bank-accounts'),
|
|
@@ -10665,14 +10987,14 @@ MyTaxDeductions.selfEducationNotDeductibleAmount = -250;
|
|
|
10665
10987
|
class MyTaxDividends {
|
|
10666
10988
|
constructor(transactions) {
|
|
10667
10989
|
this.transactions = transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.DIVIDENDS);
|
|
10668
|
-
this.dividendsUnfrankedAmount = this.transactions.
|
|
10669
|
-
.filterBy('
|
|
10990
|
+
this.dividendsUnfrankedAmount = this.transactions.getTransactionsMetaFields()
|
|
10991
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.UNFRANKED)
|
|
10670
10992
|
.sumBy('value');
|
|
10671
|
-
this.dividendsFrankedAmount = this.transactions.
|
|
10672
|
-
.filterBy('
|
|
10993
|
+
this.dividendsFrankedAmount = this.transactions.getTransactionsMetaFields()
|
|
10994
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKED)
|
|
10673
10995
|
.sumBy('value');
|
|
10674
|
-
this.dividendsFrankingCreditsAmount = this.transactions.
|
|
10675
|
-
.filterBy('
|
|
10996
|
+
this.dividendsFrankingCreditsAmount = this.transactions.getTransactionsMetaFields()
|
|
10997
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
|
|
10676
10998
|
.sumBy('value');
|
|
10677
10999
|
this.dividendsTotalTax = this.transactions.sumBy('tax');
|
|
10678
11000
|
}
|
|
@@ -10827,20 +11149,20 @@ class MyTaxOtherIncome {
|
|
|
10827
11149
|
this.employeeShareSchemesTransactions = transactions
|
|
10828
11150
|
.filterBy('chartAccounts.id', ChartAccountsListEnum.EMPLOYEE_SHARE_SCHEME_INCOME);
|
|
10829
11151
|
// Employee Share Schemes data
|
|
10830
|
-
this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.
|
|
10831
|
-
.filterBy('
|
|
11152
|
+
this.eligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11153
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.ELIGIBLE_FOR_REDUCTION)
|
|
10832
11154
|
.sumBy('value');
|
|
10833
|
-
this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.
|
|
10834
|
-
.filterBy('
|
|
11155
|
+
this.notEligibleForReductionAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11156
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
|
|
10835
11157
|
.sumBy('value');
|
|
10836
|
-
this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.
|
|
10837
|
-
.filterBy('
|
|
11158
|
+
this.discountFromDeferredSchemeAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11159
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
|
|
10838
11160
|
.sumBy('value');
|
|
10839
|
-
this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.
|
|
10840
|
-
.filterBy('
|
|
11161
|
+
this.totalAssessableDiscountAmount = this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11162
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.NOT_ELIGIBLE_FOR_DEDUCTION)
|
|
10841
11163
|
.sumBy('value') +
|
|
10842
|
-
this.employeeShareSchemesTransactions.
|
|
10843
|
-
.filterBy('
|
|
11164
|
+
this.employeeShareSchemesTransactions.getTransactionsMetaFields()
|
|
11165
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.DISCOUNT_FROM_DEFERRED_SCHEMES)
|
|
10844
11166
|
.sumBy('value');
|
|
10845
11167
|
this.shareSchemesTotalTax = this.employeeShareSchemesTransactions.sumBy('tax');
|
|
10846
11168
|
// Other income data
|
|
@@ -10883,14 +11205,14 @@ class MyTaxPartnershipsAndTrusts {
|
|
|
10883
11205
|
this.trustsNetNonPrimaryProductionAmount = this.trustsIncomeTotalAmount - this.trustsExpenseTotalAmount;
|
|
10884
11206
|
this.frankingCreditsTotal = this.transactions
|
|
10885
11207
|
.filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
|
|
10886
|
-
.
|
|
10887
|
-
.filterBy('
|
|
11208
|
+
.getTransactionsMetaFields()
|
|
11209
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
|
|
10888
11210
|
.sumBy('value');
|
|
10889
11211
|
this.trustsIncomeTotalTax = this.trustsIncomes.sumBy('tax');
|
|
10890
11212
|
this.frankingCreditsTotal = this.transactions
|
|
10891
11213
|
.filterBy('chartAccounts.heading.id', ChartAccountsHeadingTaxableEnum.PARTNERSHIPS_AND_TRUSTS_INCOME)
|
|
10892
|
-
.
|
|
10893
|
-
.filterBy('
|
|
11214
|
+
.getTransactionsMetaFields()
|
|
11215
|
+
.filterBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.FRANKING_CREDIT)
|
|
10894
11216
|
.sumBy('value');
|
|
10895
11217
|
this.taxOffsetNRASTotalAmount = this.transactions.filterBy('chartAccounts.id', ChartAccountsListEnum.TAX_OFFSETS_N_R_A_S).sumBy('amount');
|
|
10896
11218
|
}
|
|
@@ -14512,6 +14834,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
14512
14834
|
}] }];
|
|
14513
14835
|
} });
|
|
14514
14836
|
|
|
14837
|
+
class AllocationRuleService extends RestService$1 {
|
|
14838
|
+
constructor() {
|
|
14839
|
+
super(...arguments);
|
|
14840
|
+
this.endpointUri = 'allocation-rules';
|
|
14841
|
+
this.collectionClass = AllocationRuleCollection;
|
|
14842
|
+
this.modelClass = AllocationRule;
|
|
14843
|
+
this.isApiPlatform = true;
|
|
14844
|
+
}
|
|
14845
|
+
}
|
|
14846
|
+
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14847
|
+
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
|
|
14848
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, decorators: [{
|
|
14849
|
+
type: Injectable,
|
|
14850
|
+
args: [{
|
|
14851
|
+
providedIn: 'root'
|
|
14852
|
+
}]
|
|
14853
|
+
}] });
|
|
14854
|
+
|
|
14515
14855
|
// @TODO Don't look at the commented code. Will be refactored/removed during TT-1503
|
|
14516
14856
|
/**
|
|
14517
14857
|
* Service for transaction allocations business logic
|
|
@@ -17928,14 +18268,14 @@ class PropertySaleExemptionsForm extends AbstractForm {
|
|
|
17928
18268
|
var _a, _b;
|
|
17929
18269
|
super({
|
|
17930
18270
|
taxExemption: new UntypedFormControl(taxExemptions.findBy('id', (_b = (_a = propertySale.taxExemption) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : property.getCGTExemption(propertySale))),
|
|
17931
|
-
|
|
18271
|
+
taxExemptionMetaFields: new UntypedFormArray([]),
|
|
17932
18272
|
netCGT: new UntypedFormControl(propertySale.netCGT)
|
|
17933
18273
|
}, propertySale);
|
|
17934
18274
|
this.propertySale = propertySale;
|
|
17935
18275
|
this.property = property;
|
|
17936
18276
|
this.taxExemptions = taxExemptions;
|
|
17937
18277
|
if (propertySale.taxExemption) {
|
|
17938
|
-
this.
|
|
18278
|
+
this.setFormMetaFieldsControls();
|
|
17939
18279
|
}
|
|
17940
18280
|
this.updateNetCGT();
|
|
17941
18281
|
this.listenEvents();
|
|
@@ -17955,36 +18295,36 @@ class PropertySaleExemptionsForm extends AbstractForm {
|
|
|
17955
18295
|
listenTaxExemptionUpdated() {
|
|
17956
18296
|
this.get('taxExemption').valueChanges.subscribe((taxExemption) => {
|
|
17957
18297
|
this.updateNetCGT();
|
|
17958
|
-
this.
|
|
18298
|
+
this.setFormMetaFieldsControls(taxExemption);
|
|
17959
18299
|
});
|
|
17960
18300
|
}
|
|
17961
18301
|
/**
|
|
17962
|
-
* show
|
|
18302
|
+
* show meta fields related to passed tax exemption or existing property sale meta fields
|
|
17963
18303
|
*/
|
|
17964
|
-
|
|
18304
|
+
setFormMetaFieldsControls(taxExemption) {
|
|
17965
18305
|
// use property sale tax exemption if it exists to preselect data
|
|
17966
18306
|
const currentTaxExemption = this.propertySale.taxExemption ?
|
|
17967
18307
|
this.taxExemptions.findBy('id', this.propertySale.taxExemption.id) :
|
|
17968
18308
|
taxExemption;
|
|
17969
|
-
const formArray = this.get('
|
|
18309
|
+
const formArray = this.get('taxExemptionMetaFields');
|
|
17970
18310
|
// clean up
|
|
17971
18311
|
formArray.clear();
|
|
17972
|
-
// show all tax exemption
|
|
17973
|
-
currentTaxExemption.
|
|
17974
|
-
// use property sale tax exemption
|
|
17975
|
-
const
|
|
17976
|
-
this.propertySale.
|
|
17977
|
-
.find((
|
|
18312
|
+
// show all tax exemption meta fields
|
|
18313
|
+
currentTaxExemption.metaFields.forEach((metaField) => {
|
|
18314
|
+
// use property sale tax exemption meta field value if it exists
|
|
18315
|
+
const metaFieldValue = this.propertySale.taxExemption ?
|
|
18316
|
+
this.propertySale.taxExemptionMetaFields
|
|
18317
|
+
.find((saleMetaField) => saleMetaField.metaField.id === metaField.id).value :
|
|
17978
18318
|
null;
|
|
17979
18319
|
const validators = [
|
|
17980
18320
|
// claim percent is optional
|
|
17981
|
-
|
|
18321
|
+
metaField.id !== TaxExemptionMetaFieldEnum.CLAIM_PERCENT && Validators.required,
|
|
17982
18322
|
// ppr days can't be more than ownership days
|
|
17983
|
-
|
|
18323
|
+
metaField.id === TaxExemptionMetaFieldEnum.PPR_DAYS && Validators.max(this.property.getOwnershipDuration(this.propertySale))
|
|
17984
18324
|
].filter(Boolean);
|
|
17985
18325
|
formArray.push(new UntypedFormGroup({
|
|
17986
|
-
|
|
17987
|
-
value: new UntypedFormControl(
|
|
18326
|
+
metaField: new UntypedFormControl(metaField),
|
|
18327
|
+
value: new UntypedFormControl(metaFieldValue, validators)
|
|
17988
18328
|
}));
|
|
17989
18329
|
});
|
|
17990
18330
|
}
|
|
@@ -18682,6 +19022,268 @@ var FormValidationsEnum;
|
|
|
18682
19022
|
FormValidationsEnum["FILE_ACCEPTED_TYPES"] = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv";
|
|
18683
19023
|
})(FormValidationsEnum || (FormValidationsEnum = {}));
|
|
18684
19024
|
|
|
19025
|
+
class AllocationRuleConditionForm extends AbstractForm {
|
|
19026
|
+
constructor(condition = plainToClass(AllocationRuleCondition, {})) {
|
|
19027
|
+
super({
|
|
19028
|
+
field: new UntypedFormControl(condition.field, Validators.required),
|
|
19029
|
+
comparisonOperator: new UntypedFormControl(condition.comparisonOperator, Validators.required),
|
|
19030
|
+
value: new UntypedFormControl(condition.value, Validators.required)
|
|
19031
|
+
}, condition);
|
|
19032
|
+
}
|
|
19033
|
+
}
|
|
19034
|
+
|
|
19035
|
+
class AllocationRuleTransactionMetaFieldForm extends AbstractForm {
|
|
19036
|
+
constructor(metaField = plainToClass(AllocationRuleTransactionMetaField, {})) {
|
|
19037
|
+
super({
|
|
19038
|
+
value: new UntypedFormControl(metaField.value)
|
|
19039
|
+
}, metaField);
|
|
19040
|
+
}
|
|
19041
|
+
}
|
|
19042
|
+
|
|
19043
|
+
/**
|
|
19044
|
+
* @TODO Alex: extend transaction form(s) when transaction forms refactored
|
|
19045
|
+
*/
|
|
19046
|
+
class AllocationRuleTransactionForm extends AbstractForm {
|
|
19047
|
+
constructor(transaction,
|
|
19048
|
+
// Flag to enable transaction GST field
|
|
19049
|
+
isGST) {
|
|
19050
|
+
super({
|
|
19051
|
+
amount: new UntypedFormControl(null),
|
|
19052
|
+
tax: new UntypedFormControl(transaction.tax || 0, Validators.required),
|
|
19053
|
+
claimPercent: new UntypedFormControl(transaction.claimPercent || 100, [Validators.required, Validators.min(0), Validators.max(100)]),
|
|
19054
|
+
chartAccounts: new UntypedFormControl(transaction.chartAccounts, Validators.required),
|
|
19055
|
+
isGST: new UntypedFormControl({ value: transaction.isGST || false, disabled: !isGST }),
|
|
19056
|
+
loan: new UntypedFormControl(transaction.loan),
|
|
19057
|
+
incomeSource: new UntypedFormControl(transaction.incomeSource, conditionalValidator(() => { var _a; return (_a = transaction.chartAccounts) === null || _a === void 0 ? void 0 : _a.isWorkIncome(); }, Validators.required)),
|
|
19058
|
+
metaFields: new UntypedFormArray((transaction.metaFields || []).map((metaField) => new AllocationRuleTransactionMetaFieldForm(metaField))),
|
|
19059
|
+
business: new UntypedFormControl(transaction.business, Validators.required),
|
|
19060
|
+
property: new UntypedFormControl(transaction.property, Validators.required),
|
|
19061
|
+
// Show null as default value for new transaction to avoid preselecting of not allowed tank types
|
|
19062
|
+
tankType: new UntypedFormControl(transaction.id ? transaction.tankType : null, Validators.required),
|
|
19063
|
+
childTransactions: new UntypedFormArray((transaction.childTransactions || []).map((childTransaction) => new UntypedFormGroup({
|
|
19064
|
+
chartAccounts: new UntypedFormControl(childTransaction.chartAccounts, Validators.required),
|
|
19065
|
+
amount: new UntypedFormControl(childTransaction.amount, Validators.required)
|
|
19066
|
+
})))
|
|
19067
|
+
}, transaction);
|
|
19068
|
+
this.listenEvents();
|
|
19069
|
+
}
|
|
19070
|
+
/**
|
|
19071
|
+
* @TODO Alex: move to abstract form, universal method getArray(arrayName)
|
|
19072
|
+
*/
|
|
19073
|
+
get metaFieldsArray() {
|
|
19074
|
+
return this.get('metaFields');
|
|
19075
|
+
}
|
|
19076
|
+
get childTransactionsArray() {
|
|
19077
|
+
return this.get('childTransactions');
|
|
19078
|
+
}
|
|
19079
|
+
addChildTransactionForm() {
|
|
19080
|
+
this.childTransactionsArray.push(new UntypedFormGroup({
|
|
19081
|
+
chartAccounts: new UntypedFormControl(null, Validators.required),
|
|
19082
|
+
amount: new UntypedFormControl(null, Validators.required)
|
|
19083
|
+
}));
|
|
19084
|
+
}
|
|
19085
|
+
submit() {
|
|
19086
|
+
const data = {
|
|
19087
|
+
metaFields: this.metaFieldsArray.controls.map((metaFieldForm) => metaFieldForm.submit())
|
|
19088
|
+
};
|
|
19089
|
+
return super.submit(data);
|
|
19090
|
+
}
|
|
19091
|
+
listenEvents() {
|
|
19092
|
+
this.listenChartAccountsChanges();
|
|
19093
|
+
this.listenTankTypeChanges();
|
|
19094
|
+
this.listenIncomeSourceChanges();
|
|
19095
|
+
this.listenPropertyChanges();
|
|
19096
|
+
}
|
|
19097
|
+
listenChartAccountsChanges() {
|
|
19098
|
+
this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
|
19099
|
+
this.get('incomeSource').removeValidators(Validators.required);
|
|
19100
|
+
if (!chartAccounts) {
|
|
19101
|
+
return;
|
|
19102
|
+
}
|
|
19103
|
+
this.updateClaimPercent();
|
|
19104
|
+
// User have to select income source for work income
|
|
19105
|
+
if (chartAccounts.isWorkIncome()) {
|
|
19106
|
+
this.get('incomeSource').setValidators(Validators.required);
|
|
19107
|
+
}
|
|
19108
|
+
// Rebuild meta fields
|
|
19109
|
+
this.metaFieldsArray.clear();
|
|
19110
|
+
chartAccounts.metaFields.forEach((chartAccountsMetaField) => {
|
|
19111
|
+
this.metaFieldsArray.push(new AllocationRuleTransactionMetaFieldForm(plainToClass(AllocationRuleTransactionMetaField, { chartAccountsMetaField })));
|
|
19112
|
+
});
|
|
19113
|
+
});
|
|
19114
|
+
}
|
|
19115
|
+
/**
|
|
19116
|
+
* Child transaction allowance depends on tank type.
|
|
19117
|
+
* Also chart accounts are different, so we just reset child transactions when tank type changed
|
|
19118
|
+
*/
|
|
19119
|
+
listenTankTypeChanges() {
|
|
19120
|
+
this.get('tankType').valueChanges.subscribe(() => {
|
|
19121
|
+
this.childTransactionsArray.reset();
|
|
19122
|
+
});
|
|
19123
|
+
}
|
|
19124
|
+
/**
|
|
19125
|
+
* Set tax automatically when salary income source selected
|
|
19126
|
+
*/
|
|
19127
|
+
listenIncomeSourceChanges() {
|
|
19128
|
+
this.get('incomeSource').valueChanges.subscribe((incomeSource) => {
|
|
19129
|
+
if (!incomeSource) {
|
|
19130
|
+
this.get('tax').setValue(0);
|
|
19131
|
+
return;
|
|
19132
|
+
}
|
|
19133
|
+
// prefill salary tax with its income source forecast
|
|
19134
|
+
if (incomeSource instanceof IncomeSource && incomeSource.isSalaryIncome() && !this.get('tax').value) {
|
|
19135
|
+
this.get('tax').setValue(incomeSource.salaryForecasts[0].taxWithheld);
|
|
19136
|
+
}
|
|
19137
|
+
});
|
|
19138
|
+
}
|
|
19139
|
+
listenPropertyChanges() {
|
|
19140
|
+
this.get('property').valueChanges.subscribe(() => {
|
|
19141
|
+
this.updateClaimPercent();
|
|
19142
|
+
});
|
|
19143
|
+
}
|
|
19144
|
+
/**
|
|
19145
|
+
* Update claim percent value and state depends on business logic
|
|
19146
|
+
*/
|
|
19147
|
+
updateClaimPercent() {
|
|
19148
|
+
const claimPercentControl = this.get('claimPercent');
|
|
19149
|
+
// claim percent is changeable only for work and sole expenses except vehicle and personal
|
|
19150
|
+
claimPercentControl.disable();
|
|
19151
|
+
if (!this.currentValue.chartAccounts) {
|
|
19152
|
+
return;
|
|
19153
|
+
}
|
|
19154
|
+
if (this.currentValue.chartAccounts.isClaimPercentEditable()) {
|
|
19155
|
+
claimPercentControl.enable();
|
|
19156
|
+
}
|
|
19157
|
+
claimPercentControl.setValue(this.currentValue.calculateClaimPercent());
|
|
19158
|
+
}
|
|
19159
|
+
}
|
|
19160
|
+
|
|
19161
|
+
class AllocationRuleForm extends AbstractForm {
|
|
19162
|
+
constructor(
|
|
19163
|
+
// rule is required because we have to keep bank account relation
|
|
19164
|
+
rule,
|
|
19165
|
+
// Flag to enable transaction GST field
|
|
19166
|
+
isGST) {
|
|
19167
|
+
var _a, _b;
|
|
19168
|
+
super({
|
|
19169
|
+
type: new UntypedFormControl(rule.type, Validators.required),
|
|
19170
|
+
name: new UntypedFormControl(rule.name, Validators.required),
|
|
19171
|
+
conditionOperator: new UntypedFormControl(rule.conditionOperator, Validators.required),
|
|
19172
|
+
conditions: new UntypedFormArray((rule.conditions || [plainToClass(AllocationRuleCondition, {})])
|
|
19173
|
+
.map((condition) => new AllocationRuleConditionForm(condition))),
|
|
19174
|
+
transaction: new AllocationRuleTransactionForm(rule.transaction || plainToClass(AllocationRuleTransaction, {}), isGST),
|
|
19175
|
+
transferBankAccount: new UntypedFormControl(rule.transferBankAccount, Validators.required),
|
|
19176
|
+
autoAllocate: new UntypedFormControl(rule.autoAllocate || false, Validators.required)
|
|
19177
|
+
}, rule);
|
|
19178
|
+
this.isGST = isGST;
|
|
19179
|
+
this.listenEvents();
|
|
19180
|
+
this.setupFieldsByType(rule.type);
|
|
19181
|
+
this.setupFieldsByTankType((_a = rule.transaction) === null || _a === void 0 ? void 0 : _a.tankType);
|
|
19182
|
+
this.updateChartAccountsCategories();
|
|
19183
|
+
if (!((_b = this.transactionFormGroup.get('chartAccounts').value) === null || _b === void 0 ? void 0 : _b.isClaimPercentEditable())) {
|
|
19184
|
+
this.transactionFormGroup.get('claimPercent').disable();
|
|
19185
|
+
}
|
|
19186
|
+
}
|
|
19187
|
+
get conditionsArray() {
|
|
19188
|
+
return this.get('conditions');
|
|
19189
|
+
}
|
|
19190
|
+
get childTransactionsArray() {
|
|
19191
|
+
return this.transactionFormGroup.get('childTransactions');
|
|
19192
|
+
}
|
|
19193
|
+
get transactionFormGroup() {
|
|
19194
|
+
return this.get('transaction');
|
|
19195
|
+
}
|
|
19196
|
+
addConditionForm() {
|
|
19197
|
+
this.conditionsArray.push(new AllocationRuleConditionForm());
|
|
19198
|
+
}
|
|
19199
|
+
isTaxFieldHidden() {
|
|
19200
|
+
const chartAccounts = this.transactionFormGroup.get('chartAccounts').value;
|
|
19201
|
+
return !chartAccounts || !chartAccounts.isTaxable();
|
|
19202
|
+
}
|
|
19203
|
+
/**
|
|
19204
|
+
* TODO Alex: disable sole tank in form control when income selected
|
|
19205
|
+
*/
|
|
19206
|
+
isTransactionFieldsHidden() {
|
|
19207
|
+
return this.transactionFormGroup.get('tankType').value === null || this.currentValue.isSoleIncome();
|
|
19208
|
+
}
|
|
19209
|
+
submit() {
|
|
19210
|
+
const data = {
|
|
19211
|
+
conditions: this.conditionsArray.controls.map((conditionForm) => conditionForm.submit()),
|
|
19212
|
+
transaction: null
|
|
19213
|
+
};
|
|
19214
|
+
if (!this.currentValue.isTransfer()) {
|
|
19215
|
+
data.transaction = this.transactionFormGroup.submit();
|
|
19216
|
+
}
|
|
19217
|
+
return super.submit(data);
|
|
19218
|
+
}
|
|
19219
|
+
listenEvents() {
|
|
19220
|
+
this.listenTankTypeChanges();
|
|
19221
|
+
this.listenTypeChanges();
|
|
19222
|
+
}
|
|
19223
|
+
listenTypeChanges() {
|
|
19224
|
+
this.get('type').valueChanges.subscribe((type) => {
|
|
19225
|
+
this.setupFieldsByType(type);
|
|
19226
|
+
this.updateChartAccountsCategories();
|
|
19227
|
+
// we have different fields for different types
|
|
19228
|
+
this.get('transaction').reset();
|
|
19229
|
+
});
|
|
19230
|
+
}
|
|
19231
|
+
listenTankTypeChanges() {
|
|
19232
|
+
this.transactionFormGroup.get('tankType').valueChanges.subscribe((tankType) => {
|
|
19233
|
+
this.updateChartAccountsCategories();
|
|
19234
|
+
this.setupFieldsByTankType(tankType);
|
|
19235
|
+
});
|
|
19236
|
+
}
|
|
19237
|
+
/**
|
|
19238
|
+
* Update list of chart accounts categories allowed for transaction
|
|
19239
|
+
* Depends on transaction type and tank type
|
|
19240
|
+
*/
|
|
19241
|
+
updateChartAccountsCategories() {
|
|
19242
|
+
// We use unique one Chart Accounts for transfer
|
|
19243
|
+
if (this.currentValue.isTransfer()) {
|
|
19244
|
+
this.chartAccountsCategories = null;
|
|
19245
|
+
return;
|
|
19246
|
+
}
|
|
19247
|
+
const excludedCategories = [...CHART_ACCOUNTS_CATEGORIES.depreciation];
|
|
19248
|
+
this.chartAccountsCategories = intersection(CHART_ACCOUNTS_CATEGORIES[this.currentValue.typeLabel], CHART_ACCOUNTS_CATEGORIES[this.currentValue.tankTypeLabel])
|
|
19249
|
+
.filter((category) => !excludedCategories.includes(category));
|
|
19250
|
+
}
|
|
19251
|
+
setupFieldsByType(type) {
|
|
19252
|
+
switch (type) {
|
|
19253
|
+
case AllocationRuleTypeEnum.EXPENSE:
|
|
19254
|
+
case AllocationRuleTypeEnum.INCOME:
|
|
19255
|
+
this.get('transaction').enable({ emitEvent: false });
|
|
19256
|
+
this.get('transferBankAccount').disable({ emitEvent: false });
|
|
19257
|
+
break;
|
|
19258
|
+
case AllocationRuleTypeEnum.TRANSFER:
|
|
19259
|
+
this.get('transaction').disable({ emitEvent: false });
|
|
19260
|
+
this.get('transferBankAccount').enable({ emitEvent: false });
|
|
19261
|
+
return;
|
|
19262
|
+
}
|
|
19263
|
+
}
|
|
19264
|
+
setupFieldsByTankType(tankType) {
|
|
19265
|
+
// First disable tankType-related fields, second enable for selected tank type
|
|
19266
|
+
this.transactionFormGroup.get('property').disable({ emitEvent: false });
|
|
19267
|
+
this.transactionFormGroup.get('business').disable({ emitEvent: false });
|
|
19268
|
+
this.transactionFormGroup.get('isGST').disable({ emitEvent: false });
|
|
19269
|
+
this.transactionFormGroup.get('incomeSource').disable({ emitEvent: false });
|
|
19270
|
+
switch (tankType) {
|
|
19271
|
+
case TankTypeEnum.WORK:
|
|
19272
|
+
this.transactionFormGroup.get('incomeSource').enable({ emitEvent: false });
|
|
19273
|
+
break;
|
|
19274
|
+
case TankTypeEnum.PROPERTY:
|
|
19275
|
+
this.transactionFormGroup.get('property').enable({ emitEvent: false });
|
|
19276
|
+
break;
|
|
19277
|
+
case TankTypeEnum.SOLE:
|
|
19278
|
+
this.transactionFormGroup.get('business').enable({ emitEvent: false });
|
|
19279
|
+
if (this.isGST) {
|
|
19280
|
+
this.transactionFormGroup.get('isGST').enable({ emitEvent: false });
|
|
19281
|
+
}
|
|
19282
|
+
break;
|
|
19283
|
+
}
|
|
19284
|
+
}
|
|
19285
|
+
}
|
|
19286
|
+
|
|
18685
19287
|
/**
|
|
18686
19288
|
* @TODO refactor, move specific fields like property in separated forms
|
|
18687
19289
|
* @TODO remove useless getters
|
|
@@ -18844,10 +19446,10 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
18844
19446
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
18845
19447
|
super(transaction, registeredForGst, allocations, Object.assign(controls, {
|
|
18846
19448
|
// additional data related to work (like tax instalments)
|
|
18847
|
-
|
|
19449
|
+
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
|
|
18848
19450
|
return new FormGroup({
|
|
18849
|
-
value: new FormControl(
|
|
18850
|
-
|
|
19451
|
+
value: new FormControl(transactionMetaField.value),
|
|
19452
|
+
chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
|
|
18851
19453
|
});
|
|
18852
19454
|
}))
|
|
18853
19455
|
}));
|
|
@@ -18859,20 +19461,20 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
18859
19461
|
watchChartAccounts() {
|
|
18860
19462
|
super.watchChartAccounts();
|
|
18861
19463
|
this.get('chartAccounts').valueChanges.subscribe((chartAccounts) => {
|
|
18862
|
-
this.
|
|
19464
|
+
this.buildMetaFieldsForm();
|
|
18863
19465
|
});
|
|
18864
19466
|
}
|
|
18865
19467
|
/**
|
|
18866
19468
|
* depends on chartAccounts the form could include different extra fields
|
|
18867
19469
|
*/
|
|
18868
|
-
|
|
19470
|
+
buildMetaFieldsForm() {
|
|
18869
19471
|
// Remove all controls in the FormArray before pushing
|
|
18870
|
-
this.get('
|
|
18871
|
-
// create form controls for each
|
|
18872
|
-
(this.get('chartAccounts').value.
|
|
18873
|
-
this.get('
|
|
18874
|
-
value: new FormControl(
|
|
18875
|
-
|
|
19472
|
+
this.get('metaFields').clear();
|
|
19473
|
+
// create form controls for each metaField object from selected chart accounts
|
|
19474
|
+
(this.get('chartAccounts').value.metaFields).forEach((chartAccountsMetaField) => {
|
|
19475
|
+
this.get('metaFields').push(new FormGroup({
|
|
19476
|
+
value: new FormControl(chartAccountsMetaField.isSharePercentage() ? 100 : 0),
|
|
19477
|
+
chartAccountsMetaField: new FormControl(chartAccountsMetaField),
|
|
18876
19478
|
}));
|
|
18877
19479
|
});
|
|
18878
19480
|
}
|
|
@@ -18962,24 +19564,24 @@ class WorkIncomeForm extends WorkTransactionForm {
|
|
|
18962
19564
|
class WorkExpenseForm extends WorkTransactionForm {
|
|
18963
19565
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
18964
19566
|
super(transaction, registeredForGst, allocations, controls);
|
|
18965
|
-
// amount set automatically for chartAccounts with hours
|
|
18966
|
-
if (transaction.
|
|
19567
|
+
// amount set automatically for chartAccounts with hours meta field
|
|
19568
|
+
if (transaction.getMetaFieldValue(ChartAccountsMetaFieldListEnum.HOURS)) {
|
|
18967
19569
|
this.get('amount').disable();
|
|
18968
19570
|
}
|
|
18969
19571
|
}
|
|
18970
19572
|
listenEvents() {
|
|
18971
|
-
this.
|
|
19573
|
+
this.watchChartAccountsMetaFields();
|
|
18972
19574
|
}
|
|
18973
|
-
|
|
18974
|
-
this.get('
|
|
18975
|
-
const
|
|
18976
|
-
if (!
|
|
19575
|
+
watchChartAccountsMetaFields() {
|
|
19576
|
+
this.get('metaFields').valueChanges.subscribe((metaFields) => {
|
|
19577
|
+
const hoursMetaField = new Collection(metaFields).findBy('chartAccountsMetaField.id', ChartAccountsMetaFieldListEnum.HOURS);
|
|
19578
|
+
if (!hoursMetaField) {
|
|
18977
19579
|
return;
|
|
18978
19580
|
}
|
|
18979
19581
|
// for home office hours expense amount is a fixed rate per hour
|
|
18980
19582
|
this.get('amount').reset();
|
|
18981
19583
|
this.get('amount').disable();
|
|
18982
|
-
this.get('amount').setValue((this.get('chartAccounts').value.getCurrentYearValue().value * +
|
|
19584
|
+
this.get('amount').setValue((this.get('chartAccounts').value.getCurrentYearValue().value * +hoursMetaField.value).toFixed(2));
|
|
18983
19585
|
});
|
|
18984
19586
|
}
|
|
18985
19587
|
}
|
|
@@ -19025,5 +19627,5 @@ class DepreciationForm extends TransactionBaseForm {
|
|
|
19025
19627
|
* Generated bundle index. Do not edit.
|
|
19026
19628
|
*/
|
|
19027
19629
|
|
|
19028
|
-
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 };
|
|
19630
|
+
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 };
|
|
19029
19631
|
//# sourceMappingURL=taxtank-core.mjs.map
|