taxtank-core 0.33.2 → 0.33.3
Sign up to get free protection for your applications and to get access to all the features.
- package/common/src/db/enums/user/user-roles.enum.d.ts +1 -0
- package/common/src/services/mixpanel.service.d.ts +1 -0
- package/esm2022/common/src/common.module.mjs +7 -5
- package/esm2022/common/src/db/enums/user/user-roles.enum.mjs +2 -1
- package/esm2022/common/src/interceptors/interceptors.module.mjs +5 -5
- package/esm2022/common/src/interceptors/jwt-interceptor.mjs +6 -6
- package/esm2022/common/src/services/auth/auth.service.mjs +6 -6
- package/esm2022/common/src/services/auth/jwt.service.mjs +4 -4
- package/esm2022/common/src/services/mixpanel.service.mjs +13 -7
- package/esm2022/public-api.mjs +2 -3
- package/esm2022/src/lib/collections/bank-transaction.collection.mjs +2 -2
- package/esm2022/src/lib/collections/chat/chat.collection.mjs +1 -19
- package/esm2022/src/lib/collections/client-movement.collection.mjs +5 -4
- package/esm2022/src/lib/collections/client.collection.mjs +1 -1
- package/esm2022/src/lib/collections/collection-dictionary.mjs +4 -1
- package/esm2022/src/lib/collections/collection.mjs +14 -3
- package/esm2022/src/lib/collections/firm/employee-invite.collection.mjs +10 -0
- package/esm2022/src/lib/collections/firm/employee.collection.mjs +18 -0
- package/esm2022/src/lib/collections/firm/index.mjs +3 -0
- package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +2 -2
- package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
- package/esm2022/src/lib/collections/index.mjs +3 -2
- package/esm2022/src/lib/collections/property/property-valuation.collection.mjs +11 -1
- package/esm2022/src/lib/collections/report/property/property-report-item-depreciation.collection.mjs +2 -2
- package/esm2022/src/lib/collections/report/property/property-report-item-transaction.collection.mjs +2 -2
- package/esm2022/src/lib/collections/report/property/property-report-item.collection.mjs +1 -1
- package/esm2022/src/lib/collections/tax-review.collection.mjs +1 -7
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +4 -1
- package/esm2022/src/lib/collections/user/user.collection.mjs +4 -0
- package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +13 -1
- package/esm2022/src/lib/core.module.mjs +7 -6
- package/esm2022/src/lib/db/Enums/bank/bank-connection-status.enum.mjs +2 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.mjs +2 -2
- package/esm2022/src/lib/db/Enums/firm/employee-invite-role.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/firm/firm-type.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/firm/index.mjs +3 -0
- package/esm2022/src/lib/db/Enums/holding/holding-type-exchange-list.enum.mjs +6 -5
- package/esm2022/src/lib/db/Enums/index.mjs +3 -1
- package/esm2022/src/lib/db/Enums/user/gender.enum.mjs +14 -0
- package/esm2022/src/lib/db/Enums/user/index.mjs +2 -0
- package/esm2022/src/lib/db/Json/chart-accounts/chart-accounts-value.json +59 -4
- package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
- package/esm2022/src/lib/db/Models/bank/bank-connection.mjs +1 -1
- package/esm2022/src/lib/db/Models/client/annual-client-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/accountant/tax-review.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/chat.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/client-invite.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/client-movement.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/employee-invite.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/firm.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/message-document.mjs +1 -1
- package/esm2022/src/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/incomeSource/income-source.mjs +1 -1
- package/esm2022/src/lib/db/Models/incomeSource/salary-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/property/property-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-business-loss.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-business.mjs +3 -3
- package/esm2022/src/lib/db/Models/sole/sole-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +3 -4
- package/esm2022/src/lib/db/Models/user/employee-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
- package/esm2022/src/lib/db/Models/vehicle/vehicle-claim-details.mjs +1 -1
- package/esm2022/src/lib/forms/abstract.form.mjs +9 -4
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
- package/esm2022/src/lib/forms/chat/chat-filter.form.mjs +36 -0
- package/esm2022/src/lib/forms/chat/index.mjs +2 -0
- package/esm2022/src/lib/forms/client/annual-client-details.form.mjs +1 -2
- package/esm2022/src/lib/forms/client/capital-loss.form.mjs +13 -0
- package/esm2022/src/lib/forms/client/index.mjs +2 -1
- package/esm2022/src/lib/forms/collection.form.mjs +29 -0
- package/esm2022/src/lib/forms/firm/client-invite-put.form.mjs +13 -0
- package/esm2022/src/lib/forms/firm/client-invite.form.mjs +18 -0
- package/esm2022/src/lib/forms/firm/client-movement.form.mjs +22 -0
- package/esm2022/src/lib/forms/firm/employee-details.form.mjs +21 -0
- package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +24 -0
- package/esm2022/src/lib/forms/firm/firm-branch.form.mjs +13 -0
- package/esm2022/src/lib/forms/firm/firm-invite.form.mjs +18 -0
- package/esm2022/src/lib/forms/firm/index.mjs +8 -1
- package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +30 -4
- package/esm2022/src/lib/forms/index.mjs +4 -1
- package/esm2022/src/lib/forms/loan/loan.form.mjs +3 -7
- package/esm2022/src/lib/forms/register/register-client.form.mjs +9 -6
- package/esm2022/src/lib/forms/register/register-firm.form.mjs +4 -4
- package/esm2022/src/lib/forms/report/my-tax/my-tax-deductions.form.mjs +1 -1
- package/esm2022/src/lib/forms/report/my-tax/my-tax-rent.form.mjs +1 -1
- package/esm2022/src/lib/forms/sole/bas-report.form.mjs +3 -2
- package/esm2022/src/lib/forms/sole/sole-contact.form.mjs +4 -3
- package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +3 -2
- package/esm2022/src/lib/forms/tax-review/index.mjs +3 -0
- package/esm2022/src/lib/forms/tax-review/tax-review-filter-status.enum.mjs +6 -0
- package/esm2022/src/lib/forms/tax-review/tax-review-filter.form.mjs +49 -0
- package/esm2022/src/lib/forms/transaction/holding/holding-income.form.mjs +19 -9
- package/esm2022/src/lib/forms/transaction/index.mjs +2 -1
- package/esm2022/src/lib/forms/transaction/sole/sole-income.form.mjs +1 -1
- package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +35 -0
- package/esm2022/src/lib/forms/transaction/transaction.form.mjs +1 -1
- package/esm2022/src/lib/forms/transaction/work/work-transaction.form.mjs +2 -4
- package/esm2022/src/lib/forms/user/client-details.form.mjs +2 -2
- package/esm2022/src/lib/forms/user/user-invite.form.mjs +3 -2
- package/esm2022/src/lib/forms/user/user.form.mjs +11 -8
- package/esm2022/src/lib/forms/vehicle/vehicle-claim-details.form.mjs +1 -1
- package/esm2022/src/lib/forms/vehicle/vehicle-claim.form.mjs +1 -3
- package/esm2022/src/lib/forms/vehicle/vehicle-logbook.form.mjs +3 -4
- package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +6 -6
- package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +6 -6
- package/esm2022/src/lib/interceptors/interceptors.module.mjs +5 -5
- package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +7 -6
- package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +6 -6
- package/esm2022/src/lib/models/bank/bank-connection.mjs +22 -1
- package/esm2022/src/lib/models/chat/chat.mjs +6 -2
- package/esm2022/src/lib/models/chat/message-document.mjs +4 -4
- package/esm2022/src/lib/models/client/annual-client-details.mjs +1 -1
- package/esm2022/src/lib/models/client/capital-loss.interface.mjs +2 -0
- package/esm2022/src/lib/models/client/capital-loss.mjs +15 -0
- package/esm2022/src/lib/models/client/client-details.mjs +27 -1
- package/esm2022/src/lib/models/client/client-invite.mjs +8 -5
- package/esm2022/src/lib/models/client/client-movement.mjs +8 -5
- package/esm2022/src/lib/models/client/index.mjs +3 -1
- package/esm2022/src/lib/models/depreciation/depreciation.mjs +4 -2
- package/esm2022/src/lib/models/employee/employee-details.mjs +8 -2
- package/esm2022/src/lib/models/employee/employee-invite.mjs +18 -2
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +22 -13
- package/esm2022/src/lib/models/event/app-event-type.enum.mjs +20 -21
- package/esm2022/src/lib/models/file/file.mjs +4 -1
- package/esm2022/src/lib/models/financial-year/financial-year.mjs +3 -3
- package/esm2022/src/lib/models/firm/firm-branch.interface.mjs +2 -0
- package/esm2022/src/lib/models/firm/firm-branch.mjs +22 -0
- package/esm2022/src/lib/models/firm/firm.mjs +2 -2
- package/esm2022/src/lib/models/firm/index.mjs +3 -0
- package/esm2022/src/lib/models/holding/holding.mjs +4 -4
- package/esm2022/src/lib/models/income-source/salary-forecast.mjs +1 -1
- package/esm2022/src/lib/models/income-source/sole-forecast.mjs +1 -1
- package/esm2022/src/lib/models/index.mjs +2 -1
- package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +11 -7
- package/esm2022/src/lib/models/property/property-forecast.mjs +1 -7
- package/esm2022/src/lib/models/property/property.mjs +6 -2
- package/esm2022/src/lib/models/registration-invite/registration-invite.mjs +5 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +4 -4
- package/esm2022/src/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +4 -9
- package/esm2022/src/lib/models/report/property/property-report-item-transaction.mjs +1 -1
- package/esm2022/src/lib/models/sole/bas-report.mjs +4 -1
- package/esm2022/src/lib/models/sole/sole-business-loss.mjs +1 -1
- package/esm2022/src/lib/models/sole/sole-invoice.mjs +7 -6
- package/esm2022/src/lib/models/tax-review/tax-review.mjs +12 -2
- package/esm2022/src/lib/models/tax-summary/tax-summary.mjs +3 -2
- package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
- package/esm2022/src/lib/models/user/user.mjs +8 -5
- package/esm2022/src/lib/models/vehicle/vehicle-claim-details.mjs +3 -3
- package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
- package/esm2022/src/lib/pipes/app-currency.pipe.mjs +4 -4
- package/esm2022/src/lib/pipes/safe-url.pipe.mjs +5 -5
- package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +9 -9
- package/esm2022/src/lib/services/asset/assets.service.mjs +6 -6
- package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +4 -4
- package/esm2022/src/lib/services/data.service.mjs +4 -4
- package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +4 -4
- package/esm2022/src/lib/services/event/sse.service.mjs +6 -6
- package/esm2022/src/lib/services/export/export-formatter.service.mjs +5 -5
- package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +26 -0
- package/esm2022/src/lib/services/firm/index.mjs +2 -0
- package/esm2022/src/lib/services/header-title/header-title.service.mjs +5 -5
- package/esm2022/src/lib/services/http/address/address.service.mjs +6 -6
- package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +6 -6
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.mjs +5 -2
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +11 -7
- package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +6 -6
- package/esm2022/src/lib/services/http/bank/bank.service.mjs +4 -4
- package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +4 -4
- package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +22 -6
- package/esm2022/src/lib/services/http/budget/budget.service.mjs +4 -4
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +4 -4
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +4 -4
- package/esm2022/src/lib/services/http/chat/chat.service.mjs +10 -10
- package/esm2022/src/lib/services/http/chat/message-document.service.mjs +6 -6
- package/esm2022/src/lib/services/http/chat/message.service.mjs +10 -6
- package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +23 -0
- package/esm2022/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.mjs +7 -0
- package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +23 -0
- package/esm2022/src/lib/services/http/client/capital-loss/index.mjs +3 -0
- package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +4 -4
- package/esm2022/src/lib/services/http/client/index.mjs +3 -2
- package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +4 -4
- package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +4 -4
- package/esm2022/src/lib/services/http/document/document.service.mjs +4 -4
- package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
- package/esm2022/src/lib/services/http/file/file.service.mjs +4 -4
- package/esm2022/src/lib/services/http/firm/client-invite/client-invite-messages.enum.mjs +2 -2
- package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +9 -12
- package/esm2022/src/lib/services/http/firm/client-movement/client-movement-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +8 -7
- package/esm2022/src/lib/services/http/firm/client-movement/index.mjs +2 -1
- package/esm2022/src/lib/services/http/firm/employee/employee-messages.enum.mjs +2 -1
- package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +14 -8
- package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +9 -9
- package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.mjs +9 -0
- package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +23 -0
- package/esm2022/src/lib/services/http/firm/firm-branch/index.mjs +3 -0
- package/esm2022/src/lib/services/http/firm/firm.service.mjs +7 -7
- package/esm2022/src/lib/services/http/firm/index.mjs +2 -1
- package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +6 -6
- package/esm2022/src/lib/services/http/google/google.service.mjs +6 -6
- package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +7 -7
- package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +6 -6
- package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +8 -8
- package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +6 -6
- package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +9 -8
- package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +6 -6
- package/esm2022/src/lib/services/http/loan/loan.service.mjs +6 -6
- package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +6 -6
- package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +6 -6
- package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/property/property.service.mjs +7 -6
- package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +6 -6
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +12 -7
- package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +6 -6
- package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/bas-report/bas-report-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/bas-report/index.mjs +3 -0
- package/esm2022/src/lib/services/http/sole/index.mjs +2 -2
- package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +10 -14
- package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +8 -9
- package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +6 -6
- package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +6 -6
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +6 -6
- package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +6 -6
- package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +6 -6
- package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +6 -6
- package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +6 -6
- package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +6 -6
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +4 -4
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +6 -6
- package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +6 -6
- package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
- package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +4 -4
- package/esm2022/src/lib/services/http/user/user.service.mjs +6 -6
- package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +4 -4
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +6 -6
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +19 -8
- package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +6 -5
- package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
- package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
- package/esm2022/src/lib/services/index.mjs +2 -1
- package/esm2022/src/lib/services/intercom/intercom.service.mjs +6 -6
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +5 -5
- package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +5 -5
- package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +5 -5
- package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +5 -5
- package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +5 -5
- package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +5 -5
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +4 -4
- package/esm2022/src/lib/services/preloader/preloader.service.mjs +5 -5
- package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +6 -6
- package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +6 -6
- package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +4 -4
- package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +17 -12
- package/esm2022/src/lib/services/toast/toast.service.mjs +4 -4
- package/esm2022/src/lib/services/user/user-switcher.service.mjs +4 -4
- package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +4 -4
- package/esm2022/src/lib/validators/date-range.validator.mjs +1 -1
- package/esm2022/src/lib/validators/fields-sum.validator.mjs +1 -1
- package/esm2022/src/lib/validators/greater-than.validator.mjs +1 -1
- package/esm2022/src/lib/validators/index.mjs +3 -1
- package/esm2022/src/lib/validators/match-sum.validator.mjs +16 -0
- package/esm2022/src/lib/validators/string/alpha-space.validator.mjs +10 -0
- package/esm2022/src/lib/validators/unique-email.validator.mjs +5 -5
- package/fesm2022/taxtank-core-common.mjs +36 -27
- package/fesm2022/taxtank-core-common.mjs.map +1 -1
- package/fesm2022/taxtank-core.mjs +1545 -870
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/src/lib/collections/bank-transaction.collection.d.ts +3 -2
- package/src/lib/collections/chat/chat.collection.d.ts +1 -5
- package/src/lib/collections/client-movement.collection.d.ts +2 -2
- package/src/lib/collections/client.collection.d.ts +1 -1
- package/src/lib/collections/collection-dictionary.d.ts +1 -0
- package/src/lib/collections/collection.d.ts +5 -1
- package/src/lib/collections/firm/employee-invite.collection.d.ts +5 -0
- package/src/lib/collections/firm/employee.collection.d.ts +6 -0
- package/src/lib/collections/firm/index.d.ts +2 -0
- package/src/lib/collections/income-source/income-source.collection.d.ts +1 -1
- package/src/lib/collections/index.d.ts +2 -1
- package/src/lib/collections/property/property-valuation.collection.d.ts +4 -0
- package/src/lib/collections/report/property/property-report-item-depreciation.collection.d.ts +2 -2
- package/src/lib/collections/report/property/property-report-item-transaction.collection.d.ts +3 -3
- package/src/lib/collections/report/property/property-report-item.collection.d.ts +1 -1
- package/src/lib/collections/tax-review.collection.d.ts +0 -4
- package/src/lib/collections/transaction/transaction.collection.d.ts +1 -0
- package/src/lib/collections/user/user.collection.d.ts +4 -0
- package/src/lib/collections/vehicle/vehicle-logbook.collection.d.ts +6 -0
- package/src/lib/core.module.d.ts +2 -1
- package/src/lib/db/Enums/bank/bank-connection-status.enum.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.d.ts +1 -1
- package/src/lib/db/Enums/firm/employee-invite-role.enum.d.ts +4 -0
- package/src/lib/db/Enums/firm/index.d.ts +2 -0
- package/src/lib/db/Enums/holding/holding-type-exchange-list.enum.d.ts +5 -4
- package/src/lib/db/Enums/index.d.ts +2 -0
- package/src/lib/db/Enums/user/gender.enum.d.ts +12 -0
- package/src/lib/db/Enums/user/index.d.ts +1 -0
- package/src/lib/db/Models/bank/bank-connection.d.ts +1 -0
- package/src/lib/db/Models/client/annual-client-details.d.ts +0 -1
- package/src/lib/db/Models/client/client-details.d.ts +1 -0
- package/src/lib/db/Models/firm/accountant/tax-review.d.ts +2 -0
- package/src/lib/db/Models/firm/chat.d.ts +2 -0
- package/src/lib/db/Models/firm/client-invite.d.ts +5 -2
- package/src/lib/db/Models/firm/client-movement.d.ts +2 -2
- package/src/lib/db/Models/firm/employee-invite.d.ts +4 -2
- package/src/lib/db/Models/firm/firm.d.ts +1 -1
- package/src/lib/db/Models/firm/message-document.d.ts +2 -6
- package/src/lib/db/Models/incomeSource/income-source-forecast.d.ts +2 -1
- package/src/lib/db/Models/incomeSource/income-source.d.ts +1 -1
- package/src/lib/db/Models/incomeSource/salary-forecast.d.ts +1 -0
- package/src/lib/db/Models/property/property-forecast.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-business-loss.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-business.d.ts +2 -2
- package/src/lib/db/Models/sole/sole-forecast.d.ts +1 -0
- package/src/lib/db/Models/user/employee-details.d.ts +2 -0
- package/src/lib/db/Models/user/user.d.ts +2 -0
- package/src/lib/db/Models/vehicle/vehicle-claim-details.d.ts +1 -1
- package/src/lib/forms/abstract.form.d.ts +14 -7
- package/src/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +1 -1
- package/src/lib/forms/chat/chat-filter.form.d.ts +18 -0
- package/src/lib/forms/chat/index.d.ts +1 -0
- package/src/lib/forms/client/capital-loss.form.d.ts +6 -0
- package/src/lib/forms/client/index.d.ts +1 -0
- package/src/lib/forms/collection.form.d.ts +14 -0
- package/src/lib/forms/firm/client-invite-put.form.d.ts +11 -0
- package/src/lib/forms/firm/client-invite.form.d.ts +15 -0
- package/src/lib/forms/firm/client-movement.form.d.ts +14 -0
- package/src/lib/forms/firm/employee-details.form.d.ts +14 -0
- package/src/lib/forms/firm/employee-invite.form.d.ts +17 -0
- package/src/lib/forms/firm/firm-branch.form.d.ts +5 -0
- package/src/lib/forms/firm/firm-invite.form.d.ts +15 -0
- package/src/lib/forms/firm/index.d.ts +7 -0
- package/src/lib/forms/holding/holding-reinvest.form.d.ts +7 -0
- package/src/lib/forms/index.d.ts +3 -0
- package/src/lib/forms/loan/loan.form.d.ts +2 -2
- package/src/lib/forms/register/register-client.form.d.ts +1 -1
- package/src/lib/forms/register/register-firm.form.d.ts +2 -2
- package/src/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +1 -1
- package/src/lib/forms/report/my-tax/my-tax-rent.form.d.ts +1 -1
- package/src/lib/forms/tax-review/index.d.ts +2 -0
- package/src/lib/forms/tax-review/tax-review-filter-status.enum.d.ts +4 -0
- package/src/lib/forms/tax-review/tax-review-filter.form.d.ts +21 -0
- package/src/lib/forms/transaction/holding/holding-income.form.d.ts +8 -1
- package/src/lib/forms/transaction/index.d.ts +1 -0
- package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +19 -0
- package/src/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
- package/src/lib/forms/user/user.form.d.ts +15 -3
- package/src/lib/forms/vehicle/vehicle-claim.form.d.ts +0 -2
- package/src/lib/models/bank/bank-connection.d.ts +8 -0
- package/src/lib/models/chat/chat.d.ts +3 -1
- package/src/lib/models/chat/message-document.d.ts +4 -4
- package/src/lib/models/client/annual-client-details.d.ts +0 -1
- package/src/lib/models/client/capital-loss.d.ts +9 -0
- package/src/lib/models/client/capital-loss.interface.d.ts +6 -0
- package/src/lib/models/client/client-details.d.ts +8 -0
- package/src/lib/models/client/client-invite.d.ts +3 -2
- package/src/lib/models/client/client-movement.d.ts +3 -2
- package/src/lib/models/client/index.d.ts +2 -0
- package/src/lib/models/employee/employee-details.d.ts +3 -1
- package/src/lib/models/employee/employee-invite.d.ts +7 -1
- package/src/lib/models/event/app-event-type.enum.d.ts +19 -20
- package/src/lib/models/file/file.d.ts +1 -0
- package/src/lib/models/firm/firm-branch.d.ts +12 -0
- package/src/lib/models/firm/firm-branch.interface.d.ts +7 -0
- package/src/lib/models/firm/index.d.ts +2 -0
- package/src/lib/models/holding/holding.d.ts +0 -1
- package/src/lib/models/index.d.ts +1 -0
- package/src/lib/models/property/property-equity-chart-data.d.ts +7 -7
- package/src/lib/models/property/property-forecast.d.ts +0 -4
- package/src/lib/models/registration-invite/registration-invite.d.ts +2 -0
- package/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -1
- package/src/lib/models/report/property/property-report-item-transaction.d.ts +3 -3
- package/src/lib/models/tax-review/tax-review.d.ts +5 -1
- package/src/lib/models/user/user.d.ts +2 -3
- package/src/lib/models/vehicle/vehicle-claim-details.d.ts +1 -1
- package/src/lib/services/firm/current-firm-branch.service.d.ts +11 -0
- package/src/lib/services/firm/index.d.ts +1 -0
- package/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts +5 -2
- package/src/lib/services/http/bank/basiq/basiq.service.d.ts +8 -0
- package/src/lib/services/http/chat/message.service.d.ts +2 -0
- package/src/lib/services/http/client/{capital-gain/annual-client-details.service.d.ts → annual-client-details.service.d.ts} +4 -4
- package/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.d.ts +5 -0
- package/src/lib/services/http/client/capital-loss/capital-loss.service.d.ts +12 -0
- package/src/lib/services/http/client/capital-loss/index.d.ts +2 -0
- package/src/lib/services/http/client/index.d.ts +2 -1
- package/src/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts +1 -1
- package/src/lib/services/http/firm/client-invite/client-invite.service.d.ts +0 -1
- package/src/lib/services/http/firm/client-movement/client-movement-messages.enum.d.ts +6 -0
- package/src/lib/services/http/firm/client-movement/client-movement.service.d.ts +2 -1
- package/src/lib/services/http/firm/client-movement/index.d.ts +1 -0
- package/src/lib/services/http/firm/employee/employee-messages.enum.d.ts +2 -1
- package/src/lib/services/http/firm/employee/employee.service.d.ts +4 -3
- package/src/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +3 -3
- package/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.d.ts +7 -0
- package/src/lib/services/http/firm/firm-branch/firm-branch.service.d.ts +13 -0
- package/src/lib/services/http/firm/firm-branch/index.d.ts +2 -0
- package/src/lib/services/http/firm/firm.service.d.ts +2 -2
- package/src/lib/services/http/firm/index.d.ts +1 -0
- package/src/lib/services/http/holding/holding-sale.service.d.ts +1 -2
- package/src/lib/services/http/property/property-valuation/property-valuation.service.d.ts +1 -2
- package/src/lib/services/http/rest/rest.service.d.ts +5 -0
- package/src/lib/services/http/sole/bas-report/bas-report-messages.enum.d.ts +6 -0
- package/src/lib/services/http/sole/bas-report/index.d.ts +2 -0
- package/src/lib/services/http/sole/index.d.ts +1 -1
- package/src/lib/services/http/sole/sole-business/sole-business.service.d.ts +7 -5
- package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -1
- package/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts +2 -1
- package/src/lib/services/index.d.ts +1 -0
- package/src/lib/services/report/property/property-transaction-report.service.d.ts +4 -7
- package/src/lib/validators/index.d.ts +2 -0
- package/src/lib/validators/match-sum.validator.d.ts +6 -0
- package/src/lib/validators/string/alpha-space.validator.d.ts +5 -0
- package/esm2022/src/lib/collections/employee.collection.mjs +0 -11
- package/esm2022/src/lib/db/Enums/firm-type.enum.mjs +0 -6
- package/esm2022/src/lib/functions/tax-review-filter-predicate.mjs +0 -10
- package/esm2022/src/lib/services/http/client/capital-gain/annual-client-details.service.mjs +0 -23
- package/esm2022/src/lib/validators/transactions-meta-fields.validator.mjs +0 -33
- package/src/lib/collections/employee.collection.d.ts +0 -6
- package/src/lib/functions/tax-review-filter-predicate.d.ts +0 -7
- package/src/lib/validators/transactions-meta-fields.validator.d.ts +0 -5
- /package/src/lib/db/Enums/{firm-type.enum.d.ts → firm/firm-type.enum.d.ts} +0 -0
@@ -42,25 +42,24 @@ export var AppEventTypeEnum;
|
|
42
42
|
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 36] = "PROPERTY_SUBSCRIPTION_ADDED";
|
43
43
|
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 37] = "PROPERTY_SUBSCRIPTION_DELETED";
|
44
44
|
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 38] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
|
45
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
46
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
47
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
48
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
49
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
50
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
51
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
52
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
53
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
54
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
55
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
56
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
57
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
58
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
59
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
60
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
61
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
62
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
63
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
64
|
-
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 58] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
45
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 39] = "SOLE_DEPRECIATION_METHOD_UPDATED";
|
46
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 40] = "SOLE_DETAILS_CREATED";
|
47
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 41] = "SOLE_DETAILS_UPDATED";
|
48
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 42] = "SOLE_INVOICE_PUBLISHED";
|
49
|
+
AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 43] = "TAX_REVIEW_UPDATED";
|
50
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 44] = "TRANSACTION_ALLOCATION_CREATED";
|
51
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 45] = "TRANSACTION_ALLOCATION_DELETED";
|
52
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 46] = "TRANSACTION_CREATED";
|
53
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 47] = "TRANSACTION_DELETED";
|
54
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 48] = "TRANSACTION_UPDATED";
|
55
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 49] = "TRANSACTIONS_CREATED";
|
56
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 50] = "VEHICLE_CLAIM_UPDATED";
|
57
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 51] = "VEHICLE_CLAIM_CREATED";
|
58
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 52] = "VEHICLE_CLAIM_DETAILS_UPDATED";
|
59
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 53] = "VEHICLE_CLAIM_DETAILS_CREATED";
|
60
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 54] = "VEHICLE_LOGBOOK_CREATED";
|
61
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 55] = "VEHICLE_LOGBOOK_UPDATED";
|
62
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 56] = "VEHICLE_LOGBOOK_DELETED";
|
63
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 57] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
65
64
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
66
|
-
//# sourceMappingUR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includes[this.mimeType];
|
10
10
|
}
|
11
|
+
get month() {
|
12
|
+
return this.formatDate(this.createdAt, 'MMM yyyy');
|
13
|
+
}
|
11
14
|
}
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvZmlsZS9maWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUV2Qzs7O0dBR0c7QUFDSCxNQUFNLE9BQU8sT0FBUSxTQUFRLElBQUk7YUFDeEIsbUJBQWMsR0FBYSxDQUFDLHlEQUF5RCxDQUFDLENBQUM7SUFFOUYsT0FBTztRQUNMLE9BQU8sT0FBTyxDQUFDLGNBQWMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ3hELENBQUM7SUFFRCxJQUFJLEtBQUs7UUFDUCxPQUFPLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSxVQUFVLENBQUMsQ0FBQztJQUNyRCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmlsZSB9IGZyb20gJy4uLy4uL2RiL01vZGVscyc7XG5cbi8qKlxuICogVGhlIG1vZGVsIHJlbmFtZWQgZm9yIG1vcmUgY29tZm9ydGFibGUgd29yayBiZWNhdXNlIEZpbGUgYWxyZWFkeSBleGlzdCBpbiBKU1xuICogQFRPRE8gQWxleDogY29uc2lkZXIgYSBiZXR0ZXIgbmFtZSBsaWtlIGRvY3VtZW50XG4gKi9cbmV4cG9ydCBjbGFzcyBBcHBGaWxlIGV4dGVuZHMgRmlsZSB7XG4gIHN0YXRpYyBpbWFnZU1pbWVUeXBlczogc3RyaW5nW10gPSBbJ2ltYWdlL2pwZywgaW1hZ2UvanBlZywgaW1hZ2UvcG5nLCBpbWFnZS90aWZmLCBpbWFnZS9ibXAnXTtcblxuICBpc0ltYWdlKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBBcHBGaWxlLmltYWdlTWltZVR5cGVzLmluY2x1ZGVzW3RoaXMubWltZVR5cGVdO1xuICB9XG5cbiAgZ2V0IG1vbnRoKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuZm9ybWF0RGF0ZSh0aGlzLmNyZWF0ZWRBdCwgJ01NTSB5eXl5Jyk7XG4gIH1cbn1cbiJdfQ==
|
@@ -6,8 +6,8 @@ export class FinancialYear {
|
|
6
6
|
return +localStorage.getItem('financialYear');
|
7
7
|
}
|
8
8
|
constructor(date) {
|
9
|
-
this.yearStartDate = '-07-
|
10
|
-
this.yearEndDate = '-06-
|
9
|
+
this.yearStartDate = '-07-01T00:00:00Z';
|
10
|
+
this.yearEndDate = '-06-30T23:59:59Z';
|
11
11
|
if (date) {
|
12
12
|
this.year = date instanceof Date ? FinancialYear.toFinYear(date) : date;
|
13
13
|
}
|
@@ -54,4 +54,4 @@ export class FinancialYear {
|
|
54
54
|
return months;
|
55
55
|
}
|
56
56
|
}
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluYW5jaWFsLXllYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2ZpbmFuY2lhbC15ZWFyL2ZpbmFuY2lhbC15ZWFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxhQUFhO2FB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dGUgOiBub3c7XHJcbiAgICBmb3IgKGNvbnN0IGQ6IERhdGUgPSB0aGlzLnN0YXJ0RGF0ZTsgZCA8PSBlbmREYXRlOyBkLnNldE1vbnRoKGQuZ2V0TW9udGgoKSArIDEpKSB7XHJcbiAgICAgIG1vbnRocy5wdXNoKGQuZ2V0TW9udGgoKSk7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIG1vbnRocztcclxuICB9XHJcbn1cclxuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS1icmFuY2guaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9maXJtL2Zpcm0tYnJhbmNoLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGaXJtQnJhbmNoSW50ZXJmYWNlIHtcbiAgbmFtZTogc3RyaW5nO1xuICBpc01haW46IGJvb2xlYW47XG4gIGZpcm06IG9iamVjdDtcbiAgYWRkcmVzczogb2JqZWN0O1xuICBwaG9uZT86IG9iamVjdDtcbn1cbiJdfQ==
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { Firm } from './firm';
|
3
|
+
import { Address } from '../address';
|
4
|
+
import { AbstractModel } from '../../db/Models';
|
5
|
+
import { Type } from 'class-transformer';
|
6
|
+
import { Phone } from '../phone/phone';
|
7
|
+
export class FirmBranch extends AbstractModel {
|
8
|
+
constructor() {
|
9
|
+
super(...arguments);
|
10
|
+
this.isMain = false;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
__decorate([
|
14
|
+
Type(() => Firm)
|
15
|
+
], FirmBranch.prototype, "firm", void 0);
|
16
|
+
__decorate([
|
17
|
+
Type(() => Address)
|
18
|
+
], FirmBranch.prototype, "address", void 0);
|
19
|
+
__decorate([
|
20
|
+
Type(() => Phone)
|
21
|
+
], FirmBranch.prototype, "phone", void 0);
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS1icmFuY2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2Zpcm0vZmlybS1icmFuY2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFDOUIsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNyQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRXpDLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV2QyxNQUFNLE9BQU8sVUFBVyxTQUFRLGFBQWE7SUFBN0M7O1FBRUUsV0FBTSxHQUFHLEtBQUssQ0FBQztJQU9qQixDQUFDO0NBQUE7QUFMQztJQURDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUM7d0NBQ047QUFFWDtJQURDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxPQUFPLENBQUM7MkNBQ0g7QUFFakI7SUFEQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsS0FBSyxDQUFDO3lDQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmlybSB9IGZyb20gJy4vZmlybSc7XG5pbXBvcnQgeyBBZGRyZXNzIH0gZnJvbSAnLi4vYWRkcmVzcyc7XG5pbXBvcnQgeyBBYnN0cmFjdE1vZGVsIH0gZnJvbSAnLi4vLi4vZGIvTW9kZWxzJztcbmltcG9ydCB7IFR5cGUgfSBmcm9tICdjbGFzcy10cmFuc2Zvcm1lcic7XG5pbXBvcnQgeyBGaXJtQnJhbmNoSW50ZXJmYWNlIH0gZnJvbSAnLi9maXJtLWJyYW5jaC5pbnRlcmZhY2UnO1xuaW1wb3J0IHsgUGhvbmUgfSBmcm9tICcuLi9waG9uZS9waG9uZSc7XG5cbmV4cG9ydCBjbGFzcyBGaXJtQnJhbmNoIGV4dGVuZHMgQWJzdHJhY3RNb2RlbCBpbXBsZW1lbnRzIEZpcm1CcmFuY2hJbnRlcmZhY2Uge1xuICBuYW1lOiBzdHJpbmc7XG4gIGlzTWFpbiA9IGZhbHNlO1xuICBAVHlwZSgoKSA9PiBGaXJtKVxuICBmaXJtOiBGaXJtO1xuICBAVHlwZSgoKSA9PiBBZGRyZXNzKVxuICBhZGRyZXNzOiBBZGRyZXNzO1xuICBAVHlwZSgoKSA9PiBQaG9uZSlcbiAgcGhvbmU/OiBQaG9uZTtcbn1cbiJdfQ==
|
@@ -5,7 +5,7 @@ import { Address } from '../address';
|
|
5
5
|
import { User } from '../user';
|
6
6
|
import { Type } from 'class-transformer';
|
7
7
|
import { AppFile } from '../file';
|
8
|
-
import { FirmTypeEnum } from '../../db/Enums
|
8
|
+
import { FirmTypeEnum } from '../../db/Enums';
|
9
9
|
export class Firm extends FirmBase {
|
10
10
|
isAccountant() {
|
11
11
|
return this.type === FirmTypeEnum.ACCOUNTANT;
|
@@ -23,4 +23,4 @@ __decorate([
|
|
23
23
|
__decorate([
|
24
24
|
Type(() => AppFile)
|
25
25
|
], Firm.prototype, "file", void 0);
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS5qcyIsInNvdXJ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uLi8uLi9kYi9Nb2RlbHMvZmlybS9maXJtJztcclxuaW1wb3J0IHsgUGhvbmUgfSBmcm9tICcuLi9waG9uZS9waG9uZSc7XHJcbmltcG9ydCB7IEFkZHJlc3MgfSBmcm9tICcuLi9hZGRyZXNzJztcclxuaW1wb3J0IHsgVXNlciB9IGZyb20gJy4uL3VzZXInO1xyXG5pbXBvcnQgeyBUeXBlIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInO1xyXG5pbXBvcnQgeyBBcHBGaWxlIH0gZnJvbSAnLi4vZmlsZSc7XHJcbmltcG9ydCB7IEZpcm1UeXBlRW51bSB9IGZyb20gJy4uLy4uL2RiL0VudW1zJztcclxuXHJcbmV4cG9ydCBjbGFzcyBGaXJtIGV4dGVuZHMgRmlybUJhc2Uge1xyXG4gIEBUeXBlKCgpID0+IFVzZXIpXHJcbiAgb3duZXI6IFVzZXI7XHJcblxyXG4gIEBUeXBlKCgpID0+IEFkZHJlc3MpXHJcbiAgYWRkcmVzczogQWRkcmVzcztcclxuXHJcbiAgQFR5cGUoKCkgPT4gUGhvbmUpXHJcbiAgcGhvbmU6IFBob25lO1xyXG5cclxuICBAVHlwZSgoKSA9PiBBcHBGaWxlKVxyXG4gIGZpbGU6IEFwcEZpbGU7XHJcblxyXG4gIGlzQWNjb3VudGFudCgpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0aGlzLnR5cGUgPT09IEZpcm1UeXBlRW51bS5BQ0NPVU5UQU5UO1xyXG4gIH1cclxufVxyXG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './firm';
|
2
|
+
export * from './firm-branch';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2Zpcm0vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Zpcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtLWJyYW5jaCc7XG4iXX0=
|
@@ -17,18 +17,18 @@ export class Holding extends AbstractModel {
|
|
17
17
|
* Get total purchasing price
|
18
18
|
*/
|
19
19
|
get purchaseValue() {
|
20
|
+
const quantity = this.currentQuantity ?? this.quantity;
|
20
21
|
// Price and entity may be empty when we use HoldingForm.currentValue
|
21
22
|
if (!this.price || !this.quantity) {
|
22
23
|
return 0;
|
23
24
|
}
|
24
|
-
return this.price *
|
25
|
+
return this.price * quantity;
|
25
26
|
}
|
26
27
|
/**
|
27
28
|
* Get current market price
|
28
|
-
* @TODO vik/alex no need to pass holdingType, should come from backend
|
29
29
|
*/
|
30
30
|
get marketValue() {
|
31
|
-
return this.
|
31
|
+
return this.currentQuantity * this.type.price;
|
32
32
|
}
|
33
33
|
/**
|
34
34
|
* Get percent difference between current and buy price
|
@@ -79,4 +79,4 @@ __decorate([
|
|
79
79
|
}, { toClassOnly: true }),
|
80
80
|
Expose({ toClassOnly: true })
|
81
81
|
], Holding.prototype, "category", void 0);
|
82
|
-
//# sourceMappingURL=data:application/json;base64,
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvaG9sZGluZy9ob2xkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxJQUFJLEVBQUUsWUFBWSxFQ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1cbiJdfQ==
|
@@ -33,4 +33,4 @@ __decorate([
|
|
33
33
|
__decorate([
|
34
34
|
Type(() => IncomeSource)
|
35
35
|
], SalaryForecast.prototype, "incomeSource", void 0);
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FsYXJ5LWZvcmVjYXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9pbmNvbWUtc291cmNlL3NhbGFyeS1mb3JlY2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGNBQWMsSUFBSSxrQkFBa0IsRUFBRSxNQUFNLDhDQUE4QyxDQUFDO0FBQ3BHLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDekMsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDNUYsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBR2xELE1BQU0sT0FBTyxjQUFlLFNBQVEsa0JBQWtCO0lBT3BELElBQUksV0FBVztRQUNiLE9BQU8sSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDO0lBQ2hDLENBQUM7SUFLRCxJQUFJLFdBQVc7UUFDYixPQUFPLElBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUN4QyxDQUFDO0lBRUQsSUFBSSxhQUFhO1FBQ2YsUUFBUSxJQUFJLENBQUMsU0FBUyxFQUFFO1lBQ3RCLEtBQUssMkJBQTJCLENBQUMsTUFB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GaW5hbmNpYWxZZWFyLm1vbnRoc0luWWVhciAvIDI7XG4gICAgICBjYXNlIFNhbGFyeUZvcmVjYXN0RnJlcXVlbmN5RW51bS5XRUVLTFk6XG4gICAgICAgIHJldHVybiB0aGlzLm5ldFBheSAqIEZpbmFuY2lhbFllYXIud2Vla3NJblllYXIgLyBGaW5hbmNpYWxZZWFyLm1vbnRoc0luWWVhcjtcbiAgICAgIGRlZmF1bHQ6XG4gICAgICAgIHJldHVybiB0aGlzLm5ldFBheTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -10,4 +10,4 @@ export class SoleForecast extends SoleForecastBase {
|
|
10
10
|
__decorate([
|
11
11
|
Type(() => IncomeSource)
|
12
12
|
], SoleForecast.prototype, "incomeSource", void 0);
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1mb3JlY2FzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvaW5jb21lLXNvdXJjZS9zb2xlLWZvcmVjYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksSUFBSSxnQkFBZ0IsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBQ3RGLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUl6QyxNQUFNLE9BQU8sWUFBYSxTQUFRLGdCQUFnQjtJQUloRCxJQUFJLE1BQU07UUFDUixPQUFPLElBQUksQ0FBQyxNQUFNLENBQUM7SUFDckIsQ0FBQztDQUNGO0FBTEM7SUFEQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsWUFBWSxDQUFDO2tEQUNFIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5jb21lU291cmNlIH0gZnJvbSAnLi9pbmNvbWUtc291cmNlJztcbmltcG9ydCB7IFNvbGVGb3JlY2FzdCBhcyBTb2xlRm9yZWNhc3RCYXNlIH0gZnJvbSAnLi4vLi4vZGIvTW9kZWxzL3NvbGUvc29sZS1mb3JlY2FzdCc7XG5pbXBvcnQgeyBUeXBlIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInO1xuaW1wb3J0IHsgSUluY29tZVNvdXJjZUZvcmVjYXN0IH0gZnJvbSAnLi4vLi4vaW50ZXJmYWNlcyc7XG5pbXBvcnQgeyBVc2VyIH0gZnJvbSAnLi4vdXNlcic7XG5cbmV4cG9ydCBjbGFzcyBTb2xlRm9yZWNhc3QgZXh0ZW5kcyBTb2xlRm9yZWNhc3RCYXNlICBpbXBsZW1lbnRzIElJbmNvbWVTb3VyY2VGb3JlY2FzdCB7XG4gIEBUeXBlKCgpID0+IEluY29tZVNvdXJjZSlcbiAgaW5jb21lU291cmNlOiBJbmNvbWVTb3VyY2U7XG5cbiAgZ2V0IG5ldFBheSgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmFtb3VudDtcbiAgfVxufVxuIl19
|
@@ -23,4 +23,5 @@ export * from './income-source';
|
|
23
23
|
export * from './asset-sale';
|
24
24
|
export * from './budget';
|
25
25
|
export * from './tax-return';
|
26
|
-
|
26
|
+
export * from './firm';
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsV0FBVyxDQUFDO0FBQz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20gJy4vZXZlbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlJztcbmV4cG9ydCAqIGZyb20gJy4vZmluYW5jaWFsLXllYXInO1xuZXhwb3J0ICogZnJvbSAnLi9sb2FuJztcbmV4cG9ydCAqIGZyb20gJy4vbm90aWZpY2F0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vc2VydmljZS1zdWJzY3JpcHRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9zb2xlJztcbmV4cG9ydCAqIGZyb20gJy4vdmVoaWNsZSc7XG5leHBvcnQgKiBmcm9tICcuL2RvY3VtZW50JztcbmV4cG9ydCAqIGZyb20gJy4vcHJvcGVydHknO1xuZXhwb3J0ICogZnJvbSAnLi90cmFuc2FjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3VzZXInO1xuZXhwb3J0ICogZnJvbSAnLi9ob2xkaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vY2xpZW50JztcbmV4cG9ydCAqIGZyb20gJy4vaW5jb21lLXNvdXJjZSc7XG5leHBvcnQgKiBmcm9tICcuL2Fzc2V0LXNhbGUnO1xuZXhwb3J0ICogZnJvbSAnLi9idWRnZXQnO1xuZXhwb3J0ICogZnJvbSAnLi90YXgtcmV0dXJuJztcbmV4cG9ydCAqIGZyb20gJy4vZmlybSc7XG4iXX0=
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import first from 'lodash/first';
|
2
2
|
import { PropertyEquityChartItem } from './property-equity-chart-item';
|
3
|
-
import { FinancialYear } from '../financial-year
|
3
|
+
import { FinancialYear } from '../financial-year';
|
4
4
|
import { PropertyEquityChartTypeEnum } from './property-equity-chart-type.enum';
|
5
5
|
// count of years for future values
|
6
6
|
const FORECAST_YEARS = 25;
|
@@ -11,11 +11,13 @@ const FORECAST_YEARS = 25;
|
|
11
11
|
* Also on hover appear equity positions point
|
12
12
|
*/
|
13
13
|
export class PropertyEquityChartData {
|
14
|
-
constructor(properties, bankAccounts, loans, registerDate) {
|
15
|
-
this.registerDate = registerDate;
|
14
|
+
constructor(properties, valuations, bankAccounts, loans, registerDate) {
|
16
15
|
this.properties = properties;
|
17
|
-
this.
|
16
|
+
this.valuations = valuations;
|
17
|
+
this.bankAccounts = bankAccounts;
|
18
18
|
this.loans = loans;
|
19
|
+
this.registerDate = registerDate;
|
20
|
+
this.bankAccounts = bankAccounts.getLoanAccounts();
|
19
21
|
this.currentYear = new FinancialYear(new Date()).year;
|
20
22
|
this.initItems();
|
21
23
|
this.buildHistoryItems();
|
@@ -80,12 +82,13 @@ export class PropertyEquityChartData {
|
|
80
82
|
});
|
81
83
|
}
|
82
84
|
/**
|
85
|
+
* @TODO remove, there is no difference between actual and history calculations
|
83
86
|
* set actual year's real data
|
84
87
|
* @private
|
85
88
|
*/
|
86
89
|
buildActualItem() {
|
87
90
|
const item = this.list.find((i) => i.year === this.currentYear);
|
88
|
-
item.marketValue = this.
|
91
|
+
item.marketValue = this.valuations.getMarketValue(new Date());
|
89
92
|
item.loanBalance = this.properties.items.reduce((sum, property) => sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id)), 0);
|
90
93
|
}
|
91
94
|
/**
|
@@ -94,7 +97,8 @@ export class PropertyEquityChartData {
|
|
94
97
|
buildForecastedItems() {
|
95
98
|
// calculate future values for all properties separately
|
96
99
|
this.properties.items.forEach((property) => {
|
97
|
-
|
100
|
+
const marketValue = this.valuations.filterBy('property.id', property.id).getMarketValue(new Date());
|
101
|
+
let forecastedMarketValue = (property.growthPercent / 100) * marketValue + marketValue;
|
98
102
|
// calculate future values for each future year for current handling property
|
99
103
|
this.list
|
100
104
|
.filter((item) => item.year > this.currentYear)
|
@@ -154,4 +158,4 @@ export class PropertyEquityChartData {
|
|
154
158
|
});
|
155
159
|
}
|
156
160
|
}
|
157
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktZXF1aXR5LWNoYXJ0LWRhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic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JvTWFya2V0VmFsdWUoKTogdm9pZCB7XG4gICAgdGhpcy5saXN0LmZvckVhY2goKGl0ZW06IFByb3BlcnR5RXF1aXR5Q2hhcnRJdGVtKSA9PiB7XG4gICAgICBpZiAoaXRlbS5tYXJrZXRWYWx1ZSA9PT0gMCkge1xuICAgICAgICBpdGVtLm1hcmtldFZhbHVlID0gbnVsbDtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -28,12 +28,6 @@ export class PropertyForecast extends PropertyForecastBase {
|
|
28
28
|
get rentalReturn() {
|
29
29
|
return this.income / this.marketValue;
|
30
30
|
}
|
31
|
-
/**
|
32
|
-
* Check if forecast is for real current fin year (not selected in the sidebar)
|
33
|
-
*/
|
34
|
-
isCurrentYear() {
|
35
|
-
return this.financialYear === new FinancialYear(new Date()).year;
|
36
|
-
}
|
37
31
|
}
|
38
32
|
__decorate([
|
39
33
|
Transform(({ value }) => +value)
|
@@ -53,4 +47,4 @@ __decorate([
|
|
53
47
|
__decorate([
|
54
48
|
Transform(({ value }) => +value)
|
55
49
|
], PropertyForecast.prototype, "marketValue", void 0);
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktZm9yZWNhc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3Byb3BlcnR5L3Byb3BlcnR5LWZvcmVjYXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLElBQUksb0JBQW9CLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUN0RyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbEQsT0FBTyxFQUFFLFNBQVMsRU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vbjogbnVtYmVyO1xuXG4gIEBUcmFuc2Zvcm0oKHsgdmFsdWUgfSkgPT4gK3ZhbHVlKVxuICBsb2FuQmFsYW5jZTogbnVtYmVyO1xuXG4gIEBUcmFuc2Zvcm0oKHsgdmFsdWUgfSkgPT4gK3ZhbHVlKVxuICBtYXJrZXRWYWx1ZTogbnVtYmVyO1xuXG4gIGZpbmFuY2lhbFllYXI6IG51bWJlciA9IG5ldyBGaW5hbmNpYWxZZWFyKG5ldyBEYXRlKCkpLnllYXI7XG5cbiAgLyoqXG4gICAqIEdldCBjYXNoIHBvc2l0aW9uXG4gICAqIENhc2ggUG9zaXRpb24gPSBJbmNvbWUgLSBFeHBlbnNlIC0gSW50ZXJlc3RcbiAgICovXG4gIGdldCBjYXNoUG9zaXRpb24oKTogbnVtYmVyIHtcbiAgICByZXR1cm4gdGhpcy5pbmNvbWUgKyB0aGlzLmV4cGVuc2UgKyB0aGlzLmludGVyZXN0O1xuICB9XG5cblxuICAvKipcbiAgICogR2V0IHRheCBwb3NpdGlvblxuICAgKiBUYXggUG9zaXRpb24gPSBJbmNvbWUgLSBFeHBlbnNlIC0gSW50ZXJlc3QgLSBEZXByZWNpYXRpb25cbiAgICovXG4gIGdldCB0YXhQb3NpdGlvbigpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmNhc2hQb3NpdGlvbiArIHRoaXMuZGVwcmVjaWF0aW9uO1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCByZW50YWwgcmV0dXJuIHBlcmNlbnRcbiAgICogUmVudGFsIFJldHVybiA9IEluY29tZSAvIE1hcmtldCBWYWx1ZVxuICAgKi9cbiAgZ2V0IHJlbnRhbFJldHVybigpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLmluY29tZSAvIHRoaXMubWFya2V0VmFsdWU7XG4gIH1cbn1cbiJdfQ==
|
@@ -15,6 +15,8 @@ import { PropertySaleTaxExemptionMetaFieldCollection } from '../../collections';
|
|
15
15
|
import round from 'lodash/round';
|
16
16
|
import { AppFile } from '../file';
|
17
17
|
import { PropertyCategoryMovement } from './property-category-movement';
|
18
|
+
import { FinancialYear } from '../financial-year';
|
19
|
+
import { plainToClass } from 'class-transformer';
|
18
20
|
/**
|
19
21
|
* propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
|
20
22
|
*/
|
@@ -46,7 +48,9 @@ export class Property extends PropertyBase {
|
|
46
48
|
return this.valuation?.marketValue || 0;
|
47
49
|
}
|
48
50
|
get currentYearForecast() {
|
49
|
-
|
51
|
+
const year = new FinancialYear().year;
|
52
|
+
return this.forecasts.find((forecast) => forecast.financialYear === year)
|
53
|
+
?? plainToClass(PropertyForecast, {});
|
50
54
|
}
|
51
55
|
get forecastedRentalReturn() {
|
52
56
|
return this.currentYearForecast?.rentalReturn || 0;
|
@@ -246,4 +250,4 @@ __decorate([
|
|
246
250
|
__decorate([
|
247
251
|
Exclude()
|
248
252
|
], Property.prototype, "documentFile", void 0);
|
249
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3Byb3BlcnR5L3Byb3BlcnR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsUUFBUSxJQUFJLFlBQVksRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUNoRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxPQUF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