taxtank-core 1.0.34 → 1.0.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.0.2",
@@ -1,4 +1,7 @@
1
1
  import { TaxReturnCategoryListEnum } from '../../db/Enums';
2
+ /**
3
+ * @TODO vik check (tax_return_category/tax_return_item/chart_accounts)
4
+ */
2
5
  export declare const TAX_RETURN_CATEGORIES: {
3
6
  [key: string]: {
4
7
  [key: string]: TaxReturnCategoryListEnum[];
@@ -12,13 +12,10 @@ export declare enum TaxReturnCategoryListEnum {
12
12
  DIVIDENDS = 6,
13
13
  SHARE_SCHEMES = 35,
14
14
  GROSS_RENT = 8,
15
- PARTNERSHIPS_TRUSTS = 13,
16
15
  PARTNERSHIPS = 36,
17
16
  TRUSTS = 37,
18
17
  PSI_SBE_INCOME = 14,
19
- SOLE_TRADER_BUSINESS_INCOME = 38,
20
18
  CAPITAL_GAINS = 15,
21
- FOREIGN_SOURCE_INCOME = 16,
22
19
  BONUSES_FROM_LIFE_INSURANCE = 17,
23
20
  FORESTRY_MANAGED_INVESTMENT_SCHEMES = 39,
24
21
  OTHER_INCOME = 40,
@@ -45,6 +42,7 @@ export declare enum TaxReturnCategoryListEnum {
45
42
  DEPRECIATION_EXPENSES = 56,
46
43
  MOTOR_VEHICLE_EXPENSES = 57,
47
44
  ALL_OTHER_EXPENSES = 58,
45
+ WORK_RELATED_DEPRECIATION = 69,
48
46
  GROSS_TAX_PAYABLE = 19,
49
47
  TAX_ON_TAXABLE_INCOME = 20,
50
48
  MEDICARE = 21,
@@ -60,5 +58,8 @@ export declare enum TaxReturnCategoryListEnum {
60
58
  TAX_PAYABLE = 28,
61
59
  BUSINESS_INCOME_OR_LOSS = 59,
62
60
  DEFERRED_BUSINESS_LOSSES = 60,
61
+ TAX_OFFSET_LOW = 61,
62
+ tAX_OFFSET_MIDDLE = 62,
63
+ TAX_OFFSET_SOLE = 63,
63
64
  DEFERRED_BUSINESS_LOSSES_FROM_PRIOR_YEAR = 64
64
65
  }
@@ -1,7 +1,8 @@
1
1
  export declare enum TaxSummarySectionEnum {
2
2
  WORK_TANK = 1,
3
3
  PROPERTY_TANK = 2,
4
- OTHER_TANK = 3,
5
- SOLE_TANK = 4,
6
- SUMMARY = 5
4
+ HOLDINGS_TANK = 3,
5
+ CAPITAL_GAINS = 4,
6
+ SOLE_TANK = 5,
7
+ SUMMARY = 6
7
8
  }
@@ -5,10 +5,11 @@ export declare enum YoutubeVideosEnum {
5
5
  SOLE_ONBOARDING = "rqfTQFGwkUM",
6
6
  WORK_ONBOARDING = "QEKolzS1B0U",
7
7
  PROPERTY_RENTAL = "E9NU14ndjhc",
8
- PROPERTY_DEPRECIATION = "E9NU14ndjhc",
9
- SOLE_VEHICLE_CLAIM = "E9NU14ndjhc",
10
- HOME_OFFICE = "E9NU14ndjhc",
11
- SOLE_DEPRECIATION = "E9NU14ndjhc",
12
- WORK_VEHICLE_CLAIM = "E9NU14ndjhc",
13
- WORK_DEPRECIATION = "E9NU14ndjhc"
8
+ PROPERTY_DEPRECIATION = "_34lK9ooFzc",
9
+ VEHICLE_CLAIM = "4-6WaM83cw0",
10
+ SOLE_DEPRECIATION = "Bw3tx4miFF8",
11
+ SOLE_HOME_OFFICE = "fF8_kJHEKRE",
12
+ WORK_DEPRECIATION = "gNa9M4xovuI",
13
+ WORK_HOME_OFFICE = "qrQu4Yl72bU",
14
+ BANK_FEEDS = "meQmpw7ZY7c"
14
15
  }
@@ -61,6 +61,9 @@ export declare abstract class AbstractForm<Model, Controls extends ControlsInter
61
61
  * upgraded version of patchValue to skip duplicated changes
62
62
  */
63
63
  patchField(name: string, value: any): void;
64
+ patch(fields: {
65
+ [key: string]: any;
66
+ }): void;
64
67
  fieldChanged(name: string): boolean;
65
68
  addValidators(validators: ValidatorFn | ValidatorFn[], controls?: AbstractControl[]): void;
66
69
  removeValidators(validators: ValidatorFn | ValidatorFn[], controls?: AbstractControl[]): void;
@@ -0,0 +1,9 @@
1
+ import { HomeOfficeClaim, Transaction, TransactionAllocation } from '../../../models';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { IEventListener } from '../../../interfaces';
4
+ import { WorkTransactionForm } from '../work/work-transaction.form';
5
+ export declare class HoldingExpenseForm extends WorkTransactionForm implements IEventListener {
6
+ constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[], homeOfficeClaim: HomeOfficeClaim, controls?: {
7
+ [key: string]: AbstractControl;
8
+ });
9
+ }
@@ -5,4 +5,5 @@ export * from './sole/sole-income.form';
5
5
  export * from './work/work-income.form';
6
6
  export * from './work/work-expense.form';
7
7
  export * from './holding/holding-income.form';
8
+ export * from './holding/holding-expense.form';
8
9
  export * from './transaction-base-filter.form';
@@ -11,8 +11,8 @@ export declare class ChartAccounts extends ChartAccountsBase {
11
11
  static GSTRatio: number;
12
12
  static GSTCoefficient: number;
13
13
  static GSTPercent: number;
14
- static systemList: (ChartAccountsListEnum | BusinessChartAccountsEnum)[];
15
- static homeOfficeList: (ChartAccountsListEnum | BusinessChartAccountsEnum)[];
14
+ static systemList: (BusinessChartAccountsEnum | ChartAccountsListEnum)[];
15
+ static homeOfficeList: (BusinessChartAccountsEnum | ChartAccountsListEnum)[];
16
16
  heading: ChartAccountsHeading;
17
17
  metaFields: ChartAccountsMetaField[];
18
18
  values: ChartAccountsValue[];
@@ -8,7 +8,7 @@ import { SoleBusiness } from '../sole';
8
8
  export declare class TaxSummary {
9
9
  work: TaxSummarySection;
10
10
  property: TaxSummarySection;
11
- other: TaxSummarySection;
11
+ holdings: TaxSummarySection;
12
12
  sole: TaxSummarySection;
13
13
  summary: TaxSummarySection;
14
14
  projectedTaxPosition: number;
@@ -40,15 +40,15 @@ export declare class TaxSummary {
40
40
  */
41
41
  get propertyNetTotal(): number;
42
42
  /**
43
- * Other Net Cash = gross income – expenses – tax withheld - tax instalments
43
+ * Holdings Net Cash = gross income – expenses – tax withheld - tax instalments
44
44
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
45
45
  */
46
- get otherNetCash(): number;
46
+ get holdingsNetCash(): number;
47
47
  /**
48
- * Other Net Total = Gross income - expenses + tax offsets + tax instalments + franking credits
48
+ * Holding Net Total = Gross income - expenses + tax offsets + tax instalments + franking credits
49
49
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
50
50
  */
51
- get otherNetTotal(): number;
51
+ get holdingsNetTotal(): number;
52
52
  /**
53
53
  * Sole Net Cash = gross income – expenses
54
54
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main