taxtank-core 0.21.4 → 0.21.7
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 +195 -104
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/chart-accounts.collection.js +12 -0
- package/esm2015/lib/collections/depreciation.collection.js +3 -3
- package/esm2015/lib/forms/abstract.form.js +2 -2
- package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +3 -2
- package/esm2015/lib/models/report/my-tax/index.js +21 -0
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +13 -3
- package/esm2015/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.js +40 -0
- package/esm2015/lib/models/tax-summary/report-item.js +8 -1
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +12 -10
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +5 -6
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +8 -1
- package/esm2015/public-api.js +4 -17
- package/fesm2015/taxtank-core.js +174 -99
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/chart-accounts.collection.d.ts +8 -0
- package/lib/models/report/my-tax/index.d.ts +20 -0
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -0
- package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts +20 -0
- package/lib/models/tax-summary/report-item.d.ts +8 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -16
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Collection } from './collection';
|
|
2
|
+
import { ChartAccounts } from '../models/chart-accounts/chart-accounts';
|
|
3
|
+
export declare class ChartAccountsCollection extends Collection<ChartAccounts> {
|
|
4
|
+
/**
|
|
5
|
+
* Get 'Klms travelled for work' related chart account value
|
|
6
|
+
*/
|
|
7
|
+
getVehicleKlmsRate(year?: number): number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 'My Tax' report related data (classes, enums, const, e.t.c)
|
|
3
|
+
*/
|
|
4
|
+
export * from './my-tax-business-or-losses/my-tax-business-or-losses';
|
|
5
|
+
export * from './my-tax-deductions/my-tax-deductions';
|
|
6
|
+
export * from './my-tax-deductions/deduction-fields.const';
|
|
7
|
+
export * from './my-tax-deductions/deduction-self-education-type.enum';
|
|
8
|
+
export * from './my-tax-deductions/deduction-clothing-type.enum';
|
|
9
|
+
export * from './my-tax-dividends/my-tax-dividends';
|
|
10
|
+
export * from './my-tax-employee-share-schemes/my-tax-employee-share-schemes';
|
|
11
|
+
export * from './my-tax-estimate/my-tax-estimate';
|
|
12
|
+
export * from './my-tax-income-statements/my-tax-income-statements';
|
|
13
|
+
export * from './my-tax-income-tests/my-tax-income-tests';
|
|
14
|
+
export * from './my-tax-interest/my-tax-interest';
|
|
15
|
+
export * from './my-tax-losses/my-tax-losses';
|
|
16
|
+
export * from './my-tax-offsets/my-tax-offsets';
|
|
17
|
+
export * from './my-tax-other-income/my-tax-other-income';
|
|
18
|
+
export * from './my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts';
|
|
19
|
+
export * from './my-tax-rent/my-tax-rent';
|
|
20
|
+
export * from './ato-links';
|
|
@@ -31,6 +31,7 @@ export declare class MyTaxDeductions {
|
|
|
31
31
|
forestryManagedInvestmentSchemesDeductionsTotalAmount: number;
|
|
32
32
|
otherDeductionsTotalAmount: number;
|
|
33
33
|
constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim, vehicleClaimRate: number);
|
|
34
|
+
private getVehicleExpensesTotalAmount;
|
|
34
35
|
private setVehicleClaimData;
|
|
35
36
|
/**
|
|
36
37
|
* Total amount from Other work related expenses and Tools & equipment depreciations
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReportItem } from '../../../tax-summary/report-item';
|
|
2
|
+
import { TaxSummary } from '../../../tax-summary/tax-summary';
|
|
3
|
+
/**
|
|
4
|
+
* @Todo add link to documentation about related fields, add comments to methods
|
|
5
|
+
*/
|
|
6
|
+
export declare class MyTaxEstimate {
|
|
7
|
+
taxableIncome: number;
|
|
8
|
+
taxPayable: number;
|
|
9
|
+
grossTaxPayable: number;
|
|
10
|
+
medicareLevy: number;
|
|
11
|
+
medicareLevySurcharge: number;
|
|
12
|
+
taxCredits: number;
|
|
13
|
+
lowMiddleIncomeTaxOffsets: number;
|
|
14
|
+
percentageOfTaxPaid: number;
|
|
15
|
+
taxOffsets: number;
|
|
16
|
+
netRefund: number;
|
|
17
|
+
static fromTaxSummary(taxSummary: TaxSummary): MyTaxEstimate;
|
|
18
|
+
static getLowMiddleIncomeTaxOffsets(taxOffsetsReportItem: ReportItem): number;
|
|
19
|
+
static getTaxOffsets(taxOffsetsReportItemAmount: number, lowMiddleIncomeTaxOffsets: number): number;
|
|
20
|
+
}
|
|
@@ -2,16 +2,23 @@ import { TaxReturnCategory } from '../../db/Models/tax-return/tax-return-categor
|
|
|
2
2
|
import { ReportItemDetails } from './report-item-details';
|
|
3
3
|
import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
|
|
4
4
|
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
5
|
+
import { Collection } from '../../collections/collection';
|
|
5
6
|
/**
|
|
7
|
+
* @Todo no base model - should be generated on backend side
|
|
6
8
|
* Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
|
|
7
9
|
* amount is comprised of. Example here shows an amount of $951.96 and also details of what this amount is comprised of:
|
|
8
10
|
*/
|
|
9
11
|
export declare class ReportItem extends AbstractModel {
|
|
10
12
|
amount: number;
|
|
11
|
-
details: ReportItemDetails[];
|
|
12
13
|
taxReturnCategory: TaxReturnCategory;
|
|
13
14
|
title: string;
|
|
14
15
|
items: ReportItemCollection;
|
|
16
|
+
/**
|
|
17
|
+
* @Todo Alex: We need to apply this everywhere - transform an array into a collection,
|
|
18
|
+
* but at the moment we can't do this due to inheritance from the base model.
|
|
19
|
+
* Potential solution: Inherit Collection from Array
|
|
20
|
+
*/
|
|
21
|
+
details: Collection<ReportItemDetails>;
|
|
15
22
|
/**
|
|
16
23
|
* Get amount for one income source
|
|
17
24
|
* @param name Name of income source for filter
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './lib/collections/collection';
|
|
|
9
9
|
export * from './lib/collections/account-setup-item.collection';
|
|
10
10
|
export * from './lib/collections/bank-account.collection';
|
|
11
11
|
export * from './lib/collections/bank-transaction.collection';
|
|
12
|
+
export * from './lib/collections/chart-accounts.collection';
|
|
12
13
|
export * from './lib/collections/client.collection';
|
|
13
14
|
export * from './lib/collections/client-movement.collection';
|
|
14
15
|
export * from './lib/collections/client-portfolio-report.collection';
|
|
@@ -248,22 +249,7 @@ export * from './lib/models/registration-invite/registration-invite';
|
|
|
248
249
|
export * from './lib/models/report/depreciation/depreciation-lvp-report-item';
|
|
249
250
|
export * from './lib/models/report/depreciation/depreciation-report-item';
|
|
250
251
|
export * from './lib/models/report/depreciation/depreciation-lvp-asset-type.enum';
|
|
251
|
-
export * from './lib/models/report/my-tax
|
|
252
|
-
export * from './lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses';
|
|
253
|
-
export * from './lib/models/report/my-tax/my-tax-deductions/my-tax-deductions';
|
|
254
|
-
export * from './lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum';
|
|
255
|
-
export * from './lib/models/report/my-tax/my-tax-deductions/deduction-fields.const';
|
|
256
|
-
export * from './lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum';
|
|
257
|
-
export * from './lib/models/report/my-tax/my-tax-dividends/my-tax-dividends';
|
|
258
|
-
export * from './lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes';
|
|
259
|
-
export * from './lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements';
|
|
260
|
-
export * from './lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests';
|
|
261
|
-
export * from './lib/models/report/my-tax/my-tax-interest/my-tax-interest';
|
|
262
|
-
export * from './lib/models/report/my-tax/my-tax-losses/my-tax-losses';
|
|
263
|
-
export * from './lib/models/report/my-tax/my-tax-offsets/my-tax-offsets';
|
|
264
|
-
export * from './lib/models/report/my-tax/my-tax-other-income/my-tax-other-income';
|
|
265
|
-
export * from './lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts';
|
|
266
|
-
export * from './lib/models/report/my-tax/my-tax-rent/my-tax-rent';
|
|
252
|
+
export * from './lib/models/report/my-tax';
|
|
267
253
|
export * from './lib/models/report/property/property-report-item';
|
|
268
254
|
export * from './lib/models/report/property/property-report-item-transaction';
|
|
269
255
|
export * from './lib/models/report/vehicle-expense/vehicle-expense';
|
|
@@ -327,6 +313,7 @@ export * from './lib/services/http/chat/message-document/message-document.servic
|
|
|
327
313
|
export * from './lib/services/http/firm/client-invite/client-invite.service';
|
|
328
314
|
export * from './lib/services/http/firm/client-movement/client-movement.service';
|
|
329
315
|
export * from './lib/services/http/firm/portfolio-report/client-portfolio-report.service';
|
|
316
|
+
export * from './lib/services/http/firm/portfolio-report/client-portfolio-report.service';
|
|
330
317
|
export * from './lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service';
|
|
331
318
|
export * from './lib/services/http/depreciation/depreciation.service';
|
|
332
319
|
export * from './lib/services/http/document/document-folder/document-folder.service';
|