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
@@ -20,7 +20,8 @@ export class SoleInvoiceForm extends AbstractForm {
|
|
20
20
|
payer: new UntypedFormControl(invoice.payer, Validators.required),
|
21
21
|
taxType: new UntypedFormControl(invoice.taxType, Validators.required),
|
22
22
|
bankAccount: new UntypedFormControl(invoice.bankAccount, Validators.required),
|
23
|
-
reference: new UntypedFormControl(invoice.reference)
|
23
|
+
reference: new UntypedFormControl(invoice.reference),
|
24
|
+
number: new UntypedFormControl(invoice.number, [Validators.required]),
|
24
25
|
}),
|
25
26
|
items: new UntypedFormArray((invoice.items || [plainToClass(SoleInvoiceItem, {})])
|
26
27
|
.map((item) => new SoleInvoiceItemForm(item))),
|
@@ -154,4 +155,4 @@ export class SoleInvoiceForm extends AbstractForm {
|
|
154
155
|
return this.createModelInstance(Object.assign({}, this.model, { ...formRawValue.commonData, items: formRawValue.items }));
|
155
156
|
}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VwIHtcbiAgICByZXR1cm4gdGhpcy5nZXQoJ2NvbW1vbkRhdGEnKSBhcyBVbnR5cGVkRm9ybUdyb3VwO1xuICB9XG5cbiAgLyoqXG4gICAqIFJld3JpdGUgYWJzdHJhY3QgZm9ybSBnZXR0ZXIgdG8gZmxhdCBcImNvbW1vbkRhdGFcIiBmaWVsZCwgd2hpY2ggaXMgbm90IGluIHRoZSBjbGFzc1xuICAgKi9cbiAgZ2V0IGN1cnJlbnRWYWx1ZSgpOiBTb2xlSW52b2ljZSB7XG4gICAgY29uc3QgZm9ybVJhd1ZhbHVlOiBhbnkgPSB0aGlzLmdldFJhd1ZhbHVlKCk7XG5cbiAgICByZXR1cm4gdGhpcy5jcmVhdGVNb2RlbEluc3RhbmNlKE9iamVjdC5hc3NpZ24oXG4gICAgICB7fSxcbiAgICAgIHRoaXMubW9kZWwsXG4gICAgICB7IC4uLmZvcm1SYXdWYWx1ZS5jb21tb25EYXRhLCBpdGVtczogZm9ybVJhd1ZhbHVlLml0ZW1zIH1cbiAgICApKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export * from './tax-review-filter.form';
|
2
|
+
export * from './tax-review-filter-status.enum';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdGF4LXJldmlldy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RheC1yZXZpZXctZmlsdGVyLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi90YXgtcmV2aWV3LWZpbHRlci1zdGF0dXMuZW51bSc7XG4iXX0=
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export var TaxReviewFilterStatusEnum;
|
2
|
+
(function (TaxReviewFilterStatusEnum) {
|
3
|
+
TaxReviewFilterStatusEnum[TaxReviewFilterStatusEnum["ACTIVE"] = 1] = "ACTIVE";
|
4
|
+
TaxReviewFilterStatusEnum[TaxReviewFilterStatusEnum["INACTIVE"] = 2] = "INACTIVE";
|
5
|
+
})(TaxReviewFilterStatusEnum || (TaxReviewFilterStatusEnum = {}));
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGF4LXJldmlldy1maWx0ZXItc3RhdHVzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdGF4LXJldmlldy90YXgtcmV2aWV3LWZpbHRlci1zdGF0dXMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSx5QkFHWDtBQUhELFdBQVkseUJBQXlCO0lBQ25DLDZFQUFVLENBQUE7SUFDVixpRkFBWSxDQUFBO0FBQ2QsQ0FBQyxFQUhXLHlCQUF5QixLQUF6Qix5QkFBeUIsUUFHcEMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBUYXhSZXZpZXdGaWx0ZXJTdGF0dXNFbnVtIHtcbiAgQUNUSVZFID0gMSxcbiAgSU5BQ1RJVkUgPSAyXG59XG4iXX0=
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { TaxReviewFilterStatusEnum } from './tax-review-filter-status.enum';
|
3
|
+
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
4
|
+
import { ReplaySubject } from 'rxjs';
|
5
|
+
export class TaxReviewFilterForm extends FormGroup {
|
6
|
+
constructor(collection) {
|
7
|
+
super({
|
8
|
+
query: new FormControl(),
|
9
|
+
dateFrom: new FormControl(),
|
10
|
+
dateTo: new FormControl(),
|
11
|
+
status: new FormControl(TaxReviewFilterStatusEnum.ACTIVE),
|
12
|
+
});
|
13
|
+
this.collection = collection;
|
14
|
+
this.dataChanges = new ReplaySubject(1);
|
15
|
+
this.listenEvents();
|
16
|
+
this.updateValueAndValidity();
|
17
|
+
}
|
18
|
+
listenEvents() {
|
19
|
+
this.valueChanges.pipe(debounceTime(300), distinctUntilChanged())
|
20
|
+
.subscribe(() => {
|
21
|
+
this.filter();
|
22
|
+
});
|
23
|
+
}
|
24
|
+
filter(source) {
|
25
|
+
if (source) {
|
26
|
+
this.collection = source;
|
27
|
+
}
|
28
|
+
const value = this.value;
|
29
|
+
let collection = this.collection;
|
30
|
+
if (value.query) {
|
31
|
+
collection = collection.filter(taxReview => taxReview.client.fullName.toLowerCase().includes(value.query)
|
32
|
+
|| taxReview.employee.fullName.toLowerCase().includes(value.query));
|
33
|
+
}
|
34
|
+
if (value.dateFrom) {
|
35
|
+
collection = collection.filter(taxReview => taxReview.createdAt >= value.dateFrom);
|
36
|
+
}
|
37
|
+
if (value.dateTo) {
|
38
|
+
collection = collection.filter(taxReview => taxReview.createdAt <= value.dateTo);
|
39
|
+
}
|
40
|
+
if (value.status === TaxReviewFilterStatusEnum.ACTIVE) {
|
41
|
+
collection = collection.filter(taxReview => taxReview.isActive());
|
42
|
+
}
|
43
|
+
if (value.status === TaxReviewFilterStatusEnum.INACTIVE) {
|
44
|
+
collection = collection.filter(taxReview => taxReview.isInactive());
|
45
|
+
}
|
46
|
+
this.dataChanges.next(collection.toArray());
|
47
|
+
}
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGF4LXJldmlldy1maWx0ZXIuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy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VyU3RhdHVzRW51bS5BQ1RJVkUpIHtcbiAgICAgIGNvbGxlY3Rpb24gPSBjb2xsZWN0aW9uLmZpbHRlcih0YXhSZXZpZXcgPT4gdGF4UmV2aWV3LmlzQWN0aXZlKCkpO1xuICAgIH1cbiAgICBpZiAodmFsdWUuc3RhdHVzID09PSBUYXhSZXZpZXdGaWx0ZXJTdGF0dXNFbnVtLklOQUNUSVZFKSB7XG4gICAgICBjb2xsZWN0aW9uID0gY29sbGVjdGlvbi5maWx0ZXIodGF4UmV2aWV3ID0+IHRheFJldmlldy5pc0luYWN0aXZlKCkpO1xuICAgIH1cblxuICAgIHRoaXMuZGF0YUNoYW5nZXMubmV4dChjb2xsZWN0aW9uLnRvQXJyYXkoKSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { UntypedFormControl, Validators } from '@angular/forms';
|
2
|
-
import { autocompleteValidator } from '../../../validators';
|
2
|
+
import { autocompleteValidator, conditionalValidator, matchSumValidator } from '../../../validators';
|
3
3
|
import { TransactionOperationEnum } from '../../../db/Enums/transaction-operation.enum';
|
4
4
|
import { WorkTransactionForm } from '../work/work-transaction.form';
|
5
|
+
import { ChartAccountsMetaFieldListEnum } from '../../../db/Enums';
|
5
6
|
export class HoldingIncomeForm extends WorkTransactionForm {
|
6
7
|
/**
|
7
8
|
* @TODO vik partial copyPast from workIncomeForm
|
@@ -11,6 +12,8 @@ export class HoldingIncomeForm extends WorkTransactionForm {
|
|
11
12
|
tax: new UntypedFormControl(transaction.tax, Validators.required),
|
12
13
|
incomeSource: new UntypedFormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
|
13
14
|
});
|
15
|
+
// transactionAmount=frankedAmount + unfrankedAmount
|
16
|
+
this.get('amount').setValidators(conditionalValidator(() => this.get('chartAccounts').value && this.get('chartAccounts').value.isDividends(), matchSumValidator(this.getAmountComponents)));
|
14
17
|
// forbid to edit some fields for allocated transaction
|
15
18
|
if (allocations.length) {
|
16
19
|
this.get('chartAccounts').disable();
|
@@ -21,14 +24,26 @@ export class HoldingIncomeForm extends WorkTransactionForm {
|
|
21
24
|
this.get('amount').disable();
|
22
25
|
}
|
23
26
|
}
|
27
|
+
/**
|
28
|
+
* metafields components of transactionAmount
|
29
|
+
*/
|
30
|
+
getAmountComponents() {
|
31
|
+
return this.metaFields.controls.filter((formGroup) => [ChartAccountsMetaFieldListEnum.FRANKED, ChartAccountsMetaFieldListEnum.UNFRANKED].includes(formGroup.get('chartAccountsMetaField').value.id)).map(formGroup => formGroup.get('value'));
|
32
|
+
}
|
24
33
|
listenEvents() {
|
25
34
|
this.listenChartAccountsChanges();
|
26
35
|
}
|
36
|
+
get metaFields() {
|
37
|
+
return this.get('metaFields');
|
38
|
+
}
|
39
|
+
get frankingCredit() {
|
40
|
+
return this.metaFields.controls.find((group) => group.get('chartAccountsMetaField').value.isFrankingCredit())?.get('value');
|
41
|
+
}
|
27
42
|
/**
|
28
43
|
* @TODO Alex/Vik: probably we need some database changes related to metafields.
|
29
44
|
* Now we have the following custom metafields behaviour:
|
30
45
|
* - % of share field should be 100 by default (now handled by WorkTransactionForm)
|
31
|
-
* - Franked and Unfranked sum should be equal to transaction amount
|
46
|
+
* - Franked and Unfranked sum should be equal to transaction amount
|
32
47
|
* - Franked field has custom message (mat-hint) (now handled by HoldingIncomeFormComponent)
|
33
48
|
* - some metafields required, but some not (now handled by HoldingIncomeForm)
|
34
49
|
*/
|
@@ -37,13 +52,8 @@ export class HoldingIncomeForm extends WorkTransactionForm {
|
|
37
52
|
if (!chartAccounts.isDividends()) {
|
38
53
|
return;
|
39
54
|
}
|
40
|
-
this.
|
41
|
-
if (metaFieldGroup.get('chartAccountsMetaField').value.isFrankingCredit()) {
|
42
|
-
return;
|
43
|
-
}
|
44
|
-
metaFieldGroup.get('value').setValidators(Validators.required);
|
45
|
-
});
|
55
|
+
this.frankingCredit.setValidators(Validators.required);
|
46
56
|
});
|
47
57
|
}
|
48
58
|
}
|
49
|
-
//# s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B9XG5cbiAgICAgIHRoaXMuZnJhbmtpbmdDcmVkaXQuc2V0VmFsaWRhdG9ycyhWYWxpZGF0b3JzLnJlcXVpcmVkKTtcbiAgICB9KVxuICB9XG59XG4iXX0=
|
@@ -5,4 +5,5 @@ export * from './sole/sole-income.form';
|
|
5
5
|
export * from './work/work-income.form';
|
6
6
|
export * from './work/work-expense.form';
|
7
7
|
export * from './holding/holding-income.form';
|
8
|
-
|
8
|
+
export * from './transaction-base-filter.form';
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdHJhbnNhY3Rpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hbGxvY2F0aW9uLXJ1bGUuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uLWJhc2UuZm9ybSc7XG5leHBvcnQgKiBmcm9tICcuL3RyYW5zYWN0aW9uLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi9zb2xlL3NvbGUtaW5jb21lLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi93b3JrL3dvcmstaW5jb21lLmZvcm0nO1xuZXhwb3J0ICogZnJvbSAnLi93b3JrL3dvcmstZXhwZW5zZS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vaG9sZGluZy9ob2xkaW5nLWluY29tZS5mb3JtJztcbmV4cG9ydCAqIGZyb20gJy4vdHJhbnNhY3Rpb24tYmFzZS1maWx0ZXIuZm9ybSc7XG4iXX0=
|
@@ -14,4 +14,4 @@ export class SoleIncomeForm extends SoleTransactionForm {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
}
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbmNvbWUuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi9zb2xlL3NvbGUtaW5jb21lLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDeEYsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFOUQsTUFBTSxPQUFPLGNBQWUsU0FBUSxtQkFBbUI7SUFDckQsWUFBWSxXQUF3QixFQUFFLFdBQW9DLEVBQUUsZ0JBQXlCO1FBRW5HLEtBQUssQ0FBQyxXQUFXLEVBQUUsZ0JBQWdCLEVBQUUsV0FBVyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRXRELCtDQUErQztRQUUvQyx1REFBdUQ7UUFDdkQsSUFBSSxXQUFXLENBQUMsTUFBTSxFQUFFO1lBQ3RCLElBQUksQ0FBQyxHQUFHLENBQUMsZUFBZSxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUM7U0FDckM7UUFFRCxnR0FBZ0c7UUFDaEcsSUFBSSxXQUFXLENBQUMsTU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xuICAgIH1cblxuICAgIC8vIGFtb3VudCBjaGFuZ2VzIGFyZSBub3QgYXZhaWxhYmxlIGZvciB0cmFuc2FjdGlvbnMgd2l0aCBhbGxvY2F0aW9ucyBvciBkdXJpbmcgYWxsb2NhdGUgcHJvY2Vzc1xuICAgIGlmIChhbGxvY2F0aW9ucy5sZW5ndGggfHwgdHJhbnNhY3Rpb24ub3BlcmF0aW9uID09PSBUcmFuc2FjdGlvbk9wZXJhdGlvbkVudW0uQUxMT0NBVEUpIHtcbiAgICAgIHRoaXMuZ2V0KCdhbW91bnQnKS5kaXNhYmxlKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
|
3
|
+
export class TransactionBaseFilterForm extends FormGroup {
|
4
|
+
constructor(tankType, business) {
|
5
|
+
super({
|
6
|
+
tankType: new FormControl(tankType),
|
7
|
+
business: new FormControl({ value: business, disabled: true }),
|
8
|
+
dateFrom: new FormControl(),
|
9
|
+
dateTo: new FormControl(),
|
10
|
+
});
|
11
|
+
this.listenEvents();
|
12
|
+
}
|
13
|
+
listenEvents() {
|
14
|
+
this.get('tankType').valueChanges.subscribe(tankType => {
|
15
|
+
tankType === TankTypeEnum.SOLE ? this.get('business').enable() : this.get('business').disable();
|
16
|
+
});
|
17
|
+
}
|
18
|
+
filter(collection) {
|
19
|
+
const value = this.value;
|
20
|
+
if (value.dateFrom) {
|
21
|
+
collection = collection.filter(transaction => transaction.date >= value.dateFrom);
|
22
|
+
}
|
23
|
+
if (value.dateTo) {
|
24
|
+
collection = collection.filter(transaction => transaction.date <= value.dateTo);
|
25
|
+
}
|
26
|
+
if (value.tankType) {
|
27
|
+
collection = collection.filterBy('tankType', value.tankType);
|
28
|
+
}
|
29
|
+
if (value.business) {
|
30
|
+
collection = collection.filterBy('business.id', value.business.id);
|
31
|
+
}
|
32
|
+
return collection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FsdWUuZGF0ZVRvKTtcbiAgICB9XG4gICAgaWYgKHZhbHVlLnRhbmtUeXBlKSB7XG4gICAgICBjb2xsZWN0aW9uID0gY29sbGVjdGlvbi5maWx0ZXJCeSgndGFua1R5cGUnLCB2YWx1ZS50YW5rVHlwZSk7XG4gICAgfVxuICAgIGlmICh2YWx1ZS5idXNpbmVzcykge1xuICAgICAgY29sbGVjdGlvbiA9IGNvbGxlY3Rpb24uZmlsdGVyQnkoJ2J1c2luZXNzLmlkJywgdmFsdWUuYnVzaW5lc3MuaWQpO1xuICAgIH1cblxuICAgIHJldHVybiBjb2xsZWN0aW9uO1xuICB9XG59XG4iXX0=
|
@@ -59,4 +59,4 @@ export class TransactionForm extends TransactionBaseForm {
|
|
59
59
|
return super.submit(Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }), true);
|
60
60
|
}
|
61
61
|
}
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy90cmFuc2FjdGlvbi90cmFuc2FjdGlvbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQXlCLE1BQU0sY0FBYyxDQUFDO0FBQ2xFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzlELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSx1QkFBdUIsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ3BHLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQW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lcmNlbnQ6ICh0cmFuc2FjdGlvbi5jbGFpbVBlcmNlbnQgKiBjaGlsZFRyYW5zYWN0aW9uLmNoYXJ0QWNjb3VudHM/LnRheGFibGVQZXJjZW50KSAvIDEwMCxcbiAgICAgICAgc291cmNlOiBUcmFuc2FjdGlvblNvdXJjZUVudW0uQkFOS19UUkFOU0FDVElPTixcbiAgICAgICAgaW5jb21lU291cmNlOiB0cmFuc2FjdGlvbi5pbmNvbWVTb3VyY2UsXG4gICAgICAgIHByb3BlcnR5OiB0cmFuc2FjdGlvbi5wcm9wZXJ0eVxuICAgICAgfSxcbiAgICAgIHRoaXMubW9kZWwudHJhbnNhY3Rpb25zLmZpbmQoKHRyYW5zYWN0aW9uKSA9PiB0cmFuc2FjdGlvbi5pZCA9PT0gY2hpbGRUcmFuc2FjdGlvblsnaWQnXSkgfHwge30sXG4gICAgICBjaGlsZFRyYW5zYWN0aW9uLFxuICAgICkpO1xuICB9XG5cbiAgc3VibWl0KGRhdGE6IG9iamVjdCA9IHt9KTogVHJhbnNhY3Rpb24ge1xuICAgIHJldHVybiBzdXBlci5zdWJtaXQoT2JqZWN0LmFzc2lnbihkYXRhLCB7IHRyYW5zYWN0aW9uczogdGhpcy5idWlsZFRyYW5zYWN0aW9ucyh0aGlzLmN1cnJlbnRWYWx1ZSkgfSksIHRydWUpO1xuICB9XG59XG4iXX0=
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { TransactionForm } from '../transaction.form';
|
2
2
|
import { FormArray, FormControl, FormGroup } from '@angular/forms';
|
3
|
-
import { transactionsMetaFieldsValidator } from '../../../validators/transactions-meta-fields.validator';
|
4
3
|
export class WorkTransactionForm extends TransactionForm {
|
5
4
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
6
5
|
super(transaction, registeredForGst, allocations, Object.assign(controls, {
|
@@ -10,7 +9,6 @@ export class WorkTransactionForm extends TransactionForm {
|
|
10
9
|
chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
|
11
10
|
})))
|
12
11
|
}));
|
13
|
-
this.setValidators(transactionsMetaFieldsValidator());
|
14
12
|
this.listenEvents();
|
15
13
|
}
|
16
14
|
listenEvents() {
|
@@ -18,7 +16,7 @@ export class WorkTransactionForm extends TransactionForm {
|
|
18
16
|
}
|
19
17
|
watchChartAccounts() {
|
20
18
|
super.watchChartAccounts();
|
21
|
-
this.get('chartAccounts').valueChanges.subscribe((
|
19
|
+
this.get('chartAccounts').valueChanges.subscribe(() => {
|
22
20
|
this.buildMetaFieldsForm();
|
23
21
|
});
|
24
22
|
}
|
@@ -37,4 +35,4 @@ export class WorkTransactionForm extends TransactionForm {
|
|
37
35
|
});
|
38
36
|
}
|
39
37
|
}
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29yay10cmFuc2FjdGlvbi5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3RyYW5zYWN0aW9uL3dvcmsvd29yay10cmFuc2FjdGlvbi5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQVF0RCxPQUFPLEVBQW1CLFNBQVMsRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFcEYsTUFBTSxPQUFnQixtQkFBb0IsU0FBUSxlQUFlO0lBQy9ELFlBQ0UsV0FBd0IsRUFDeEIsZ0JBQXlCLEVBQ3pCLFdBQW9DLEVBQ3BDLFdBQStDLEVBQUU7UUFFakQsS0FBSyxDQUFDLFdBQVcsRUFBRSxnQkFBZ0IsRUFBRSxXQUFXLEVBQUUsTUFBTSxDQUFDLE1BQU0sQ0F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sForm extends AbstractForm {
|
|
6
6
|
constructor(clientDetails) {
|
7
7
|
super({
|
8
8
|
isAustralianResident: new UntypedFormControl(clientDetails.isAustralianResident),
|
9
|
-
taxFileNumber: new UntypedFormControl(clientDetails.taxFileNumber),
|
9
|
+
taxFileNumber: new UntypedFormControl({ value: clientDetails.taxFileNumber, disabled: !!clientDetails.taxFileNumber }, [Validators.minLength(8), Validators.maxLength(10)]),
|
10
10
|
occupation: new UntypedFormControl(clientDetails.occupation, autocompleteValidator()),
|
11
11
|
medicareExemption: new UntypedFormControl({ value: clientDetails.medicareExemption, disabled: !clientDetails.medicareExemption }, Validators.required),
|
12
12
|
pensionersTax: new UntypedFormControl(clientDetails.pensionersTax),
|
@@ -31,4 +31,4 @@ export class ClientDetailsForm extends AbstractForm {
|
|
31
31
|
return super.submit({}, true);
|
32
32
|
}
|
33
33
|
}
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LWRldGFpbHMuZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9mb3Jtcy91c2VyL2NsaWVudC1kZXRhaWxzLmZvcm0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWhFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ3pELE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDZDQUE2QyxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxNQUFNLE9BQU8saUJBQWtCLFNBQVEsWUFBMkI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gICAvLyBAVE9ETyBBbGV4L1ZpazogdGhpbmsgYWJvdXQgRm9ybUNvbnRyb2wgZXh0ZW5zaW9uIGFuZCBpbXBsZW1lbnQgY29udHJvbC50b2dnbGUoKSBtZXRob2RcbiAgICAvLyB0aGVuIHdlIGNhbiBvcHRpbWl6ZSB0aGUgY29kZTpcbiAgICAvLyBjb250cm9sLnNldFZhbHVlKGVuYWJsZWQgPyBudWxsIDogVXNlck1lZGljYXJlRXhlbXB0aW9uRW51bS5OTylcbiAgICAvLyBjb250cm9sLnRvZ2dsZShlbmFibGVkKTtcblxuICAgIGlmIChlbmFibGVkKSB7XG4gICAgICBjb250cm9sLnNldFZhbHVlKG51bGwpO1xuICAgICAgY29udHJvbC5lbmFibGUoKTtcblxuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGNvbnRyb2wuc2V0VmFsdWUoVXNlck1lZGljYXJlRXhlbXB0aW9uRW51bS5OTyk7XG4gICAgY29udHJvbC5kaXNhYmxlKCk7XG4gIH1cblxuICBzdWJtaXQoKTogQ2xpZW50RGV0YWlscyB7XG4gICAgcmV0dXJuIHN1cGVyLnN1Ym1pdCh7fSwgdHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -2,15 +2,16 @@ import { AbstractForm } from '../abstract.form';
|
|
2
2
|
import { RegistrationInvite } from '../../models/registration-invite/registration-invite';
|
3
3
|
import { UntypedFormControl, Validators } from '@angular/forms';
|
4
4
|
import { plainToClass } from 'class-transformer';
|
5
|
+
import { alphaSpaceValidator } from '../../validators';
|
5
6
|
/**
|
6
7
|
* Form for inviting an unregistered user
|
7
8
|
*/
|
8
9
|
export class UserInviteForm extends AbstractForm {
|
9
10
|
constructor() {
|
10
11
|
super({
|
11
|
-
firstName: new UntypedFormControl(null, Validators.required),
|
12
|
+
firstName: new UntypedFormControl(null, [Validators.required, alphaSpaceValidator()]),
|
12
13
|
email: new UntypedFormControl(null, [Validators.required, Validators.email]),
|
13
14
|
}, plainToClass(RegistrationInvite,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Q29udGVudCI6WyJpbXBvcnQgeyBBYnN0cmFjdEZvcm0gfSBmcm9tICcuLi9hYnN0cmFjdC5mb3JtJztcbmltcG9ydCB7IFJlZ2lzdHJhdGlvbkludml0ZSB9IGZyb20gJy4uLy4uL21vZGVscy9yZWdpc3RyYXRpb24taW52aXRlL3JlZ2lzdHJhdGlvbi1pbnZpdGUnO1xuaW1wb3J0IHsgVW50eXBlZEZvcm1Db250cm9sLCBWYWxpZGF0b3JzIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuaW1wb3J0IHsgcGxhaW5Ub0NsYXNzIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInO1xuaW1wb3J0IHsgYWxwaGFTcGFjZVZhbGlkYXRvciB9IGZyb20gJy4uLy4uL3ZhbGlkYXRvcnMnO1xuXG4vKipcbiAqIEZvcm0gZm9yIGludml0aW5nIGFuIHVucmVnaXN0ZXJlZCB1c2VyXG4gKi9cbmV4cG9ydCBjbGFzcyBVc2VySW52aXRlRm9ybSBleHRlbmRzIEFic3RyYWN0Rm9ybTxSZWdpc3RyYXRpb25JbnZpdGU+IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoe1xuICAgICAgZmlyc3ROYW1lOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKG51bGwsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBhbHBoYVNwYWNlVmFsaWRhdG9yKCldKSxcbiAgICAgIGVtYWlsOiBuZXcgVW50eXBlZEZvcm1Db250cm9sKG51bGwsIFtWYWxpZGF0b3JzLnJlcXVpcmVkLCBWYWxpZGF0b3JzLmVtYWlsXSksXG4gICAgfSxcbiAgICBwbGFpblRvQ2xhc3MoUmVnaXN0cmF0aW9uSW52aXRlLCB7fSlcbiAgICApO1xuICB9XG59XG4iXX0=
|
@@ -1,15 +1,18 @@
|
|
1
|
-
import {
|
1
|
+
import { FormControl, Validators } from '@angular/forms';
|
2
2
|
import { AbstractForm } from '../abstract.form';
|
3
|
+
import { alphaSpaceValidator } from '../../validators';
|
3
4
|
export class UserForm extends AbstractForm {
|
4
5
|
constructor(user) {
|
5
6
|
super({
|
6
|
-
title: new
|
7
|
-
firstName: new
|
8
|
-
lastName: new
|
9
|
-
address: new
|
10
|
-
phone: new
|
11
|
-
file: new
|
7
|
+
title: new FormControl(user.title),
|
8
|
+
firstName: new FormControl(user.firstName, [Validators.required, alphaSpaceValidator()]),
|
9
|
+
lastName: new FormControl(user.lastName, [Validators.required, alphaSpaceValidator()]),
|
10
|
+
address: new FormControl(user.address),
|
11
|
+
phone: new FormControl(user.phone),
|
12
|
+
file: new FormControl(user.file),
|
13
|
+
dateOfBirth: new FormControl(user.dateOfBirth),
|
14
|
+
gender: new FormControl(user.gender),
|
12
15
|
}, user);
|
13
16
|
}
|
14
17
|
}
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3VzZXIvdXNlci5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekQsT0FBTyxFQUFFLFlBQVksRUFBcUIsTUFBTSxrQkFBa0IsQ0FBQztBQUduRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQVV2RCxNQUFNLE9BQU8sUUFBUyxTQUFRLFlBQXlDO0lBQ3JFLFlBQVksSUFBVTtRQUNwQixLQUFLLENBQUM7WUFDSixLQUFLLEVBQUUsSUFBSSxXQUFXLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztZQUNsQyxTQUF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VPZkJpcnRoOiBuZXcgRm9ybUNvbnRyb2wodXNlci5kYXRlT2ZCaXJ0aCksXG4gICAgICBnZW5kZXI6IG5ldyBGb3JtQ29udHJvbCh1c2VyLmdlbmRlciksXG4gICAgfSwgdXNlcik7XG4gIH1cbn1cbiJdfQ==
|
@@ -14,4 +14,4 @@ export class VehicleClaimDetailsForm extends AbstractForm {
|
|
14
14
|
}, vehicleClaimDetails);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS1kZXRhaWxzLmZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZm9ybXMvdmVoaWNsZS92ZWhpY2xlLWNsYWltLWRldGFpbHMuZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWhFOztHQUVHO0FBQ0gsTUFBTSxPQUFPLHVCQUF3QixTQUFRLFlBQWlDO0lBQzVFLFlBQVksbUJBQXdDLEVBQUUsaUJBQTBCO1FBQzlFLEtBQUssQ0FBQztZQUNKLE1BQU0sRUFBRSxJQUFJLGtCQUFrQixDQUFDLG1CQUFtQixDQUFDLE1BQU0sRUFBRSxVQUFVLENBQUMsUUFBUSxDQUFDO1lBQy9FLFFBQVEsRUFBRSxJQUFJLGtCQUFrQixDQUFDO2dCQUMvQixLQUFLLEVBQUUsbUJBQW1CLENBQUMsUUFBUTtnQkFDbkMsUUFBUSxFQUFFLENBQUMsaUJBQWlCO2FBQzdCLENBQUM7U0F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|
22
22
|
}, vehicleClaim);
|
23
|
-
this.vehicleClaim = vehicleClaim;
|
24
|
-
this.details = details;
|
25
23
|
}
|
26
24
|
getAverageWeeklyKMS() {
|
27
25
|
return this.get('kilometers').value / FinancialYear.weeksInYear;
|
28
26
|
}
|
29
27
|
}
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVoaWNsZS1jbGFpbS5mb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Zvcm1zL3ZlaGljbGUvdmVoaWNsZS1jbGFpbS5mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVwRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRTdDOztHQUVHO0FBQ0gsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFlBQTBCO0lBQzlEOzs7T0FHRztJQUNILFlBQVksWUFBMEIsRUFBRSxPQUE0QjtRQUNsRSxLQUFLLENBQUM7WUFDSixVQUFVLEVBQUUsSUFBSSxrQkFBa0IsQ0FBQztnQkFDakMsS0FBSyxFQUFFLFlBQVksQ0FBQyxVQUFVO2dCQUM5QixRQUFRLEVBQUUsQ0FBQyxPQUFPLENBQUMsUUFBUSxJQUFJLE9BQU8sQ0FBQyxlQUFlLEVBQUU7YUFDekQsQ0FBQztZQUNGLFNBQVMsRUFBRSxJQUFJLGtCQUFrQixDQUFDO2dCQUNoQyxLQUFLLEVBQUUsWUFBWSxDQUFDLFNBQVM7Z0JBQzdCLFFBQVEsRUFB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