taxtank-core 0.33.2 → 0.33.4
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 +6 -5
- 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 +1544 -869
- 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
@@ -0,0 +1,22 @@
|
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
2
|
+
import { AbstractForm } from '../abstract.form';
|
3
|
+
import { Injectable } from '@angular/core';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "../../models";
|
6
|
+
export class ClientMovementForm extends AbstractForm {
|
7
|
+
constructor(clientMovement) {
|
8
|
+
super({
|
9
|
+
employee: new FormControl(clientMovement.employee, [Validators.required]),
|
10
|
+
firmBranch: new FormControl(clientMovement.firmBranch, [Validators.required]),
|
11
|
+
}, clientMovement);
|
12
|
+
}
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementForm, deps: [{ token: i1.ClientMovement }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
14
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementForm, providedIn: 'root' }); }
|
15
|
+
}
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementForm, decorators: [{
|
17
|
+
type: Injectable,
|
18
|
+
args: [{
|
19
|
+
providedIn: 'root'
|
20
|
+
}]
|
21
|
+
}], ctorParameters: function () { return [{ type: i1.ClientMovement }]; } });
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LW1vdmVtZW50LmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9jbGllbnQtbW92ZW1lbnQuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxZQUFZLEVBQXFCLE1BQU0sa0JBQWtCLENBQUM7QUFDbkUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBVzNDLE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxZQUE2RDtJQUNuRyxZQUFZLGNBQThCO1FBQ3hDLEtBQUssQ0FBQztZQUNKLFFBQVEsRUFBRSxJQUFJLFdBQVcsQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1lBQ3pFLFVBQVUsRUFBRSxJQUFJLFdBQVcsQ0FBQyxjQUFjLENBQUMsVUFBVSxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1NBRTlFLEVBQUUsY0FBYyxDQ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mVxdWlyZWRdKSxcbiAgICAgIGZpcm1CcmFuY2g6IG5ldyBGb3JtQ29udHJvbChjbGllbnRNb3ZlbWVudC5maXJtQnJhbmNoLCBbVmFsaWRhdG9ycy5yZXF1aXJlZF0pLFxuXG4gICAgfSwgY2xpZW50TW92ZW1lbnQpO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
2
|
+
import { AbstractForm } from '../abstract.form';
|
3
|
+
import { Injectable } from '@angular/core';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "../../models/employee/employee-details";
|
6
|
+
export class EmployeeDetailsForm extends AbstractForm {
|
7
|
+
constructor(employeeDetails) {
|
8
|
+
super({
|
9
|
+
firmBranches: new FormControl(employeeDetails.firmBranches, [Validators.required]),
|
10
|
+
}, employeeDetails);
|
11
|
+
}
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EmployeeDetailsForm, deps: [{ token: i1.EmployeeDetails }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
13
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EmployeeDetailsForm, providedIn: 'root' }); }
|
14
|
+
}
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EmployeeDetailsForm, decorators: [{
|
16
|
+
type: Injectable,
|
17
|
+
args: [{
|
18
|
+
providedIn: 'root'
|
19
|
+
}]
|
20
|
+
}], ctorParameters: function () { return [{ type: i1.EmployeeDetails }]; } });
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wbG95ZWUtZGV0YWlscy5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJ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xveWVlL2VtcGxveWVlLWRldGFpbHMnO1xuXG5pbnRlcmZhY2UgRW1wbG95ZWVEZXRhaWxzQ29udHJvbHNJbnRlcmZhY2UgZXh0ZW5kcyBDb250cm9sc0ludGVyZmFjZSB7XG4gIGZpcm1CcmFuY2hlczogRm9ybUNvbnRyb2w8RmlybUJyYW5jaFtdPjtcbn1cblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgRW1wbG95ZWVEZXRhaWxzRm9ybSBleHRlbmRzIEFic3RyYWN0Rm9ybTxFbXBsb3llZURldGFpbHMsIEVtcGxveWVlRGV0YWlsc0NvbnRyb2xzSW50ZXJmYWNlPiB7XG4gIGNvbnN0cnVjdG9yKGVtcGxveWVlRGV0YWlsczogRW1wbG95ZWVEZXRhaWxzKSB7XG4gICAgc3VwZXIoe1xuICAgICAgZmlybUJyYW5jaGVzOiBuZXcgRm9ybUNvbnRyb2woZW1wbG95ZWVEZXRhaWxzLmZpcm1CcmFuY2hlcywgW1ZhbGlkYXRvcnMucmVxdWlyZWRdKSxcbiAgICB9LCBlbXBsb3llZURldGFpbHMpO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
2
|
+
import { AbstractForm } from '../abstract.form';
|
3
|
+
import { EmployeeInvite } from '../../models/employee/employee-invite';
|
4
|
+
import { alphaSpaceValidator } from '../../validators';
|
5
|
+
import { EmployeeInviteRoleEnum } from '../../db/Enums';
|
6
|
+
import { plainToClass } from 'class-transformer';
|
7
|
+
export class EmployeeInviteForm extends AbstractForm {
|
8
|
+
constructor(invite = plainToClass(EmployeeInvite, {}), uniqueEmailValidator = null) {
|
9
|
+
super({
|
10
|
+
registrationInvite: new FormGroup({
|
11
|
+
firstName: new FormControl(invite.registrationInvite?.firstName, [Validators.required, alphaSpaceValidator()]),
|
12
|
+
lastName: new FormControl(invite.registrationInvite?.lastName, [Validators.required, alphaSpaceValidator()]),
|
13
|
+
email: new FormControl(invite.registrationInvite?.email, {
|
14
|
+
// @TODO RxwebValidators.unique()
|
15
|
+
validators: [Validators.required, Validators.email],
|
16
|
+
asyncValidators: [uniqueEmailValidator.validate.bind(uniqueEmailValidator)],
|
17
|
+
updateOn: 'blur'
|
18
|
+
}),
|
19
|
+
}),
|
20
|
+
role: new FormControl(EmployeeInviteRoleEnum.EMPLOYEE, [Validators.required]),
|
21
|
+
}, invite);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wbG95ZWUtaW52aXRlLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9lbXBsb3llZS1pbnZpdGUuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsWUFBWSxFQUFxQixNQUFNLGtCQUFrQixDQUFDO0FBQ25FLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUN2RSxPQUFPLEVBQXdCLG1CQUFtQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0UsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBV2pELE1BQU0sT0FBTyxrQkFBbUIsU0FBUSxZQUE2RDtJQUNuRyxZQUFZLE1BQU0sR0FBRyxZQUFZLENBQUMsY0FBYyxFQUFFLEVBQUUsQ0FBQyxFQUFFLHVCQU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'@angular/forms';
|
2
|
+
import { AbstractForm } from '../abstract.form';
|
3
|
+
export class FirmBranchForm extends AbstractForm {
|
4
|
+
constructor(firm) {
|
5
|
+
super({
|
6
|
+
name: new UntypedFormControl(firm.name, Validators.required),
|
7
|
+
address: new UntypedFormControl(firm.address, Validators.required),
|
8
|
+
phone: new UntypedFormControl(firm.phone),
|
9
|
+
isMain: new UntypedFormControl(firm.isMain)
|
10
|
+
}, firm);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS1icmFuY2guZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9maXJtL2Zpcm0tYnJhbmNoLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWhFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxNQUFNLE9BQU8sY0FBZSxTQUFRLFlBQXdCO0lBQzFELFlBQVksSUFBZ0I7UUFDMUIsS0FBSyxDQUFDO1lBQ0osSUFBSSxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsUUFBUSxDQUFDO1lBQzVELE9BQU8sRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsVUFBVSxDQUFDLFFBQVEsQ0FBQztZQUNsRSxLQUFLLEVBQUUsSUFBSSxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDO1lBQ3pDLE1BQU0sRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyxNQUFNLENBQUM7U0FDNUMsRUFBRSxJQUFJLENBQUMsQ0FBQztJQUNYLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVudHlwZWRGb3JtQ29udHJvbCwgVmFsaWRhdG9ycyB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcbmltcG9ydCB7IEZpcm1CcmFuY2ggfSBmcm9tICcuLi8uLi9tb2RlbHMnO1xuaW1wb3J0IHsgQWJzdHJhY3RGb3JtIH0gZnJvbSAnLi4vYWJzdHJhY3QuZm9ybSc7XG5cbmV4cG9ydCBjbGFzcyBGaXJtQnJhbmNoRm9ybSBleHRlbmRzIEFic3RyYWN0Rm9ybTxGaXJtQnJhbmNoPiB7XG4gIGNvbnN0cnVjdG9yKGZpcm06IEZpcm1CcmFuY2gpIHtcbiAgICBzdXBlcih7XG4gICAgICBuYW1lOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKGZpcm0ubmFtZSwgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICBhZGRyZXNzOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKGZpcm0uYWRkcmVzcywgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICBwaG9uZTogbmV3IFVudHlwZWRGb3JtQ29udHJvbChmaXJtLnBob25lKSxcbiAgICAgIGlzTWFpbjogbmV3IFVudHlwZWRGb3JtQ29udHJvbChmaXJtLmlzTWFpbilcbiAgICB9LCBmaXJtKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
2
|
+
import { AbstractForm } from '../abstract.form';
|
3
|
+
import { plainToClass } from 'class-transformer';
|
4
|
+
import { ClientInvite } from '../../models';
|
5
|
+
import { alphaSpaceValidator } from '../../validators';
|
6
|
+
export class FirmInviteForm extends AbstractForm {
|
7
|
+
constructor(invite = plainToClass(ClientInvite, {})) {
|
8
|
+
super({
|
9
|
+
address: new FormControl(invite.address, [Validators.required]),
|
10
|
+
registrationInvite: new FormGroup({
|
11
|
+
firstName: new FormControl(invite.registrationInvite?.firstName, [Validators.required, alphaSpaceValidator()]),
|
12
|
+
lastName: new FormControl(invite.registrationInvite?.lastName, [Validators.required, alphaSpaceValidator()]),
|
13
|
+
email: new FormControl(invite.registrationInvite?.email, [Validators.required, Validators.email]),
|
14
|
+
}),
|
15
|
+
}, invite);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybS1pbnZpdGUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9maXJtL2Zpcm0taW52aXRlLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEUsT0FBTyxFQUFFLFlBQVksRUFBcUIsTUFBTSxrQkFBa0IsQ0FBQztBQUNuRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUM1QyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQVd2RCxNQUFNLE9BQU8sY0FBZSxTQUFRLFlBQTREO0lBQzlGLFlBQVksTUFBTSxHQUFHLFlBQVksQ0FBQyxZQUFZLEVBQUUsRUFBRSxDQUFDO1FBQ2pELEtBQUssQ0FBQztZQUNKLE9BQU8sRUFBRSxJQUFJLFdBQVcsQ0FBQyxNQUFNLENBQUMsT0FBTyxFQUFFLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FB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3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLmVtYWlsXSksXG4gICAgICB9KSxcbiAgICB9LCBpbnZpdGUpO1xuICB9XG59XG4iXX0=
|
@@ -1,2 +1,9 @@
|
|
1
1
|
export * from './firm.form';
|
2
|
-
|
2
|
+
export * from './firm-branch.form';
|
3
|
+
export * from './employee-invite.form';
|
4
|
+
export * from './client-movement.form';
|
5
|
+
export * from './employee-details.form';
|
6
|
+
export * from './client-invite.form';
|
7
|
+
export * from './client-invite-put.form';
|
8
|
+
export * from './firm-invite.form';
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvZmlybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9maXJtLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtLWJyYW5jaC5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vZW1wbG95ZWUtaW52aXRlLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9jbGllbnQtbW92ZW1lbnQuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2VtcGxveWVlLWRldGFpbHMuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2NsaWVudC1pbnZpdGUuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL2NsaWVudC1pbnZpdGUtcHV0LmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9maXJtLWludml0ZS5mb3JtJztcbiJdfQ==
|
@@ -1,23 +1,35 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
2
|
import { HoldingForm } from './holding.form';
|
3
|
-
import { HoldingIncomeForm } from '../transaction
|
3
|
+
import { HoldingIncomeForm } from '../transaction';
|
4
4
|
import { TransactionTypeEnum } from '../../db/Enums/transaction-type.enum';
|
5
|
+
import { FormControl, Validators } from '@angular/forms';
|
6
|
+
/**
|
7
|
+
* @TODO vik TT-4048
|
8
|
+
*/
|
5
9
|
export class HoldingReinvestForm extends AbstractForm {
|
6
10
|
constructor(reinvest) {
|
7
11
|
super({
|
12
|
+
// the difference between dividends amount and given shares (shares=dividendsAmount/sharePrice)
|
13
|
+
cashVariance: new FormControl({ value: 0, disabled: true }, Validators.required),
|
8
14
|
transaction: new HoldingIncomeForm(reinvest.transaction, null, []),
|
9
15
|
holding: new HoldingForm(reinvest.holding)
|
10
16
|
}, reinvest);
|
11
17
|
this.reinvest = reinvest;
|
18
|
+
this.listenEvents();
|
12
19
|
// emit values to trigger changes and create chart accounts metafields
|
13
20
|
this.get('transaction').emitValues();
|
14
21
|
// disable amount field because we calculate the value automatically and this field is visible as disabled
|
15
22
|
this.get(['transaction', 'amount']).disable();
|
16
|
-
|
23
|
+
// franked/unfranked fields are required
|
24
|
+
this.transactionForm.getAmountComponents().forEach(control => {
|
25
|
+
control.addValidators(Validators.required);
|
26
|
+
control.setValue(null);
|
27
|
+
});
|
17
28
|
}
|
18
29
|
listenEvents() {
|
19
30
|
this.listenHoldingChanges();
|
20
31
|
this.listenDateChanges();
|
32
|
+
this.listenAmountChanges();
|
21
33
|
}
|
22
34
|
get transactionForm() {
|
23
35
|
return this.get('transaction');
|
@@ -25,6 +37,15 @@ export class HoldingReinvestForm extends AbstractForm {
|
|
25
37
|
get holdingForm() {
|
26
38
|
return this.get('holding');
|
27
39
|
}
|
40
|
+
/**
|
41
|
+
* calculated automatically as cashVariance=transactionAmount-frankedAmount-unfrankedAmount
|
42
|
+
*/
|
43
|
+
listenAmountChanges() {
|
44
|
+
this.transactionForm.valueChanges.subscribe(() => {
|
45
|
+
const sum = this.transactionForm.getAmountComponents().reduce((acc, control) => acc + control.value, 0);
|
46
|
+
this.get('cashVariance').setValue(this.get(['transaction', 'amount']).value - sum);
|
47
|
+
});
|
48
|
+
}
|
28
49
|
/**
|
29
50
|
* Set transaction amount based on holding quantity and price
|
30
51
|
*/
|
@@ -50,10 +71,15 @@ export class HoldingReinvestForm extends AbstractForm {
|
|
50
71
|
* @TODO Alex (TT-2847): attach file to both (transaction and holding) when files system refactored
|
51
72
|
*/
|
52
73
|
submit() {
|
74
|
+
const value = this.transactionForm.getRawValue();
|
53
75
|
return super.submit({
|
54
|
-
transaction: this.transactionForm.submit({
|
76
|
+
transaction: this.transactionForm.submit({
|
77
|
+
type: TransactionTypeEnum.CREDIT,
|
78
|
+
description: `Reinvestment - ${value.incomeSource.name}`,
|
79
|
+
amount: value.amount - this.get('cashVariance').value
|
80
|
+
}),
|
55
81
|
holding: this.holdingForm.submit()
|
56
82
|
});
|
57
83
|
}
|
58
84
|
}
|
59
|
-
//# sourceMappingURL=data:application/json;base64,
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZGluZy1yZWludmVzdC5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2hvbGRpbmcvaG9sZGluZy1yZWludmVzdC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0F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dlcygpOiB2b2lkIHtcbiAgICB0aGlzLmdldChbJ3RyYW5zYWN0aW9uJywgJ2RhdGUnXSkudmFsdWVDaGFuZ2VzLnN1YnNjcmliZSgoZGF0ZTogRGF0ZSkgPT4ge1xuICAgICAgdGhpcy5nZXQoWydob2xkaW5nJywgJ2RhdGUnXSkuc2V0VmFsdWUoZGF0ZSk7XG4gICAgfSk7XG4gIH1cblxuICAvKipcbiAgICogQFRPRE8gQWxleCAoVFQtMjg0Nyk6IGF0dGFjaCBmaWxlIHRvIGJvdGggKHRyYW5zYWN0aW9uIGFuZCBob2xkaW5nKSB3aGVuIGZpbGVzIHN5c3RlbSByZWZhY3RvcmVkXG4gICAqL1xuICBzdWJtaXQoKTogSG9sZGluZ1JlaW52ZXN0IHtcbiAgICBjb25zdCB2YWx1ZSA9IHRoaXMudHJhbnNhY3Rpb25Gb3JtLmdldFJhd1ZhbHVlKCk7XG5cbiAgICByZXR1cm4gc3VwZXIuc3VibWl0KHtcbiAgICAgIHRyYW5zYWN0aW9uOiB0aGlzLnRyYW5zYWN0aW9uRm9ybS5zdWJtaXQoe1xuICAgICAgICB0eXBlOiBUcmFuc2FjdGlvblR5cGVFbnVtLkNSRURJVCxcbiAgICAgICAgZGVzY3JpcHRpb246IGBSZWludmVzdG1lbnQgLSAke3ZhbHVlLmluY29tZVNvdXJjZS5uYW1lfWAsXG4gICAgICAgIGFtb3VudDogdmFsdWUuYW1vdW50IC0gdGhpcy5nZXQoJ2Nhc2hWYXJpYW5jZScpLnZhbHVlXG4gICAgICB9KSxcbiAgICAgIGhvbGRpbmc6IHRoaXMuaG9sZGluZ0Zvcm0uc3VibWl0KClcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from './abstract.form';
|
2
|
+
export * from './collection.form';
|
2
3
|
export * from './address';
|
3
4
|
export * from './budget';
|
4
5
|
export * from './document-folder';
|
@@ -24,4 +25,6 @@ export * from './transaction';
|
|
24
25
|
export * from './depreciation';
|
25
26
|
export * from './holding';
|
26
27
|
export * from './chart-accounts';
|
27
|
-
|
28
|
+
export * from './tax-review';
|
29
|
+
export * from './chat';
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLG1CQUFtQixDQUFDO0FBRWxDLGNBQWMsV0FBVyxDQUFDO0FBRTFCLGNBQWMsVUFBVSxDQUFDO0FBRXpCLGNBQWMsbUJBQW1CLENBQUM7QUFFbEMsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxRQUFRLENBQUM7QUFFdkIsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLDhDQUE4QyxDQUFDO0FBQzdELGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLCtDQUErQyxDQUFDO0FBQzlELGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsUUFBUSxDQUFDO0FBRXZCLGNBQWMsWUFBWSxDQUFDO0FBRTNCLGNBQWMsaUJBQWlCLENBQUM7QUFFaEMsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxXQUFXLENBQUM7QUFFMUIsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsV0F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maXJtLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyJztcblxuZXhwb3J0ICogZnJvbSAnLi9wcm9wZXJ0eSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcmVwb3J0L215LXRheCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vc29sZSc7XG5leHBvcnQgKiBmcm9tICcuL3ZlaGljbGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2Zvcm0tdmFsaWRhdGlvbnMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vZGVwcmVjaWF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LWFjY291bnRzJztcbmV4cG9ydCAqIGZyb20gJy4vdGF4LXJldmlldyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXQnO1xuIl19
|
@@ -1,12 +1,8 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
2
|
import { UntypedFormControl, Validators } from '@angular/forms';
|
3
|
-
import { Loan } from '../../models
|
4
|
-
import { LoanRepaymentFrequencyEnum } from '../../db/Enums/bank/loan
|
5
|
-
import { LoanMaxNumberOfPaymentsEnum } from '../../models/loan/loan-max-number-of-payments.enum';
|
3
|
+
import { Loan, LoanMaxNumberOfPaymentsEnum } from '../../models';
|
4
|
+
import { LoanInterestTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanTypeEnum } from '../../db/Enums/bank/loan';
|
6
5
|
import { plainToClass } from 'class-transformer';
|
7
|
-
import { LoanRepaymentTypeEnum } from '../../db/Enums/bank/loan/loan-repayment-type.enum';
|
8
|
-
import { LoanInterestTypeEnum } from '../../db/Enums/bank/loan/loan-interest-type.enum';
|
9
|
-
import { LoanTypeEnum } from '../../db/Enums/bank/loan/loan-type.enum';
|
10
6
|
/**
|
11
7
|
* Form with loan details.
|
12
8
|
* Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
|
@@ -87,4 +83,4 @@ export class LoanForm extends AbstractForm {
|
|
87
83
|
termControl.updateValueAndValidity();
|
88
84
|
}
|
89
85
|
}
|
90
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hbi5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL2xvYW4vbG9hbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEUsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzlDLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLHdEQUF3RCxDQUFDO0FBQ3BHLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLG9EQUFvRCxDQUFDO0FBQ2pHLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUMxRixPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxrREFBa0QsQ0FBQztBQUN4RixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFFdkU7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLFFBQVMsU0FBUSxZQUFrQjthQUN2QyxzQkFBaUIsR0FBbUIsQ0FBQyxZQUFZLENBQUMsUUFBUSxFQUFFLFlBQVksQ0FBQywwQkFBMEIsRUFBR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XJtIHZhbGlkYXRpb24gZGVwZW5kcyBvbiBzZWxlY3RlZCByZXBheW1lbnQgZnJlcXVlbmN5LCBzbyBjYW4gbm90IHZhbGlkYXRlIHdoZW4gZnJlcXVlbmN5IGlzIGVtcHR5XG4gICAgLy8gcmVwYXltZW50VHlwZSBpcyByZXF1aXJlZCBmaWVsZCwgc28gd2UgZG9uJ3QgbmVlZCB0byBjbGVhciB2YWxpZGF0aW9uXG4gICAgaWYgKCFjdXJyZW50UmVwYXltZW50RnJlcXVlbmN5KSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgY29uc3QgdGVybUNvbnRyb2w6IFVudHlwZWRGb3JtQ29udHJvbCA9IHRoaXMuZ2V0KCd0ZXJtJykgYXMgVW50eXBlZEZvcm1Db250cm9sO1xuICAgIGNvbnN0IG1heFRlcm1WYWx1ZTogbnVtYmVyID0gTG9hbk1heE51bWJlck9mUGF5bWVudHNFbnVtW0xvYW5SZXBheW1lbnRGcmVxdWVuY3lFbnVtW2N1cnJlbnRSZXBheW1lbnRGcmVxdWVuY3ldXTtcblxuICAgIHRlcm1Db250cm9sLnNldFZhbGlkYXRvcnMoW1ZhbGlkYXRvcnMubWF4KG1heFRlcm1WYWx1ZSldKTtcbiAgICB0ZXJtQ29udHJvbC51cGRhdGVWYWx1ZUFuZFZhbGlkaXR5KCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,19 +1,22 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
2
|
import { UntypedFormControl, Validators } from '@angular/forms';
|
3
3
|
import { PasswordForm } from '../user';
|
4
|
+
import { User } from '../../models';
|
5
|
+
import { plainToClass } from 'class-transformer';
|
6
|
+
import { alphaSpaceValidator } from '../../validators';
|
4
7
|
// @TODO Alex: Create a model and handle request fields via class-transformer
|
5
8
|
export class RegisterClientForm extends AbstractForm {
|
6
|
-
constructor(
|
9
|
+
constructor(user = plainToClass(User, {})) {
|
7
10
|
super({
|
8
|
-
firstName: new UntypedFormControl(
|
9
|
-
lastName: new UntypedFormControl(
|
10
|
-
email: new UntypedFormControl(
|
11
|
+
firstName: new UntypedFormControl(user.firstName, [Validators.required, alphaSpaceValidator()]),
|
12
|
+
lastName: new UntypedFormControl(user.lastName, [Validators.required, alphaSpaceValidator()]),
|
13
|
+
email: new UntypedFormControl(user.email, [Validators.required, Validators.email]),
|
11
14
|
password: new PasswordForm(),
|
12
|
-
referenceCode: new UntypedFormControl(referenceCode)
|
15
|
+
referenceCode: new UntypedFormControl(user.referenceCode)
|
13
16
|
});
|
14
17
|
}
|
15
18
|
submit(data = {}) {
|
16
19
|
return super.submit({ password: this.get('password').submit()?.password });
|
17
20
|
}
|
18
21
|
}
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXItY2xpZW50LmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvcmVnaXN0ZXIvcmVnaXN0ZXItY2xpZW50LmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDcEMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXZELDZFQUE2RTtBQUM3RS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lbmNlQ29kZSlcbiAgICB9KTtcbiAgfVxuXG4gIHN1Ym1pdChkYXRhOiBvYmplY3QgPSB7fSk6IFVzZXIge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoeyBwYXNzd29yZDogKHRoaXMuZ2V0KCdwYXNzd29yZCcpIGFzIFBhc3N3b3JkRm9ybSkuc3VibWl0KCk/LnBhc3N3b3JkIH0pO1xuICB9XG59XG4iXX0=
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
2
|
import { UntypedFormControl, Validators } from '@angular/forms';
|
3
|
-
import { FirmTypeEnum } from '../../db/Enums
|
3
|
+
import { FirmTypeEnum } from '../../db/Enums';
|
4
4
|
import { RegisterClientForm } from './register-client.form';
|
5
|
-
import { Firm } from '../../models
|
5
|
+
import { Firm, User } from '../../models';
|
6
6
|
import { plainToClass } from 'class-transformer';
|
7
7
|
export class RegisterFirmForm extends AbstractForm {
|
8
8
|
constructor(firmType, referenceCode) {
|
@@ -10,7 +10,7 @@ export class RegisterFirmForm extends AbstractForm {
|
|
10
10
|
name: new UntypedFormControl('', Validators.required),
|
11
11
|
abn: new UntypedFormControl('', Validators.required),
|
12
12
|
tan: new UntypedFormControl({ value: '', disabled: firmType !== FirmTypeEnum.ACCOUNTANT }, Validators.required),
|
13
|
-
owner: new RegisterClientForm(referenceCode),
|
13
|
+
owner: new RegisterClientForm(plainToClass(User, { referenceCode })),
|
14
14
|
type: new UntypedFormControl(firmType)
|
15
15
|
}, plainToClass(Firm, {}));
|
16
16
|
this.firmType = firmType;
|
@@ -19,4 +19,4 @@ export class RegisterFirmForm extends AbstractForm {
|
|
19
19
|
return super.submit({ owner: this.get('owner').submit() });
|
20
20
|
}
|
21
21
|
}
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXItZmlybS5mb3JtLmpzIiwic291cmNlUm9v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G4gICAgICBuYW1lOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKCcnLCBWYWxpZGF0b3JzLnJlcXVpcmVkKSxcbiAgICAgIGFibjogbmV3IFVudHlwZWRGb3JtQ29udHJvbCgnJywgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICB0YW46IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woeyB2YWx1ZTogJycsIGRpc2FibGVkOiBmaXJtVHlwZSAhPT0gRmlybVR5cGVFbnVtLkFDQ09VTlRBTlQgfSwgVmFsaWRhdG9ycy5yZXF1aXJlZCksXG4gICAgICBvd25lcjogbmV3IFJlZ2lzdGVyQ2xpZW50Rm9ybShwbGFpblRvQ2xhc3MoVXNlciwgeyByZWZlcmVuY2VDb2RlIH0pKSxcbiAgICAgIHR5cGU6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woZmlybVR5cGUpXG4gICAgfSwgcGxhaW5Ub0NsYXNzKEZpcm0sIHt9KSk7XG4gIH1cblxuICBzdWJtaXQoZGF0YTogb2JqZWN0ID0ge30pOiBGaXJtIHtcbiAgICByZXR1cm4gc3VwZXIuc3VibWl0KHsgb3duZXI6ICh0aGlzLmdldCgnb3duZXInKSBhcyBSZWdpc3RlckNsaWVudEZvcm0pLnN1Ym1pdCgpIH0pO1xuICB9XG59XG4iXX0=
|
@@ -82,4 +82,4 @@ export class MyTaxDeductionsForm extends AbstractForm {
|
|
82
82
|
});
|
83
83
|
}
|
84
84
|
}
|
85
|
-
//# sourceMappingURL=data:application/json;base64,
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktdGF4LWRlZHVjdGlvbnMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9yZXBvcnQvbXktdGF4L215LXRheC1kZWR1Y3R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2woJycpLFxuICAgICAgZnVuZEFjY291bnROdW1iZXI6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woJycpLFxuICAgICAgcGVyc29uYWxTdXBlckNvbnRyaWJ1dGlvbnNUb3RhbEFtb3VudDogbmV3IFVudHlwZWRGb3JtQ29udHJvbCh7XG4gICAgICAgIHZhbHVlOiBkZWR1Y3Rpb25zLnBlcnNvbmFsU3VwZXJDb250cmlidXRpb25zVG90YWxBbW91bnQsXG4gICAgICAgIGRpc2FibGVkOiB0cnVlXG4gICAgICB9KSxcbiAgICAgIGZvcmVzdHJ5TWFuYWdlZEludmVzdG1lbnRTY2hlbWVzRGVkdWN0aW9uc1RvdGFsQW1vdW50OiBuZXcgVW50eXBlZEZvcm1Db250cm9sKHtcbiAgICAgICAgdmFsdWU6IGRlZHVjdGlvbnMuZm9yZXN0cnlNYW5hZ2VkSW52ZXN0bWVudFNjaGVtZXNEZWR1Y3Rpb25zVG90YWxBbW91bnQsXG4gICAgICAgIGRpc2FibGVkOiB0cnVlXG4gICAgICB9KSxcbiAgICAgIG90aGVyRGVkdWN0aW9uc1RvdGFsQW1vdW50OiBuZXcgVW50eXBlZEZvcm1Db250cm9sKHtcbiAgICAgICAgdmFsdWU6IGRlZHVjdGlvbnMub3RoZXJEZWR1Y3Rpb25zVG90YWxBbW91bnQsXG4gICAgICAgIGRpc2FibGVkOiB0cnVlXG4gICAgICB9KSxcbiAgICAgIGRlcHJlY2lhdGlvbkFuZENhcGl0YWxBbGxvd2FuY2VzVG90YWxBbW91bnQ6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2woe1xuICAgICAgICB2YWx1ZTogZGVkdWN0aW9ucy5kZXByZWNpYXRpb25BbmRDYXBpdGFsQWxsb3dhbmNlc1RvdGFsQW1vdW50LFxuICAgICAgICBkaXNhYmxlZDogdHJ1ZVxuICAgICAgfSlcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -10,4 +10,4 @@ export class MyTaxRentForm extends AbstractForm {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
}
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktdGF4LXJlbnQuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy9yZXBvcnQvbXktdGF4L215LXRheC1yZW50LmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBR3BELE1BQU0sT0FBTyxhQUFjLFNBQVEsWUFBdUI7SUFDeEQsWUFDRSxJQUFlO1FBRWYsS0FBSyxDQUFDO1lBQ0osZUFBZSxFQUFFLElBQUksa0JBQWtCLENBQUMsSUFBSSxDQUFDLGVBQWUsQ0FBQztZQUM3RCxrQkFBa0IsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyx3QkFBd0IsQ0FBQztZQUN6RSxzQkFBc0IsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQyw0QkFBNEIsQ0FBQztZQUNqRiwyQkFBMkIsRUFBRSxJQUFJLGtCQUFrQixDQUFDLElBQUksQ0FBQywyQkFBMkIsQ0FBQztTQUN0RixDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBYnN0cmFjdEZvcm0gfSBmcm9tICcuLi8uLi9hYnN0cmFjdC5mb3JtJztcbmltcG9ydCB7IFVudHlwZWRGb3JtQ29udHJvbCB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcbmltcG9ydCB7IE15VGF4UmVudCB9IGZyb20gJy4uLy4uLy4uL21vZGVscy9yZXBvcnQnO1xuXG5leHBvcnQgY2xhc3MgTXlUYXhSZW50Rm9ybSBleHRlbmRzIEFic3RyYWN0Rm9ybTxNeVRheFJlbnQ+IHtcbiAgY29uc3RydWN0b3IoXG4gICAgcmVudDogTXlUYXhSZW50LFxuICApIHtcbiAgICBzdXBlcih7XG4gICAgICBncm9zc1JlbnRBbW91bnQ6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2wocmVudC5ncm9zc1JlbnRBbW91bnQpLFxuICAgICAgaW50ZXJlc3REZWR1Y3Rpb25zOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKHJlbnQuaW50ZXJlc3REZWR1Y3Rpb25zQW1vdW50KSxcbiAgICAgIGNhcGl0YWxXb3Jrc0RlZHVjdGlvbnM6IG5ldyBVbnR5cGVkRm9ybUNvbnRyb2wocmVudC5jYXBpdGFsV29ya3NEZWR1Y3Rpb25zQW1vdW50KSxcbiAgICAgIG90aGVyUmVudGFsRGVkdWN0aW9uc0Ftb3VudDogbmV3IFVudHlwZWRGb3JtQ29udHJvbChyZW50Lm90aGVyUmVudGFsRGVkdWN0aW9uc0Ftb3VudClcbiAgICB9KTtcbiAgfVxufVxuIl19
|
@@ -25,6 +25,7 @@ export class BasReportForm extends AbstractForm {
|
|
25
25
|
// prefill income/expense data based on transactions/depreciations filtered by specified date
|
26
26
|
combineLatest([this.get('dateFrom').valueChanges, this.get('dateTo').valueChanges])
|
27
27
|
.subscribe(([dateFrom, dateTo]) => {
|
28
|
+
// const from = clone(dateFrom).setHours(0,0,0,0);
|
28
29
|
const filteredTransactions = transactions.filterByRange('date', dateFrom, dateTo);
|
29
30
|
const filteredDepreciations = depreciations.filterByRange('date', dateFrom, dateTo);
|
30
31
|
const incomeTransactions = filteredTransactions.getIncomeTransactions();
|
@@ -48,7 +49,7 @@ export class BasReportForm extends AbstractForm {
|
|
48
49
|
this.get('paygTaxInstalment').valueChanges,
|
49
50
|
this.get('fuelTaxCredit').valueChanges,
|
50
51
|
]).subscribe(([incomeGST, expenseGST, taxWithheldTotal, paygTaxInstalment, fuelTaxCredit]) => {
|
51
|
-
this.patchField('gst', incomeGST
|
52
|
+
this.patchField('gst', incomeGST + expenseGST + taxWithheldTotal + paygTaxInstalment - fuelTaxCredit);
|
52
53
|
});
|
53
54
|
// emit init values to calculate dynamic fields
|
54
55
|
if (report.id) {
|
@@ -59,4 +60,4 @@ export class BasReportForm extends AbstractForm {
|
|
59
60
|
return super.submit(data, true);
|
60
61
|
}
|
61
62
|
}
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzLXJlcG9ydC5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3NvbGUvYmFzLXJlcG9ydC5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNyQyxPQUFPLEVBRUwscUJBQXFCLEVBQ3RCLE1BQU0sbUJBQW1CLENBQUM7QUFFM0I7OztHQUdHO0FBQ0gsTUFBTSxPQUFPLGFBQWMsU0FBUSxZQUF1QjtJQUN4RCxZQUFZLE1BQWlCLEVBQUUsWUFBbUMsRUFBRSxhQUFxQztRQUN2RyxLQUFLLENBQUM7WUFDSixRQUFRLEVBQUUsSUFBSSxrQkFBa0IsQ0FBQyxNQUFNLENBQUMsUUFBUSxFQUFFLFVBQVUsQ0F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VudCwgZnVlbFRheENyZWRpdF0pID0+IHtcbiAgICAgIHRoaXMucGF0Y2hGaWVsZCgnZ3N0JywgaW5jb21lR1NUICsgZXhwZW5zZUdTVCArIHRheFdpdGhoZWxkVG90YWwgKyBwYXlnVGF4SW5zdGFsbWVudCAtIGZ1ZWxUYXhDcmVkaXQpO1xuICAgIH0pO1xuXG4gICAgLy8gZW1pdCBpbml0IHZhbHVlcyB0byBjYWxjdWxhdGUgZHluYW1pYyBmaWVsZHNcbiAgICBpZiAocmVwb3J0LmlkKSB7XG4gICAgICB0aGlzLmVtaXRWYWx1ZXMoKTtcbiAgICB9XG4gIH1cblxuICBzdWJtaXQoZGF0YTogb2JqZWN0ID0ge30pOiBCYXNSZXBvcnQge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoZGF0YSwgdHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -3,17 +3,18 @@ import { SoleContact } from '../../models';
|
|
3
3
|
import { plainToClass } from 'class-transformer';
|
4
4
|
import { UntypedFormControl, Validators } from '@angular/forms';
|
5
5
|
import { requiredLengthValidator } from '../../validators/required-length.validator';
|
6
|
+
import { alphaSpaceValidator } from '../../validators';
|
6
7
|
export class SoleContactForm extends AbstractForm {
|
7
8
|
constructor(contact = plainToClass(SoleContact, {})) {
|
8
9
|
super({
|
9
10
|
name: new UntypedFormControl(contact.name, Validators.required),
|
10
11
|
abn: new UntypedFormControl(contact.abn, [requiredLengthValidator(11)]),
|
11
|
-
firstName: new UntypedFormControl(contact.firstName, Validators.required),
|
12
|
-
lastName: new UntypedFormControl(contact.lastName, Validators.required),
|
12
|
+
firstName: new UntypedFormControl(contact.firstName, [Validators.required, alphaSpaceValidator()]),
|
13
|
+
lastName: new UntypedFormControl(contact.lastName, [Validators.required, alphaSpaceValidator()]),
|
13
14
|
email: new UntypedFormControl(contact.email, [Validators.required, Validators.email]),
|
14
15
|
phone: new UntypedFormControl(contact.phone),
|
15
16
|
address: new UntypedFormControl(contact.address)
|
16
17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