taxtank-core 0.29.1 → 0.29.3
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/bundles/taxtank-core.umd.js +368 -390
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection.js +5 -2
- package/esm2015/lib/collections/depreciation.collection.js +1 -4
- package/esm2015/lib/collections/sole/sole-business-losses.collection.js +6 -5
- package/esm2015/lib/collections/tax-summary/report-item.collection.js +1 -1
- package/esm2015/lib/collections/transaction/index.js +1 -2
- package/esm2015/lib/collections/transaction/transaction.collection.js +12 -9
- package/esm2015/lib/forms/sole/bas-report.form.js +3 -9
- package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
- package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
- package/esm2015/lib/interceptors/interceptors.module.js +4 -4
- package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
- package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
- package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
- package/esm2015/lib/models/report/my-tax/my-tax-losses/my-tax-losses.js +5 -4
- package/esm2015/lib/models/report/sole/sole-business/sole-business-loss-report.js +7 -6
- package/esm2015/lib/models/service-subscription/service-subscription.js +1 -6
- package/esm2015/lib/models/sole/sole-invoice.js +1 -2
- package/esm2015/lib/models/tax-summary/tax-summary.js +13 -1
- package/esm2015/lib/models/transaction/transaction.js +7 -8
- package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
- package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
- package/esm2015/lib/services/asset/assets.service.js +3 -3
- package/esm2015/lib/services/auth/auth.service.js +3 -3
- package/esm2015/lib/services/auth/jwt.service.js +3 -3
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
- package/esm2015/lib/services/event/sse.service.js +3 -3
- package/esm2015/lib/services/export/export-formatter.service.js +3 -3
- package/esm2015/lib/services/header-title/header-title.service.js +3 -3
- package/esm2015/lib/services/http/address/address.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
- package/esm2015/lib/services/http/chat/chat.service.js +3 -3
- package/esm2015/lib/services/http/chat/message-document.service.js +3 -3
- package/esm2015/lib/services/http/chat/message.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
- package/esm2015/lib/services/http/document/document.service.js +3 -3
- package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/firm.service.js +3 -3
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
- package/esm2015/lib/services/http/loan/loan.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
- package/esm2015/lib/services/http/property/property.service.js +3 -3
- package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest.service.js +3 -3
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
- package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
- package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
- package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
- package/esm2015/lib/services/http/user/user.service.js +3 -3
- package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
- package/esm2015/lib/services/intercom/intercom.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
- package/esm2015/lib/services/preloader/preloader.service.js +3 -3
- package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
- package/esm2015/lib/services/toast/toast.service.js +3 -3
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +5 -6
- package/esm2015/lib/services/user/user-switcher.service.js +3 -3
- package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
- package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
- package/esm2015/lib/tt-core.module.js +4 -4
- package/fesm2015/taxtank-core.js +366 -373
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/collection.d.ts +1 -0
- package/lib/collections/depreciation.collection.d.ts +0 -3
- package/lib/collections/sole/sole-business-losses.collection.d.ts +2 -2
- package/lib/collections/transaction/index.d.ts +0 -1
- package/lib/collections/transaction/transaction.collection.d.ts +4 -2
- package/lib/forms/sole/bas-report.form.d.ts +0 -3
- package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts +4 -3
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts +3 -2
- package/lib/models/tax-summary/tax-summary.d.ts +3 -0
- package/lib/models/transaction/transaction.d.ts +1 -4
- package/lib/services/transaction/transaction-calculation.service.d.ts +2 -4
- package/package.json +1 -1
- package/esm2015/lib/collections/transaction/transaction-base.collection.js +0 -14
- package/lib/collections/transaction/transaction-base.collection.d.ts +0 -9
|
@@ -44,4 +44,5 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
|
|
|
44
44
|
removeBy(path: string, values: any): this;
|
|
45
45
|
minBy(path: string): Model;
|
|
46
46
|
maxBy(path: string): Model;
|
|
47
|
+
reduce(callback: (sum: number, item: Model) => number, init?: number): number;
|
|
47
48
|
}
|
|
@@ -5,9 +5,6 @@ import { DepreciationCapitalProject } from '../models/depreciation/depreciation-
|
|
|
5
5
|
import { TransactionCollection } from './transaction';
|
|
6
6
|
import { ChartAccountsCategoryEnum } from '../db/Enums';
|
|
7
7
|
import { VehicleClaim } from '../models';
|
|
8
|
-
/**
|
|
9
|
-
* @TODO extend from TransactionBaseCollection
|
|
10
|
-
*/
|
|
11
8
|
export declare class DepreciationCollection extends Collection<Depreciation> {
|
|
12
9
|
getSoleDepreciations(): this;
|
|
13
10
|
getNew(): this;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Collection } from '../collection';
|
|
2
2
|
import { SoleBusinessLoss } from '../../models';
|
|
3
|
-
import {
|
|
3
|
+
import { TransactionAllocationCollection, TransactionCollection } from '../transaction';
|
|
4
4
|
export declare class SoleBusinessLossesCollection extends Collection<SoleBusinessLoss> {
|
|
5
5
|
/**
|
|
6
6
|
* Business loss applied in current year, includes previous year losses and current year losses for businesses matching offset rule
|
|
7
7
|
*/
|
|
8
|
-
calculateBusinessLossApplied(transactions:
|
|
8
|
+
calculateBusinessLossApplied(transactions: TransactionCollection, allocations: TransactionAllocationCollection): number;
|
|
9
9
|
/**
|
|
10
10
|
* Get business claim amounts that can be applied to be reduced by prior year business losses:
|
|
11
11
|
* businesses with income or businesses with a loss, but which met the non-commercial loss rules
|
|
@@ -8,12 +8,10 @@ import { Collection } from '../collection';
|
|
|
8
8
|
import { ChartData } from '../../models/chart/chart-data';
|
|
9
9
|
import { Depreciation } from '../../models/depreciation/depreciation';
|
|
10
10
|
/**
|
|
11
|
-
* @TODO extend from TransactionBaseCollection
|
|
12
11
|
* Collection of transactions
|
|
13
12
|
*/
|
|
14
13
|
export declare class TransactionCollection extends ExportableCollection<Transaction> {
|
|
15
14
|
/**
|
|
16
|
-
* @TODO use TransactionBaseCollection instead
|
|
17
15
|
* we use depreciations as expense transactions a lot
|
|
18
16
|
*/
|
|
19
17
|
constructor(transactions?: Transaction[], depreciations?: Depreciation[]);
|
|
@@ -97,4 +95,8 @@ export declare class TransactionCollection extends ExportableCollection<Transact
|
|
|
97
95
|
calculateAllocatedClaimAmount(allocations: TransactionAllocationCollection): number;
|
|
98
96
|
calculateAllocatedGST(allocations: TransactionAllocationCollection): number;
|
|
99
97
|
getAllocatedAmount(allocations: TransactionAllocationCollection): number;
|
|
98
|
+
/**
|
|
99
|
+
* @TODO vik business transactions calculated differently, separated collection?
|
|
100
|
+
*/
|
|
101
|
+
getBusinessClaimAmount(businessId: number, allocations: TransactionAllocationCollection): number;
|
|
100
102
|
}
|
|
@@ -8,9 +8,6 @@ import { DepreciationCollection } from '../../collections/depreciation.collectio
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class BasReportForm extends AbstractForm<BasReport> {
|
|
10
10
|
private report;
|
|
11
|
-
/**
|
|
12
|
-
* @TODO vik TransactionBaseCollection here and everywhere
|
|
13
|
-
*/
|
|
14
11
|
constructor(report: BasReport, transactions: TransactionCollection, allocations: TransactionAllocationCollection, depreciations: DepreciationCollection);
|
|
15
12
|
submit(data?: object): BasReport;
|
|
16
13
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SoleBusinessLossesCollection, TransactionAllocationCollection, TransactionCollection } from '../../../../collections';
|
|
2
2
|
/**
|
|
3
3
|
* Sole business losses report
|
|
4
4
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form ("Losses" section)
|
|
5
5
|
*/
|
|
6
6
|
export declare class MyTaxLosses {
|
|
7
|
-
private transactions;
|
|
8
7
|
private businessLosses;
|
|
8
|
+
private transactions;
|
|
9
|
+
private allocations;
|
|
9
10
|
/**
|
|
10
11
|
* Losses carried forward from earlier income years
|
|
11
12
|
*/
|
|
@@ -14,5 +15,5 @@ export declare class MyTaxLosses {
|
|
|
14
15
|
* Losses applied to the current year (until profit gets to $0)
|
|
15
16
|
*/
|
|
16
17
|
businessLossApplied: number;
|
|
17
|
-
constructor(transactions:
|
|
18
|
+
constructor(businessLosses: SoleBusinessLossesCollection, transactions: TransactionCollection, allocations: TransactionAllocationCollection);
|
|
18
19
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SoleBusinessLoss } from '../../../sole';
|
|
2
|
-
import { TransactionCollection } from '../../../../collections
|
|
2
|
+
import { TransactionCollection } from '../../../../collections';
|
|
3
3
|
import { DepreciationCollection } from '../../../../collections/depreciation.collection';
|
|
4
4
|
import { AbstractModel } from '../../../../db/Models/abstract-model';
|
|
5
|
+
import { TransactionAllocation } from '../../../transaction';
|
|
5
6
|
/**
|
|
6
7
|
* Class with business loss details
|
|
7
8
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4641357930/Rules+when+a+business+makes+a+loss+Tax+Summary
|
|
@@ -16,5 +17,5 @@ export declare class SoleBusinessLossReport extends AbstractModel {
|
|
|
16
17
|
*/
|
|
17
18
|
closeBalance: number;
|
|
18
19
|
netIncome: number;
|
|
19
|
-
constructor(loss: SoleBusinessLoss, transactions: TransactionCollection, depreciations: DepreciationCollection);
|
|
20
|
+
constructor(loss: SoleBusinessLoss, transactions: TransactionCollection, depreciations: DepreciationCollection, allocations: TransactionAllocation[]);
|
|
20
21
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TaxSummarySection } from './tax-summary-section';
|
|
2
|
+
import { SoleBusiness } from '../sole';
|
|
2
3
|
/**
|
|
3
4
|
* @Todo refactor with base model when it will be provided
|
|
4
5
|
* Tax summary report structure
|
|
@@ -52,4 +53,6 @@ export declare class TaxSummary {
|
|
|
52
53
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
|
53
54
|
*/
|
|
54
55
|
get soleNetTotal(): number;
|
|
56
|
+
getDeferredBusinessLoss(business: SoleBusiness): number;
|
|
57
|
+
getBusinessCloseBalance(business: SoleBusiness): number;
|
|
55
58
|
}
|
|
@@ -43,10 +43,6 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
43
43
|
isPersonal(): boolean;
|
|
44
44
|
isInterest(): boolean;
|
|
45
45
|
get chartAccountsCategories(): ChartAccountsCategoryEnum[];
|
|
46
|
-
/**
|
|
47
|
-
* Check if transaction has 'Kms travelled for work' chart accounts category
|
|
48
|
-
*/
|
|
49
|
-
get isKmsChartAccountsCategory(): boolean;
|
|
50
46
|
/**
|
|
51
47
|
* Get transaction date
|
|
52
48
|
*/
|
|
@@ -91,6 +87,7 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
91
87
|
*/
|
|
92
88
|
get grossAmount(): number;
|
|
93
89
|
/**
|
|
90
|
+
* @TODO vik confusing logic demanded by Nicole, we need a better ux to fix it
|
|
94
91
|
* netAmount matches received payment (bankTransaction amount), includes gst and salary included adjustments
|
|
95
92
|
* ie user received 1000$ salary including 100$ tips. NetAmount=1000$, amount=900$, tips=100$
|
|
96
93
|
*/
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { TransactionAllocationCollection } from '../../collections
|
|
2
|
-
import { TransactionCollection } from '../../collections/transaction/transaction.collection';
|
|
3
|
-
import { Transaction } from '../../models/transaction/transaction';
|
|
1
|
+
import { TransactionAllocationCollection, TransactionCollection, SoleInvoiceCollection } from '../../collections';
|
|
4
2
|
import { Dictionary } from '../../models/dictionary/dictionary';
|
|
5
|
-
import {
|
|
3
|
+
import { Transaction } from '../../models';
|
|
6
4
|
import { CollectionDictionary } from '../../collections/collection-dictionary';
|
|
7
5
|
import { BankTransactionCollection } from '../../collections/bank-transaction.collection';
|
|
8
6
|
import * as i0 from "@angular/core";
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Collection } from '../collection';
|
|
2
|
-
import { Depreciation } from '../../models/depreciation/depreciation';
|
|
3
|
-
/**
|
|
4
|
-
* used to combine transactions/depreciations
|
|
5
|
-
*/
|
|
6
|
-
export class TransactionBaseCollection extends Collection {
|
|
7
|
-
getClaimAmountByBusinessId(businessId) {
|
|
8
|
-
return +this.filterBy('business.id', businessId).items.map((transaction) => transaction instanceof Depreciation ? -transaction.claimAmount : transaction['claimAmount']).reduce((sum, claimAmount) => sum + claimAmount, 0).toFixed(2);
|
|
9
|
-
}
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GdldFNvbGVUcmFuc2FjdGlvbnMoKTogdGhpcyB7XG4gICAgcmV0dXJuIHRoaXMuZmlsdGVyKCh0cmFuc2FjdGlvbjogVHJhbnNhY3Rpb25CYXNlKSA9PiB0cmFuc2FjdGlvbi5pc1NvbGVUYW5rKCkpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TransactionBase } from '../../db/Models/transaction/transaction-base';
|
|
2
|
-
import { Collection } from '../collection';
|
|
3
|
-
/**
|
|
4
|
-
* used to combine transactions/depreciations
|
|
5
|
-
*/
|
|
6
|
-
export declare class TransactionBaseCollection extends Collection<TransactionBase> {
|
|
7
|
-
getClaimAmountByBusinessId(businessId: number): number;
|
|
8
|
-
getSoleTransactions(): this;
|
|
9
|
-
}
|