taxtank-core 0.30.49 → 0.30.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/collections/income-source.collection.mjs +3 -3
- package/esm2020/lib/collections/property/property-sale/property-sale.collection.mjs +2 -2
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-category.enum.mjs +2 -1
- package/esm2020/lib/db/Enums/{income-source-forecast-trust-type.enum.mjs → income-source/income-source-forecast-trust-type.enum.mjs} +1 -1
- package/esm2020/lib/db/Enums/income-source/income-source-type-list-holding.enum.mjs +9 -0
- package/esm2020/lib/db/Enums/{income-source-type-list-other.enum.mjs → income-source/income-source-type-list-other.enum.mjs} +1 -1
- package/esm2020/lib/db/Enums/income-source/income-source-type-list-sole.enum.mjs +5 -0
- package/esm2020/lib/db/Enums/{income-source-type-list-work.enum.mjs → income-source/income-source-type-list-work.enum.mjs} +1 -2
- package/esm2020/lib/db/Enums/income-source/income-source-type.enum.mjs +8 -0
- package/esm2020/lib/db/Enums/income-source/index.mjs +7 -0
- package/esm2020/lib/db/Json/income-source/income_source_type.json +67 -0
- package/esm2020/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
- package/esm2020/lib/db/Models/incomeSource/income-source.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/property-sale.mjs +1 -1
- package/esm2020/lib/forms/property/property-sale/property-sale-cost-sale.form.mjs +2 -2
- package/esm2020/lib/forms/sole/sole-business.form.mjs +2 -2
- package/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +2 -2
- package/esm2020/lib/forms/transaction/holding/holding-income.form.mjs +25 -0
- package/esm2020/lib/forms/transaction/index.mjs +2 -1
- package/esm2020/lib/forms/transaction/work/work-income.form.mjs +4 -4
- package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
- package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
- package/esm2020/lib/interfaces/income-source-forecast.interface.mjs +1 -1
- package/esm2020/lib/models/chart-accounts/chart-accounts-categories.const.mjs +3 -2
- package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +2 -1
- package/esm2020/lib/models/holding/holding-sale.mjs +16 -1
- package/esm2020/lib/models/holding/holding.mjs +3 -1
- package/esm2020/lib/models/income-source/income-source-forecast.mjs +1 -1
- package/esm2020/lib/models/income-source/income-source-type.mjs +5 -15
- package/esm2020/lib/models/income-source/income-source.mjs +8 -10
- package/esm2020/lib/models/income-source/index.mjs +7 -0
- package/esm2020/lib/models/income-source/salary-forecast.mjs +1 -1
- package/esm2020/lib/models/income-source/sole-forecast.mjs +1 -1
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/models/property/property-sale/property-sale.mjs +2 -2
- package/esm2020/lib/models/property/property.mjs +2 -2
- package/esm2020/lib/services/account-setup/account-setup.service.mjs +5 -5
- package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
- package/esm2020/lib/services/asset/assets.service.mjs +3 -3
- package/esm2020/lib/services/auth/auth.service.mjs +3 -3
- package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
- package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
- package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
- package/esm2020/lib/services/data.service.mjs +3 -3
- package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
- package/esm2020/lib/services/event/sse.service.mjs +3 -3
- package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
- package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
- package/esm2020/lib/services/http/address/address.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +3 -3
- package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
- package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
- package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
- package/esm2020/lib/services/http/chat/message-document.service.mjs +3 -3
- package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
- package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
- package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +3 -3
- package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
- package/esm2020/lib/services/http/document/document.service.mjs +3 -3
- package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
- package/esm2020/lib/services/http/file/file.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/firm.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
- package/esm2020/lib/services/http/google/google.service.mjs +3 -3
- package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
- package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
- package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
- package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +6 -9
- package/esm2020/lib/services/http/income-source/income-source.service.mjs +5 -26
- package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +5 -5
- package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
- package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
- package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property.service.mjs +3 -3
- package/esm2020/lib/services/http/receipt/receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest.service.mjs +3 -3
- package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
- package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
- package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
- package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction.service.mjs +3 -3
- package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
- package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
- package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
- package/esm2020/lib/services/http/user/user.service.mjs +3 -3
- package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
- package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
- package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
- package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +23 -0
- package/esm2020/lib/services/json/index.mjs +2 -1
- package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
- package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
- package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
- package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
- package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
- package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
- package/esm2020/lib/services/toast/toast.service.mjs +3 -3
- package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
- package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
- package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
- package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
- package/esm2020/lib/tt-core.module.mjs +4 -4
- package/esm2020/public-api.mjs +2 -12
- package/fesm2015/taxtank-core.mjs +577 -467
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +577 -467
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/income-source.collection.d.ts +3 -3
- package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts +2 -1
- package/lib/db/Enums/income-source/income-source-type-list-holding.enum.d.ts +7 -0
- package/lib/db/Enums/{income-source-type-list-work.enum.d.ts → income-source/income-source-type-list-work.enum.d.ts} +0 -1
- package/lib/db/Enums/{income-source-type.enum.d.ts → income-source/income-source-type.enum.d.ts} +2 -1
- package/lib/db/Enums/income-source/index.d.ts +6 -0
- package/lib/db/Models/incomeSource/income-source-forecast.d.ts +1 -1
- package/lib/db/Models/incomeSource/income-source.d.ts +1 -1
- package/lib/db/Models/property/property-sale/property-sale.d.ts +1 -1
- package/lib/forms/transaction/holding/holding-income.form.d.ts +9 -0
- package/lib/forms/transaction/index.d.ts +1 -0
- package/lib/interfaces/income-source-forecast.interface.d.ts +2 -2
- package/lib/models/holding/holding-sale.d.ts +7 -0
- package/lib/models/holding/holding.d.ts +7 -5
- package/lib/models/income-source/income-source-forecast.d.ts +1 -1
- package/lib/models/income-source/income-source-type.d.ts +1 -2
- package/lib/models/income-source/income-source.d.ts +2 -2
- package/lib/models/income-source/index.d.ts +6 -0
- package/lib/models/income-source/salary-forecast.d.ts +1 -1
- package/lib/models/income-source/sole-forecast.d.ts +1 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/property/property-sale/property-sale.d.ts +1 -1
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts +2 -2
- package/lib/services/http/income-source/income-source.service.d.ts +4 -12
- package/lib/services/json/income-source/income-source-type.service.d.ts +12 -0
- package/lib/services/json/index.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -11
- package/esm2020/lib/db/Enums/income-source-type-list-sole.enum.mjs +0 -5
- package/esm2020/lib/db/Enums/income-source-type.enum.mjs +0 -7
- /package/lib/db/Enums/{income-source-forecast-trust-type.enum.d.ts → income-source/income-source-forecast-trust-type.enum.d.ts} +0 -0
- /package/lib/db/Enums/{income-source-type-list-other.enum.d.ts → income-source/income-source-type-list-other.enum.d.ts} +0 -0
- /package/lib/db/Enums/{income-source-type-list-sole.enum.d.ts → income-source/income-source-type-list-sole.enum.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Collection } from './collection';
|
|
2
|
-
import { IncomeSource } from '../models
|
|
2
|
+
import { IncomeSource } from '../models';
|
|
3
3
|
import { TankTypeEnum } from '../db/Enums/tank-type.enum';
|
|
4
|
-
import { IncomeSourceTypeEnum } from '../db/Enums/income-source-type.enum';
|
|
5
|
-
import { IIncomeSourceForecast } from '../interfaces
|
|
4
|
+
import { IncomeSourceTypeEnum } from '../db/Enums/income-source/income-source-type.enum';
|
|
5
|
+
import { IIncomeSourceForecast } from '../interfaces';
|
|
6
6
|
/**
|
|
7
7
|
* Collection of income sources
|
|
8
8
|
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './income-source-forecast-trust-type.enum';
|
|
2
|
+
export * from './income-source-type.enum';
|
|
3
|
+
export * from './income-source-type-list-other.enum';
|
|
4
|
+
export * from './income-source-type-list-sole.enum';
|
|
5
|
+
export * from './income-source-type-list-work.enum';
|
|
6
|
+
export * from './income-source-type-list-holding.enum';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source-forecast-trust-type.enum';
|
|
1
|
+
import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source/income-source-forecast-trust-type.enum';
|
|
2
2
|
import { IncomeSource } from './income-source';
|
|
3
3
|
import { IncomeSourceType } from './income-source-type';
|
|
4
4
|
import { AbstractModel } from '../abstract-model';
|
|
@@ -2,7 +2,7 @@ import { User } from '../user/user';
|
|
|
2
2
|
import { SalaryForecast } from './salary-forecast';
|
|
3
3
|
import { SoleForecast } from '../sole/sole-forecast';
|
|
4
4
|
import { IncomeSourceForecast } from './income-source-forecast';
|
|
5
|
-
import { IncomeSourceTypeEnum } from '../../Enums/income-source-type.enum';
|
|
5
|
+
import { IncomeSourceTypeEnum } from '../../Enums/income-source/income-source-type.enum';
|
|
6
6
|
import { AbstractModel } from '../abstract-model';
|
|
7
7
|
export declare class IncomeSource extends AbstractModel {
|
|
8
8
|
id?: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Transaction, TransactionAllocation } from '../../../models';
|
|
2
|
+
import { IEventListener } from '../../../interfaces';
|
|
3
|
+
import { WorkTransactionForm } from '../work/work-transaction.form';
|
|
4
|
+
export declare class HoldingIncomeForm extends WorkTransactionForm implements IEventListener {
|
|
5
|
+
/**
|
|
6
|
+
* @TODO vik partial copyPast from workIncomeForm
|
|
7
|
+
*/
|
|
8
|
+
constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[]);
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IncomeSource } from '../models
|
|
2
|
-
import { IncomeSourceForecastTrustTypeEnum } from '../db/Enums/income-source-forecast-trust-type.enum';
|
|
1
|
+
import { IncomeSource } from '../models';
|
|
2
|
+
import { IncomeSourceForecastTrustTypeEnum } from '../db/Enums/income-source/income-source-forecast-trust-type.enum';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for income source forecasts
|
|
5
5
|
*/
|
|
@@ -16,4 +16,11 @@ export declare class HoldingSale extends ObservableModel {
|
|
|
16
16
|
* netCapitalGain is different from grossCapitalGain only when 1 year rule applied
|
|
17
17
|
*/
|
|
18
18
|
isOneYearExemptionApplicable(): boolean;
|
|
19
|
+
getCostBase(holding: Holding): number;
|
|
20
|
+
/**
|
|
21
|
+
* Purchase price of sold items
|
|
22
|
+
*/
|
|
23
|
+
getPurchasePrice(holding: Holding): number;
|
|
24
|
+
get netCost(): number;
|
|
25
|
+
get cost(): number;
|
|
19
26
|
}
|
|
@@ -17,23 +17,25 @@ export declare class Holding extends AbstractModel {
|
|
|
17
17
|
type: HoldingType;
|
|
18
18
|
file: AppFile;
|
|
19
19
|
sales: Collection<HoldingSale>;
|
|
20
|
+
/**
|
|
21
|
+
* @TODO Artem/Alex looks bad, come up with a better solution
|
|
22
|
+
* get current category, in holding we are interested in 3 main categories: stock/crypto/other
|
|
23
|
+
*/
|
|
24
|
+
category: HoldingTypeCategoryEnum;
|
|
20
25
|
/**
|
|
21
26
|
* Get total purchasing price
|
|
22
27
|
*/
|
|
23
28
|
get purchaseValue(): number;
|
|
24
29
|
/**
|
|
25
30
|
* Get current market price
|
|
31
|
+
* @TODO vik/alex no need to pass holdingType, should come from backend
|
|
26
32
|
*/
|
|
27
33
|
getMarketValue(holdingType: HoldingType): number;
|
|
28
34
|
/**
|
|
29
35
|
* Get percent difference between current and buy price
|
|
36
|
+
* @TODO vik/alex no need to pass holdingType, should come from backend
|
|
30
37
|
*/
|
|
31
38
|
getGrowthCoefficient(holdingType: HoldingType): number;
|
|
32
39
|
heldMoreYear(): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* @TODO Artem/Alex looks bad, come up with a better solution
|
|
35
|
-
* get current category, in holding we are interested in 3 main categories: stock/crypto/other
|
|
36
|
-
*/
|
|
37
|
-
category: HoldingTypeCategoryEnum;
|
|
38
40
|
isSold(): boolean;
|
|
39
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IncomeSourceForecast as IncomeSourceForecastBase } from '../../db/Models/incomeSource/income-source-forecast';
|
|
2
2
|
import { SalaryForecastFrequencyEnum } from '../../db/Enums/salary-forecast-frequency.enum';
|
|
3
|
-
import { IIncomeSourceForecast } from '../../interfaces
|
|
3
|
+
import { IIncomeSourceForecast } from '../../interfaces';
|
|
4
4
|
import { IncomeSourceType } from './income-source-type';
|
|
5
5
|
import { IncomeSource } from './income-source';
|
|
6
6
|
export declare class IncomeSourceForecast extends IncomeSourceForecastBase implements IIncomeSourceForecast {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IncomeSourceType as IncomeSourceTypeBase } from '../../db/Models/incomeSource/income-source-type';
|
|
2
|
-
import { IncomeSourceTypeEnum } from '../../db/Enums/income-source-type.enum';
|
|
3
2
|
export declare class IncomeSourceType extends IncomeSourceTypeBase {
|
|
4
3
|
isBonuses(): boolean;
|
|
5
4
|
isWork(): boolean;
|
|
6
5
|
isOther(): boolean;
|
|
6
|
+
isHolding(): boolean;
|
|
7
7
|
isSole(): boolean;
|
|
8
|
-
get type(): IncomeSourceTypeEnum;
|
|
9
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomeSource as IncomeSourceBase } from '../../db/Models/incomeSource/income-source';
|
|
2
|
-
import { IIncomeSourceForecast } from '../../interfaces
|
|
2
|
+
import { IIncomeSourceForecast } from '../../interfaces';
|
|
3
3
|
import { SalaryForecast } from './salary-forecast';
|
|
4
4
|
import { SoleForecast } from './sole-forecast';
|
|
5
5
|
import { IncomeSourceForecast } from './income-source-forecast';
|
|
@@ -9,10 +9,10 @@ export declare class IncomeSource extends IncomeSourceBase {
|
|
|
9
9
|
incomeSourceForecasts: IncomeSourceForecast[];
|
|
10
10
|
dateFrom: Date;
|
|
11
11
|
dateTo: Date;
|
|
12
|
-
isSalaryIncome(): boolean;
|
|
13
12
|
isSoleIncome(): boolean;
|
|
14
13
|
isWorkIncome(): boolean;
|
|
15
14
|
isOtherIncome(): boolean;
|
|
15
|
+
isHolding(): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Get salary and other income forecasts
|
|
18
18
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SalaryForecast as SalaryForecastBase } from '../../db/Models/incomeSource/salary-forecast';
|
|
2
2
|
import { IncomeSource } from './income-source';
|
|
3
|
-
import { IIncomeSourceForecast } from '../../interfaces
|
|
3
|
+
import { IIncomeSourceForecast } from '../../interfaces';
|
|
4
4
|
export declare class SalaryForecast extends SalaryForecastBase implements IIncomeSourceForecast {
|
|
5
5
|
grossAmount: number;
|
|
6
6
|
incomeSource: IncomeSource;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IncomeSource } from './income-source';
|
|
2
2
|
import { SoleForecast as SoleForecastBase } from '../../db/Models/sole/sole-forecast';
|
|
3
|
-
import { IIncomeSourceForecast } from '../../interfaces
|
|
3
|
+
import { IIncomeSourceForecast } from '../../interfaces';
|
|
4
4
|
export declare class SoleForecast extends SoleForecastBase implements IIncomeSourceForecast {
|
|
5
5
|
incomeSource: IncomeSource;
|
|
6
6
|
get netPay(): number;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class PropertySale extends BasePropertySale {
|
|
|
10
10
|
legalFees: number;
|
|
11
11
|
otherCost: number;
|
|
12
12
|
settlementDate: Date;
|
|
13
|
-
|
|
13
|
+
date: Date;
|
|
14
14
|
taxExemption: TaxExemption;
|
|
15
15
|
taxExemptionMetaFields: PropertySaleTaxExemptionMetaField[];
|
|
16
16
|
get saleCostsTotalAmount(): number;
|
package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IncomeSourceForecast as IncomeSourceForecastBase } from '../../../../db/Models/incomeSource/income-source-forecast';
|
|
2
2
|
import { RestService } from '../../rest/rest-old.service';
|
|
3
|
-
import { IncomeSourceForecast } from '../../../../models
|
|
4
|
-
import { IEventListener } from '../../../../interfaces
|
|
3
|
+
import { IncomeSourceForecast } from '../../../../models';
|
|
4
|
+
import { IEventListener } from '../../../../interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Service to work with Other Income Forecasts
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Observable
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
2
|
import { IncomeSource as IncomeSourceBase } from '../../../db/Models/incomeSource/income-source';
|
|
3
3
|
import { RestService } from '../rest/rest-old.service';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { IncomeSource } from '../../../models/income-source/income-source';
|
|
8
|
-
import { IEventListener } from '../../../interfaces/event-listener.interface';
|
|
4
|
+
import { SalaryForecast, IncomeSource } from '../../../models';
|
|
5
|
+
import { IncomeSourceTypeEnum } from '../../../db/Enums/income-source/income-source-type.enum';
|
|
6
|
+
import { IEventListener } from '../../../interfaces';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
/**
|
|
11
9
|
* Service to work with income sources
|
|
@@ -13,8 +11,6 @@ import * as i0 from "@angular/core";
|
|
|
13
11
|
export declare class IncomeSourceService extends RestService<IncomeSourceBase, IncomeSource> implements IEventListener {
|
|
14
12
|
url: string;
|
|
15
13
|
modelClass: typeof IncomeSource;
|
|
16
|
-
incomeSourceTypes: IncomeSourceType[];
|
|
17
|
-
incomeSourceTypeSubject: ReplaySubject<IncomeSourceType[]>;
|
|
18
14
|
listenEvents(): void;
|
|
19
15
|
/**
|
|
20
16
|
* Get income sources tax calculation
|
|
@@ -35,10 +31,6 @@ export declare class IncomeSourceService extends RestService<IncomeSourceBase, I
|
|
|
35
31
|
* @param types
|
|
36
32
|
*/
|
|
37
33
|
getByTypes(types: IncomeSourceTypeEnum[]): Observable<IncomeSource[]>;
|
|
38
|
-
/**
|
|
39
|
-
* Get other incomes types
|
|
40
|
-
*/
|
|
41
|
-
getIncomeSourceTypes(): Observable<IncomeSourceType[]>;
|
|
42
34
|
/**
|
|
43
35
|
* Sole businesses create together with income source
|
|
44
36
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IncomeSourceType as IncomeSourceTypeBase } from '../../../db/Models';
|
|
2
|
+
import { Collection } from '../../../collections';
|
|
3
|
+
import { IncomeSourceType } from '../../../models';
|
|
4
|
+
import { DataService } from '../../data.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class IncomeSourceTypeService extends DataService<IncomeSourceTypeBase, IncomeSourceType, Collection<IncomeSourceType>> {
|
|
7
|
+
modelClass: typeof IncomeSourceType;
|
|
8
|
+
collectionClass: typeof Collection;
|
|
9
|
+
constructor();
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IncomeSourceTypeService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IncomeSourceTypeService>;
|
|
12
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -43,11 +43,7 @@ export * from './lib/db/Enums/depreciation-calculation-percent.enum';
|
|
|
43
43
|
export * from './lib/db/Enums/depreciation-type.enum';
|
|
44
44
|
export * from './lib/db/Enums/depreciation-write-off-amount.enum';
|
|
45
45
|
export * from './lib/db/Enums/firm-type.enum';
|
|
46
|
-
export * from './lib/db/Enums/income-source
|
|
47
|
-
export * from './lib/db/Enums/income-source-type.enum';
|
|
48
|
-
export * from './lib/db/Enums/income-source-type-list-other.enum';
|
|
49
|
-
export * from './lib/db/Enums/income-source-type-list-sole.enum';
|
|
50
|
-
export * from './lib/db/Enums/income-source-type-list-work.enum';
|
|
46
|
+
export * from './lib/db/Enums/income-source';
|
|
51
47
|
export * from './lib/db/Enums/invite-status.enum';
|
|
52
48
|
export * from './lib/db/Enums/loan-bank-type.enum';
|
|
53
49
|
export * from './lib/db/Enums/loan-frequency.enum';
|
|
@@ -142,12 +138,6 @@ export * from './lib/models/financial-year/month-number.enum';
|
|
|
142
138
|
export * from './lib/models/financial-year/months.const';
|
|
143
139
|
export * from './lib/models/firm/firm';
|
|
144
140
|
export * from './lib/models/income-position/income-position';
|
|
145
|
-
export * from './lib/models/income-source/income-source';
|
|
146
|
-
export * from './lib/models/income-source/income-source-chart-data';
|
|
147
|
-
export * from './lib/models/income-source/income-source-forecast';
|
|
148
|
-
export * from './lib/models/income-source/income-source-type';
|
|
149
|
-
export * from './lib/models/income-source/salary-forecast';
|
|
150
|
-
export * from './lib/models/income-source/sole-forecast';
|
|
151
141
|
export * from './lib/models/notification/notification';
|
|
152
142
|
export * from './lib/models/pdf/pdf-orientation.enum';
|
|
153
143
|
export * from './lib/models/pdf/pdf-settings';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export var IncomeSourceTypeListSoleEnum;
|
|
2
|
-
(function (IncomeSourceTypeListSoleEnum) {
|
|
3
|
-
IncomeSourceTypeListSoleEnum[IncomeSourceTypeListSoleEnum["SOLE_TRADER"] = 7] = "SOLE_TRADER";
|
|
4
|
-
})(IncomeSourceTypeListSoleEnum || (IncomeSourceTypeListSoleEnum = {}));
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5jb21lLXNvdXJjZS10eXBlLWxpc3Qtc29sZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2RiL0VudW1zL2luY29tZS1zb3VyY2UtdHlwZS1saXN0LXNvbGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSw0QkFFWDtBQUZELFdBQVksNEJBQTRCO0lBQ3RDLDZGQUFlLENBQUE7QUFDakIsQ0FBQyxFQUZXLDRCQUE0QixLQUE1Qiw0QkFBNEIsUUFFdkMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBJbmNvbWVTb3VyY2VUeXBlTGlzdFNvbGVFbnVtIHtcbiAgU09MRV9UUkFERVIgPSA3LFxufVxuIl19
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var IncomeSourceTypeEnum;
|
|
2
|
-
(function (IncomeSourceTypeEnum) {
|
|
3
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["WORK"] = 1] = "WORK";
|
|
4
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["SOLE"] = 2] = "SOLE";
|
|
5
|
-
IncomeSourceTypeEnum[IncomeSourceTypeEnum["OTHER"] = 3] = "OTHER";
|
|
6
|
-
})(IncomeSourceTypeEnum || (IncomeSourceTypeEnum = {}));
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5jb21lLXNvdXJjZS10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvaW5jb21lLXNvdXJjZS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksb0JBSVg7QUFKRCxXQUFZLG9CQUFvQjtJQUM5QiwrREFBUSxDQUFBO0lBQ1IsK0RBQVEsQ0FBQTtJQUNSLGlFQUFTLENBQUE7QUFDWCxDQUFDLEVBSlcsb0JBQW9CLEtBQXBCLG9CQUFvQixRQUkvQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEluY29tZVNvdXJjZVR5cGVFbnVtIHtcbiAgV09SSyA9IDEsXG4gIFNPTEUgPSAyLFxuICBPVEhFUiA9IDMsXG59XG4iXX0=
|
|
File without changes
|
|
File without changes
|