taxtank-core 0.18.1 → 0.19.2

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.
Files changed (110) hide show
  1. package/bundles/taxtank-core.umd.js +1091 -115
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +2 -1
  4. package/esm2015/lib/collections/depreciation.collection.js +6 -3
  5. package/esm2015/lib/collections/transaction/transaction.collection.js +11 -7
  6. package/esm2015/lib/db/Enums/chart-accounts-heading-list.enum.js +20 -1
  7. package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +37 -1
  8. package/esm2015/lib/db/Enums/chart-accounts-metadata-list.enum.js +4 -1
  9. package/esm2015/lib/forms/bank/bank-account.form.js +16 -3
  10. package/esm2015/lib/forms/index.js +2 -1
  11. package/esm2015/lib/forms/report/my-tax/index.js +14 -0
  12. package/esm2015/lib/forms/report/my-tax/my-tax-business-or-losses.form.js +10 -0
  13. package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +75 -0
  14. package/esm2015/lib/forms/report/my-tax/my-tax-dividends.form.js +23 -0
  15. package/esm2015/lib/forms/report/my-tax/my-tax-employee-share-schemes.form.js +14 -0
  16. package/esm2015/lib/forms/report/my-tax/my-tax-income-statements.form.js +92 -0
  17. package/esm2015/lib/forms/report/my-tax/my-tax-income-tests.form.js +10 -0
  18. package/esm2015/lib/forms/report/my-tax/my-tax-interest.form.js +12 -0
  19. package/esm2015/lib/forms/report/my-tax/my-tax-losses.form.js +10 -0
  20. package/esm2015/lib/forms/report/my-tax/my-tax-medicare.form.js +33 -0
  21. package/esm2015/lib/forms/report/my-tax/my-tax-offsets.form.js +10 -0
  22. package/esm2015/lib/forms/report/my-tax/my-tax-other-income.form.js +38 -0
  23. package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +32 -0
  24. package/esm2015/lib/forms/report/my-tax/my-tax-rent.form.js +13 -0
  25. package/esm2015/lib/models/bank/bank-account-property.js +2 -2
  26. package/esm2015/lib/models/pdf/pdf-settings.js +3 -1
  27. package/esm2015/lib/models/report/my-tax/ato-links.js +11 -0
  28. package/esm2015/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.js +8 -0
  29. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.js +13 -0
  30. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +57 -0
  31. package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.js +10 -0
  32. package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +72 -0
  33. package/esm2015/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.js +18 -0
  34. package/esm2015/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.js +24 -0
  35. package/esm2015/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.js +68 -0
  36. package/esm2015/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.js +8 -0
  37. package/esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js +11 -0
  38. package/esm2015/lib/models/report/my-tax/my-tax-losses/my-tax-losses.js +10 -0
  39. package/esm2015/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.js +8 -0
  40. package/esm2015/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.js +28 -0
  41. package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +31 -0
  42. package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +24 -0
  43. package/esm2015/lib/models/transaction/transaction.js +2 -1
  44. package/esm2015/lib/services/event/sse.service.js +4 -1
  45. package/esm2015/lib/services/http/user/user.service.js +1 -1
  46. package/esm2015/lib/services/pdf/pdf-from-dom-element/file-settings.js +19 -0
  47. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +35 -0
  48. package/esm2015/lib/services/pdf/pdf-from-table/file-settings.js +31 -0
  49. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +40 -0
  50. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +40 -0
  51. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +53 -0
  52. package/esm2015/lib/validators/index.js +2 -1
  53. package/esm2015/lib/validators/require-select.validator.js +15 -0
  54. package/esm2015/public-api.js +21 -2
  55. package/fesm2015/taxtank-core.js +995 -105
  56. package/fesm2015/taxtank-core.js.map +1 -1
  57. package/lib/collections/collection.d.ts +2 -2
  58. package/lib/collections/depreciation.collection.d.ts +3 -2
  59. package/lib/collections/transaction/transaction.collection.d.ts +5 -4
  60. package/lib/db/Enums/chart-accounts-heading-list.enum.d.ts +20 -1
  61. package/lib/db/Enums/chart-accounts-list.enum.d.ts +37 -1
  62. package/lib/db/Enums/chart-accounts-metadata-list.enum.d.ts +4 -1
  63. package/lib/forms/bank/bank-account.form.d.ts +7 -0
  64. package/lib/forms/index.d.ts +1 -0
  65. package/lib/forms/report/my-tax/index.d.ts +13 -0
  66. package/lib/forms/report/my-tax/my-tax-business-or-losses.form.d.ts +8 -0
  67. package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +5 -0
  68. package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts +5 -0
  69. package/lib/forms/report/my-tax/my-tax-employee-share-schemes.form.d.ts +5 -0
  70. package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts +7 -0
  71. package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts +8 -0
  72. package/lib/forms/report/my-tax/my-tax-interest.form.d.ts +5 -0
  73. package/lib/forms/report/my-tax/my-tax-losses.form.d.ts +8 -0
  74. package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts +9 -0
  75. package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts +8 -0
  76. package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts +5 -0
  77. package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts +5 -0
  78. package/lib/forms/report/my-tax/my-tax-rent.form.d.ts +5 -0
  79. package/lib/models/report/my-tax/ato-links.d.ts +6 -0
  80. package/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.d.ts +7 -0
  81. package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts +11 -0
  82. package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts +8 -0
  83. package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts +8 -0
  84. package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +39 -0
  85. package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts +9 -0
  86. package/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.d.ts +10 -0
  87. package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts +30 -0
  88. package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts +7 -0
  89. package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts +9 -0
  90. package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts +8 -0
  91. package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts +7 -0
  92. package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts +13 -0
  93. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +17 -0
  94. package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts +11 -0
  95. package/lib/models/transaction/transaction.d.ts +3 -1
  96. package/lib/services/event/sse.service.d.ts +3 -0
  97. package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts +6 -0
  98. package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts +13 -0
  99. package/lib/services/pdf/pdf-from-table/file-settings.d.ts +8 -0
  100. package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts +19 -0
  101. package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts +15 -0
  102. package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts +16 -0
  103. package/lib/validators/index.d.ts +1 -0
  104. package/lib/validators/require-select.validator.d.ts +5 -0
  105. package/package.json +2 -1
  106. package/public-api.d.ts +20 -1
  107. package/esm2015/lib/models/pdf/pdf-config.js +0 -43
  108. package/esm2015/lib/services/pdf/pdf.service.js +0 -99
  109. package/lib/models/pdf/pdf-config.d.ts +0 -8
  110. package/lib/services/pdf/pdf.service.d.ts +0 -29
@@ -16,12 +16,12 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
16
16
  get first(): Model;
17
17
  get last(): Model;
18
18
  getIds(): number[];
19
- sortBy(field?: string, isDesc?: boolean): void;
19
+ sortBy(field?: string, isDesc?: boolean): this;
20
20
  /**
21
21
  * Get total sum of items by field
22
22
  */
23
23
  sumBy(path: string): number;
24
- groupBy(path?: string): CollectionDictionary<Collection<Model>>;
24
+ groupBy(path?: string): CollectionDictionary<this>;
25
25
  indexBy(path: string): object;
26
26
  filter(callback: (item: Model) => boolean): this;
27
27
  filterBy(path: string, values: any): this;
@@ -19,8 +19,9 @@ export declare class DepreciationCollection extends Collection<Depreciation> {
19
19
  getWithoutCapitalProject(): DepreciationCollection;
20
20
  getWithoutBorrowingExpenses(): DepreciationCollection;
21
21
  getByChartAccountsCategories(categories: ChartAccountsCategoryEnum[]): this;
22
- getPlantEquipment(): DepreciationCollection;
23
- getCapitalDepreciations(): DepreciationCollection;
22
+ getAssets(): this;
23
+ getPlantEquipment(): this;
24
+ getCapitalDepreciations(): this;
24
25
  getBorrowingExpenseDepreciations(): DepreciationCollection;
25
26
  getWrittenOffDepreciations(): DepreciationCollection;
26
27
  getLowValuePoolDepreciations(): DepreciationCollection;
@@ -2,8 +2,10 @@ import { Transaction } from '../../models/transaction/transaction';
2
2
  import { TransactionAllocationCollection } from './transaction-allocation.collection';
3
3
  import { ChartAccountsCategoryEnum } from '../../db/Enums/chart-accounts-category.enum';
4
4
  import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
5
- import { ExportCell } from '../../models/export/export-cell';
6
5
  import { ExportableCollection } from '../exportable.collection';
6
+ import { ExportCell } from '../../models/export/export-cell';
7
+ import { Collection } from '../collection';
8
+ import { TransactionMetadata } from '../../models/transaction/transaction-metadata';
7
9
  /**
8
10
  * Collection of transactions
9
11
  */
@@ -38,10 +40,9 @@ export declare class TransactionCollection extends ExportableCollection<Transact
38
40
  */
39
41
  getByMonth(monthIndex: number): TransactionCollection;
40
42
  /**
41
- * get list of transactions filtered by chart accounts id
42
- * @param chartAccountsId chart accounts id for filtering
43
+ * Get collection of transactions metadata
43
44
  */
44
- getByChartAccountsId(chartAccountsId: number): Transaction[];
45
+ getTransactionsMetadata(): Collection<TransactionMetadata>;
45
46
  getIncomeTransactions(): TransactionCollection;
46
47
  get claimIncome(): number;
47
48
  getExpenseTransactions(): TransactionCollection;
@@ -1,3 +1,22 @@
1
1
  export declare enum ChartAccountsHeadingListEnum {
2
- ETP = 39
2
+ ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES = 2,
3
+ AUSTRALIAN_GOVERNMENT_ALLOWANCES_PAYMENTS = 4,
4
+ AUSTRALIAN_GOVERNMENT_PENSIONS_ALLOWANCES = 5,
5
+ WORK_RELATED_TRAVEL_EXPENSES = 10,
6
+ COMPULSORY_WORK_UNIFORM = 11,
7
+ PROTECTION_CLOTHING = 12,
8
+ OCCUPATIONAL_SPECIFIC_CLOTHING = 13,
9
+ SELF_EDUCATIONAL_EXPENSES = 14,
10
+ OTHER_WORK_RELATED_EXPENSES = 15,
11
+ SUBSCRIPTIONS = 16,
12
+ HOME_OFFICE_RUNNING = 17,
13
+ TOOLS_EQUIPMENT = 18,
14
+ HOME_OFFICE_OCCUPANCY = 19,
15
+ DONATIONS = 27,
16
+ PSI = 30,
17
+ BONUSES = 34,
18
+ OTHER_DEDUCTIONS = 37,
19
+ ETP = 39,
20
+ INTEREST_DEDUCTIONS = 47,
21
+ DIVIDEND_DEDUCTIONS = 48
3
22
  }
@@ -1,4 +1,17 @@
1
1
  export declare enum ChartAccountsListEnum {
2
+ PARTNERSHIP_EXPENSES = 156,
3
+ TRUST_EXPENSES = 157,
4
+ INTEREST_CHARGED_BY_ATO = 278,
5
+ LITIGATION_COSTS = 280,
6
+ ACCOUNTANT_TAX_AGENT_FEES = 282,
7
+ TRAVEL_COSTS_TO_SEE_YOUR_ACCOUNTANT_ADVISOR = 284,
8
+ ACCOUNTING_SOFTWARE_FEES = 285,
9
+ ADVISOR_FEES = 286,
10
+ INCOME_TAX_VARIATION = 292,
11
+ PSI_ABN_NOT_QUOTED = 294,
12
+ PSI_VOLUNTARY_AGREEMENT = 296,
13
+ RENTAL_INCOME = 298,
14
+ OTHER_RENTAL_INCOME = 300,
2
15
  INTEREST_ON_LOAN = 302,
3
16
  BORROWING_EXPENSES = 315,
4
17
  DIVIDENDS = 542,
@@ -15,6 +28,29 @@ export declare enum ChartAccountsListEnum {
15
28
  VEHICLE_LOAN_PRINCIPAL = 38,
16
29
  TAX_INSTALMENTS = 662,
17
30
  INTEREST_EARNED = 22,
31
+ PARTNERSHIP_INCOME = 566,
18
32
  TRUST_INCOME = 567,
19
- TAX_OFFSETS_N_R_A_S = 571
33
+ TAX_OFFSETS_N_R_A_S = 571,
34
+ LUMP_SUM_A_GENUINE_REDUNDANCY = 9,
35
+ LUMP_SUM_A_ALL_OTHER_PAYMENTS = 10,
36
+ LUMP_SUM_B = 11,
37
+ ATTRIBUTABLE_PSI = 20,
38
+ LUMP_SUM_PAYMENTS_IN_ARREARS = 519,
39
+ JURY_ATTENDANCE_FEES = 519,
40
+ FOREIGN_EXCHANGE_GAINS_NON_BUSINESS = 523,
41
+ ROYALTIES = 525,
42
+ TAXABLE_SCHOLARSHIPS_BURSARIES_GRANTS = 527,
43
+ SPECIAL_PROFESSION_INCOME = 529,
44
+ GAIN_ON_SALE_OF_VEHICLE_PREVIOUSLY_DEPRECIATED = 531,
45
+ ATO_INTEREST_PAID = 533,
46
+ PERSONAL_SUPER_CONTRIBUTIONS_DEDUCTIBLE = 536,
47
+ SOFTWARE_FEES_TAXTANK = 541,
48
+ AUSTRALIAN_ANNUITY_PAYMENTS = 559,
49
+ CODE_M_SUPERANNUATION_LUMP_SUM = 561,
50
+ EMPLOYEE_SHARE_SCHEME_INCOME = 564,
51
+ FORESTRY_MANAGED_INVESTMENT_SCHEMES_INCOME = 590,
52
+ FORESTRY_MANAGED_INVESTMENT_SCHEMES_DEDUCTION = 593,
53
+ ASSESSABLE_AMOUNT_CAPPED_DEFINED_BENEFIT = 639,
54
+ CODE_B_SUPERANNUATION_INCOME_STREAMS_DISABILITY = 558,
55
+ CODE_A_SUPERANNUATION_INCOME_STREAMS_DEATH = 640
20
56
  }
@@ -9,6 +9,9 @@ export declare enum ChartAccountsMetadataListEnum {
9
9
  TAX_FREE_COMPONENT = 18,
10
10
  YEARS_OF_SERVICE = 19,
11
11
  UNTAXED_ELEMENT = 24,
12
+ NOT_ELIGIBLE_FOR_DEDUCTION = 25,
12
13
  FRANKED = 26,
13
- TAX_OFFSETS_N_R_A_S = 29
14
+ UNFRANKED = 27,
15
+ TAX_OFFSETS_N_R_A_S = 29,
16
+ DISCOUNT_FROM_DEFERRED_SCHEMES = 32
14
17
  }
@@ -8,14 +8,21 @@ import { IEventListener } from '../../interfaces/event-listener.interface';
8
8
  */
9
9
  export declare class BankAccountForm extends AbstractForm<BankAccount> implements IEventListener {
10
10
  private bankAccount;
11
+ /**
12
+ * UI flag: user confirm he completed fill the form
13
+ * https://taxtank.atlassian.net/browse/TT-1917 (point 2)
14
+ */
15
+ isConfirmed: boolean;
11
16
  constructor(bankAccount?: BankAccount);
12
17
  listenEvents(): void;
13
18
  get properties(): BankAccountPropertiesForm;
14
19
  isLoan(): boolean;
15
20
  isPropertyTank(): boolean;
21
+ confirm(): void;
16
22
  private addPropertiesArray;
17
23
  /**
18
24
  * Add/Remove properties form array depending on selected tank type
19
25
  */
20
26
  private listenTankTypeChanges;
27
+ private listenValueChanges;
21
28
  }
@@ -14,3 +14,4 @@ export * from './user/password.form';
14
14
  export * from './user/reset-password.form';
15
15
  export * from './vehicle/vehicle.form';
16
16
  export * from './vehicle/vehicle-claim.form';
17
+ export * from './report/my-tax';
@@ -0,0 +1,13 @@
1
+ export * from './my-tax-business-or-losses.form';
2
+ export * from './my-tax-deductions.form';
3
+ export * from './my-tax-dividends.form';
4
+ export * from './my-tax-employee-share-schemes.form';
5
+ export * from './my-tax-income-statements.form';
6
+ export * from './my-tax-income-tests.form';
7
+ export * from './my-tax-interest.form';
8
+ export * from './my-tax-losses.form';
9
+ export * from './my-tax-medicare.form';
10
+ export * from './my-tax-offsets.form';
11
+ export * from './my-tax-other-income.form';
12
+ export * from './my-tax-partnerships-and-trusts.form';
13
+ export * from './my-tax-rent.form';
@@ -0,0 +1,8 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxBusinessOrLosses } from '../../../models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses';
3
+ /**
4
+ * @Todo waiting for the Sole tank implementation
5
+ */
6
+ export declare class MyTaxBusinessOrLossesForm extends AbstractForm<MyTaxBusinessOrLosses> {
7
+ constructor(businessOrLosses: MyTaxBusinessOrLosses);
8
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxDeductions } from '../../../models/report/my-tax/my-tax-deductions/my-tax-deductions';
3
+ export declare class MyTaxDeductionsForm extends AbstractForm<MyTaxDeductions> {
4
+ constructor(deductions: MyTaxDeductions);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxDividends } from '../../../models/report/my-tax/my-tax-dividends/my-tax-dividends';
3
+ export declare class MyTaxDividendsForm extends AbstractForm<MyTaxDividends> {
4
+ constructor(dividends: MyTaxDividends);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxEmployeeShareSchemes } from '../../../models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes';
3
+ export declare class MyTaxEmployeeShareSchemesForm extends AbstractForm<MyTaxEmployeeShareSchemes> {
4
+ constructor(shareSchemes: MyTaxEmployeeShareSchemes);
5
+ }
@@ -0,0 +1,7 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxIncomeStatements } from '../../../models/report/my-tax/my-tax-income-statements/my-tax-income-statements';
3
+ import { User } from '../../../models/user/user';
4
+ export declare class MyTaxIncomeStatementsForm extends AbstractForm<MyTaxIncomeStatements> {
5
+ private incomeStatements;
6
+ constructor(incomeStatements: MyTaxIncomeStatements, user: User);
7
+ }
@@ -0,0 +1,8 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxIncomeTests } from '../../../models/report/my-tax/my-tax-income-tests/my-tax-income-tests';
3
+ /**
4
+ * @Todo future functionality
5
+ */
6
+ export declare class MyTaxIncomeTestsForm extends AbstractForm<MyTaxIncomeTests> {
7
+ constructor(incomeTests: MyTaxIncomeTests);
8
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxInterest } from '../../../models/report/my-tax/my-tax-interest/my-tax-interest';
3
+ export declare class MyTaxInterestForm extends AbstractForm<MyTaxInterest> {
4
+ constructor(interest: MyTaxInterest);
5
+ }
@@ -0,0 +1,8 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxLosses } from '../../../models/report/my-tax/my-tax-losses/my-tax-losses';
3
+ /**
4
+ * @Todo waiting for Sole tank implementation
5
+ */
6
+ export declare class MyTaxLossesForm extends AbstractForm<MyTaxLosses> {
7
+ constructor(losses: MyTaxLosses);
8
+ }
@@ -0,0 +1,9 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { User } from '../../../models/user/user';
3
+ import { IEventListener } from '../../../interfaces/event-listener.interface';
4
+ export declare class MyTaxMedicareForm extends AbstractForm<object> implements IEventListener {
5
+ constructor(user: User);
6
+ listenEvents(): void;
7
+ private listenHasDependantsChanged;
8
+ private listenHasMedicareExemptionChanged;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxOffsets } from '../../../models/report/my-tax/my-tax-offsets/my-tax-offsets';
3
+ /**
4
+ * @Todo waiting for new chart accounts implemented (TT-1739 & TT-1740)
5
+ */
6
+ export declare class MyTaxOffsetsForm extends AbstractForm<MyTaxOffsets> {
7
+ constructor(offsets: MyTaxOffsets);
8
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxOtherIncome } from '../../../models/report/my-tax/my-tax-other-income/my-tax-other-income';
3
+ export declare class MyTaxOtherIncomeForm extends AbstractForm<MyTaxOtherIncome> {
4
+ constructor(otherIncome: MyTaxOtherIncome);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxPartnershipsAndTrusts } from '../../../models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts';
3
+ export declare class MyTaxPartnershipsAndTrustsForm extends AbstractForm<MyTaxPartnershipsAndTrusts> {
4
+ constructor(partnershipsAndTrusts: MyTaxPartnershipsAndTrusts);
5
+ }
@@ -0,0 +1,5 @@
1
+ import { AbstractForm } from '../../abstract.form';
2
+ import { MyTaxRent } from '../../../models/report/my-tax/my-tax-rent/my-tax-rent';
3
+ export declare class MyTaxRentForm extends AbstractForm<MyTaxRent> {
4
+ constructor(rent: MyTaxRent);
5
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Australian Taxation Office (ATO) website links
3
+ */
4
+ export declare const atoLinks: {
5
+ [key: string]: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo waiting for the Sole tank implementation
4
+ */
5
+ export declare class MyTaxBusinessOrLosses {
6
+ constructor(transactions: TransactionCollection);
7
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Enum with work-related clothing, laundry, dry cleaning expenses types
3
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
4
+ * ("Deductions" section, "D3. Work-related clothing, laundry and dry cleaning expenses" field)
5
+ */
6
+ export declare enum DeductionClothingTypeEnum {
7
+ COMPULSORY_C = 0,
8
+ NON_COMPULSORY_N = 1,
9
+ PROTECTION_P = 2,
10
+ OCCUPATIONAL_SPECIFIC_S = 3
11
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Const with the categories for my-tax 'Deductions' report.
3
+ * Grouped by ChartAccountsHeadingListEnum / ChartAccountsListEnum based on rules from documentation
4
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Deduction")
5
+ */
6
+ export declare const DEDUCTION_CATEGORIES: {
7
+ [key: string]: number[];
8
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Enum with work-related self-education expenses types
3
+ */
4
+ export declare enum DeductionSelfEducationTypeEnum {
5
+ IMPROVE_SKILLS_FOR_CURRENT_EARNINGS_K = 0,
6
+ INCOME_FROM_CURRENT_EARNINGS_I = 1,
7
+ OTHER_O = 2
8
+ }
@@ -0,0 +1,39 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ import { DepreciationCollection } from '../../../../collections/depreciation.collection';
3
+ import { VehicleClaim } from '../../../logbook/vehicle-claim';
4
+ import { DeductionClothingTypeEnum } from './deduction-clothing-type.enum';
5
+ import { DeductionSelfEducationTypeEnum } from './deduction-self-education-type.enum';
6
+ export declare class MyTaxDeductions {
7
+ transactions: TransactionCollection;
8
+ depreciations: DepreciationCollection;
9
+ vehicleClaim: VehicleClaim;
10
+ vehicleClaimRate: number;
11
+ workRelatedClothingExpenses: TransactionCollection;
12
+ workRelatedSelfEducationExpenses: TransactionCollection;
13
+ personalSuperContributions: TransactionCollection;
14
+ otherWorkRelatedExpensesTotalAmount: number;
15
+ klmsMethodClaimAmount: number;
16
+ totalExpensesAmount: number;
17
+ vehicleExpensesTotalAmount: number;
18
+ workRelatedTravelExpensesTotalAmount: number;
19
+ workRelatedClothingType: DeductionClothingTypeEnum;
20
+ workRelatedClothingTotalAmount: number;
21
+ workRelatedSelfEducationType: DeductionSelfEducationTypeEnum;
22
+ workRelatedSelfEducationTotalAmount: number;
23
+ lowValuePoolDeductionTotalAmount: number;
24
+ interestExpensesTotalAmount: number;
25
+ dividendExpensesTotalAmount: number;
26
+ donationsTotalAmount: number;
27
+ interestsChargedByATOTotalAmount: number;
28
+ litigationCostsTotalAmount: number;
29
+ otherManagingCostsTotalAmount: number;
30
+ personalSuperContributionsTotalAmount: number;
31
+ forestryManagedInvestmentSchemesDeductionsTotalAmount: number;
32
+ otherDeductionsTotalAmount: number;
33
+ constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim, vehicleClaimRate: number);
34
+ private setVehicleClaimData;
35
+ /**
36
+ * Total amount from Other work related expenses and Tools & equipment depreciations
37
+ */
38
+ private setOtherWorkRelatedExpensesTotalAmount;
39
+ }
@@ -0,0 +1,9 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxDividends {
3
+ transactions: TransactionCollection;
4
+ dividendsUnfrankedAmount: number;
5
+ dividendsFrankedAmount: number;
6
+ dividendsFrankingCreditsAmount: number;
7
+ dividendsTotalTax: number;
8
+ constructor(transactions: TransactionCollection);
9
+ }
@@ -0,0 +1,10 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxEmployeeShareSchemes {
3
+ transactions: TransactionCollection;
4
+ eligibleForReductionAmount: number;
5
+ notEligibleForReductionAmount: number;
6
+ discountFromDeferredSchemeAmount: number;
7
+ totalAssessableDiscountAmount: number;
8
+ shareSchemesTotalTax: number;
9
+ constructor(transactions: TransactionCollection);
10
+ }
@@ -0,0 +1,30 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ import { CollectionDictionary } from '../../../../collections/collection-dictionary';
3
+ export declare class MyTaxIncomeStatements {
4
+ transactionsByChartAccounts: CollectionDictionary<TransactionCollection>;
5
+ transactionsByChartAccountsHeadings: CollectionDictionary<TransactionCollection>;
6
+ salaryTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
7
+ etpTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
8
+ superannuationLumpSumTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
9
+ allowanceTotalAmount: number;
10
+ allowanceTotalTax: number;
11
+ lumpATransactionsTotalAmount: number;
12
+ lumpATransactionsTotalTax: number;
13
+ hasGenuineLumpATransactions: boolean;
14
+ hasOtherLumpATransactions: boolean;
15
+ lumpBTransactionsTotalAmount: number;
16
+ lumpBTransactionsTotalTax: number;
17
+ australianAllowancesAndPaymentsTotalAmount: number;
18
+ australianAllowancesAndPaymentsTotalTax: number;
19
+ australianPensionsAndAllowancesTotalAmount: number;
20
+ australianPensionsAndAllowancesTotalTax: number;
21
+ australianAnnuitiesSuperannuationIncomesTotalTax: number;
22
+ australianAnnuityPaymentsTaxed: number;
23
+ australianAnnuityPaymentsUntaxed: number;
24
+ assessableCappedDefinedBenefitTotalAmount: number;
25
+ superannuationIncomeStreamsTotalTaxed: number;
26
+ superannuationIncomeStreamsTotalUntaxed: number;
27
+ attributablePsiTransactionsTotalAmount: number;
28
+ attributablePsiTransactionsTotalTax: number;
29
+ constructor(transactions: TransactionCollection);
30
+ }
@@ -0,0 +1,7 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo future functionality
4
+ */
5
+ export declare class MyTaxIncomeTests {
6
+ constructor(transactions: TransactionCollection);
7
+ }
@@ -0,0 +1,9 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxInterest {
3
+ interestEarnedTransactions: TransactionCollection;
4
+ interestPaidTransactions: TransactionCollection;
5
+ interestEarnedTotalAmount: number;
6
+ interestEarnedTotalTax: number;
7
+ interestPaidTotalAmount: number;
8
+ constructor(transactions: TransactionCollection);
9
+ }
@@ -0,0 +1,8 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo waiting for Sole tank implementation
4
+ */
5
+ export declare class MyTaxLosses {
6
+ transactions: TransactionCollection;
7
+ constructor(transactions: TransactionCollection);
8
+ }
@@ -0,0 +1,7 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ /**
3
+ * @Todo waiting for new chart accounts implemented (TT-1739 & TT-1740)
4
+ */
5
+ export declare class MyTaxOffsets {
6
+ constructor(transactions: TransactionCollection);
7
+ }
@@ -0,0 +1,13 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxOtherIncome {
3
+ transactions: TransactionCollection;
4
+ lumpSumPaymentsInArrearsTransactions: TransactionCollection;
5
+ bonusesTotalAmount: number;
6
+ forestryManagedInvestmentSchemesIncomeTotalAmount: number;
7
+ lumpSumPaymentsInArrearsTotalTax: number;
8
+ specialProfessionIncomeTotalAmount: number;
9
+ category1TotalIncome: number;
10
+ atoInterestPaidTotalAmount: number;
11
+ gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount: number;
12
+ constructor(transactions: TransactionCollection);
13
+ }
@@ -0,0 +1,17 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ export declare class MyTaxPartnershipsAndTrusts {
3
+ transactions: TransactionCollection;
4
+ partnershipIncomes: TransactionCollection;
5
+ partnershipExpenses: TransactionCollection;
6
+ trustsIncomes: TransactionCollection;
7
+ trustsExpenses: TransactionCollection;
8
+ netNonPrimaryProductionAmount: number;
9
+ partnershipsNetIncome: number;
10
+ trustsNetIncome: number;
11
+ partnershipsSmallBusinessNetIncome: number;
12
+ trustsSmallBusinessNetIncome: number;
13
+ taxPaidTotal: number;
14
+ frankingCreditsTotal: number;
15
+ taxOffsetNRASTotalAmount: number;
16
+ constructor(transactions: TransactionCollection);
17
+ }
@@ -0,0 +1,11 @@
1
+ import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
+ import { DepreciationCollection } from '../../../../collections/depreciation.collection';
3
+ export declare class MyTaxRent {
4
+ propertyExpenses: TransactionCollection;
5
+ grossRentAmount: number;
6
+ interestDeductionsAmount: number;
7
+ capitalWorksDeductionsAmount: number;
8
+ otherRentalDeductionsAmount: number;
9
+ netRent: number;
10
+ constructor(transactions: TransactionCollection, depreciations: DepreciationCollection);
11
+ }
@@ -1,6 +1,7 @@
1
1
  import { Transaction as TransactionBase } from '../../db/Models/transaction/transaction';
2
2
  import { ChartAccountsCategoryEnum } from '../../db/Enums/chart-accounts-category.enum';
3
3
  import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
4
+ import { ChartAccountsMetadataListEnum } from '../../db/Enums/chart-accounts-metadata-list.enum';
4
5
  import { Property } from '../property/property';
5
6
  import { TransactionReceipt } from './transaction-receipt';
6
7
  import { ChartAccounts } from '../chart-accounts/chart-accounts';
@@ -70,8 +71,9 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
70
71
  /**
71
72
  * Get value of transaction metadata field
72
73
  * @param field for which value should be returned
74
+ * @Todo modify 'metadata' property from array to Collection
73
75
  */
74
- private getMetadataFieldValue;
76
+ getMetadataFieldValue(field: ChartAccountsMetadataListEnum): number;
75
77
  /**
76
78
  * Returns Net or Gross income amount based on provided income type
77
79
  * @param incomeType by which amount should be returned
@@ -2,6 +2,9 @@ import { NgZone } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { JwtService } from '../auth/jwt.service';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * server sent events service
7
+ */
5
8
  export declare class SseService {
6
9
  private zone;
7
10
  private jwtService;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Settings for generated PDF file from DOM elements
3
+ */
4
+ export declare const FILE_SETTINGS: {
5
+ [key: string]: any;
6
+ };
@@ -0,0 +1,13 @@
1
+ import { PdfSettings } from '../../../models/pdf/pdf-settings';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Service to generate and export PDF file from provided HTML elements
6
+ * The file is generated using the html2pdf library in order to get a canvas at the output,
7
+ * in which all the styles that the user sees on the page will be saved
8
+ */
9
+ export declare class PdfFromDomElementService {
10
+ export(elements: NodeListOf<HTMLElement>, fileSettings: PdfSettings): Observable<unknown>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfFromDomElementService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<PdfFromDomElementService>;
13
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Settings for generated PDF file from tables (HTML table, data-table, e.t.c.)
3
+ */
4
+ export declare const FILE_SETTINGS: {
5
+ [key: string]: {
6
+ [key: string]: any;
7
+ };
8
+ };
@@ -0,0 +1,19 @@
1
+ import { ExportDataTable } from '../../../../models/export/export-data-table';
2
+ import { PdfSettings } from '../../../../models/pdf/pdf-settings';
3
+ import { ExportFormatterService } from '../../../export/export-formatter.service';
4
+ import { PdfFromTableService } from '../pdf-from-table.service';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Service to generate and export PDF file from provided array-like data tables
8
+ */
9
+ export declare class PdfFromDataTableService extends PdfFromTableService {
10
+ private formatter;
11
+ constructor(formatter: ExportFormatterService);
12
+ export(dataTables: ExportDataTable[], fileSettings: PdfSettings): void;
13
+ /**
14
+ * Generate PDF file from provided list of data tables
15
+ */
16
+ private generate;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfFromDataTableService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<PdfFromDataTableService>;
19
+ }
@@ -0,0 +1,15 @@
1
+ import { PdfSettings } from '../../../../models/pdf/pdf-settings';
2
+ import { PdfFromTableService } from '../pdf-from-table.service';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Service to generate and export PDF file from provided HTML tables
6
+ */
7
+ export declare class PdfFromHtmlTableService extends PdfFromTableService {
8
+ export(tables: NodeListOf<HTMLTableElement>, fileSettings: PdfSettings): void;
9
+ /**
10
+ * Generate PDF file from provided list of HTML tables
11
+ */
12
+ private generateFile;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfFromHtmlTableService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<PdfFromHtmlTableService>;
15
+ }