taxtank-core 0.30.62 → 0.30.64

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 (27) hide show
  1. package/esm2020/lib/collections/asset-sale.collection.mjs +11 -1
  2. package/esm2020/lib/collections/collection.mjs +1 -6
  3. package/esm2020/lib/collections/holding/holding-sale.collection.mjs +6 -2
  4. package/esm2020/lib/collections/holding/holding-type.collection.mjs +1 -4
  5. package/esm2020/lib/collections/holding/holding.collection.mjs +1 -4
  6. package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.mjs +7 -0
  7. package/esm2020/lib/db/Enums/chart-accounts/index.mjs +2 -1
  8. package/esm2020/lib/forms/report/my-tax/my-tax-cgt.form.mjs +5 -13
  9. package/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +3 -2
  10. package/esm2020/lib/forms/sole/sole-invoice.form.mjs +5 -4
  11. package/esm2020/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.mjs +2 -1
  12. package/esm2020/lib/models/transaction/transaction-meta-field.mjs +8 -1
  13. package/fesm2015/taxtank-core.mjs +40 -29
  14. package/fesm2015/taxtank-core.mjs.map +1 -1
  15. package/fesm2020/taxtank-core.mjs +40 -29
  16. package/fesm2020/taxtank-core.mjs.map +1 -1
  17. package/lib/collections/asset-sale.collection.d.ts +1 -0
  18. package/lib/collections/collection.d.ts +0 -4
  19. package/lib/collections/holding/holding-type.collection.d.ts +0 -1
  20. package/lib/collections/holding/holding.collection.d.ts +0 -1
  21. package/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.d.ts +5 -0
  22. package/lib/db/Enums/chart-accounts/index.d.ts +1 -0
  23. package/lib/forms/sole/sole-invoice-item.form.d.ts +1 -1
  24. package/lib/forms/sole/sole-invoice.form.d.ts +2 -2
  25. package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts +1 -0
  26. package/lib/models/transaction/transaction-meta-field.d.ts +3 -0
  27. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare class AssetSaleCollection extends Collection<AssetSale> {
8
8
  get noExemptionGrossCapitalProfit(): number;
9
9
  get taxableGrossCapitalProfit(): number;
10
10
  get currentYearCapitalLoss(): number;
11
+ calculateForwardCapitalLoss(priorCapitalLoss: number): number;
11
12
  /**
12
13
  * NET CAPITAL GAIN/(LOSS) AFTER CONCESSIONS & DISCOUNTS
13
14
  */
@@ -52,8 +52,4 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
52
52
  maxBy(path: string): Model;
53
53
  reduce(callback: (sum: number, item: Model) => number, init?: number): number;
54
54
  slice(from: number, to: number): this;
55
- /**
56
- * Method that default sort. Empty by default. Should be redefined by child services if required
57
- */
58
- defaultSort(): void;
59
55
  }
@@ -2,5 +2,4 @@ import { HoldingType } from '../../models';
2
2
  import { Collection } from '../collection';
3
3
  export declare class HoldingTypeCollection extends Collection<HoldingType> {
4
4
  getOthers(): this;
5
- defaultSort(): void;
6
5
  }
@@ -12,5 +12,4 @@ export declare class HoldingCollection extends ExportableCollection<Holding> {
12
12
  get marketValue(): number;
13
13
  getGrowthCoefficient(): number;
14
14
  getUnsold(): this;
15
- defaultSort(): void;
16
15
  }
@@ -0,0 +1,5 @@
1
+ export declare enum ChartAccountsInvoiceExpenseEnum {
2
+ PAYG_INSTALLMENTS = 878,
3
+ CONTRACTORS_COMMISSION = 676,
4
+ SUPPERANNUATION = 677
5
+ }
@@ -12,3 +12,4 @@ export * from './chart-accounts-salary-included-list.enum';
12
12
  export * from './chart-accounts-type.enum';
13
13
  export * from './chart-accounts-keep-sign.enum';
14
14
  export * from './chart-accounts-holding-untaxed-income-list.enum';
15
+ export * from './chart-accounts-invoice-expense.enum';
@@ -2,5 +2,5 @@ import { AbstractForm } from '../abstract.form';
2
2
  import { SoleInvoiceItem } from '../../models';
3
3
  export declare class SoleInvoiceItemForm extends AbstractForm<SoleInvoiceItem> {
4
4
  static maxDescriptionLength: number;
5
- constructor(item: SoleInvoiceItem);
5
+ constructor(item: SoleInvoiceItem, isIncome: boolean);
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { SoleInvoice, SoleInvoiceTemplate } from '../../models';
3
3
  import { UntypedFormArray, UntypedFormGroup } from '@angular/forms';
4
- import { IEventListener } from '../../interfaces/event-listener.interface';
4
+ import { IEventListener } from '../../interfaces';
5
5
  /**
6
6
  * Form is divided into two groups, since the creation of Sole invoice takes place in two steps:
7
7
  * a common invoice data and sole invoice items.
@@ -13,7 +13,7 @@ export declare class SoleInvoiceForm extends AbstractForm<SoleInvoice> implement
13
13
  constructor(invoice: SoleInvoice, soleDetailsGST: boolean, defaultTemplate: SoleInvoiceTemplate);
14
14
  get items(): UntypedFormArray;
15
15
  listenEvents(): void;
16
- addItem(): void;
16
+ addItem(isIncome: boolean): void;
17
17
  removeItem(index: number): void;
18
18
  submit(data?: object): SoleInvoice;
19
19
  /**
@@ -14,6 +14,7 @@ export declare class MyTaxCgt {
14
14
  * Loss collected over the years
15
15
  */
16
16
  netCapitalLoss: number;
17
+ forwardCapitalLoss: number;
17
18
  static createFrom(propertySales: PropertySaleCollection, holdingSales: HoldingSaleCollection, clientCapitalLoss: number): MyTaxCgt;
18
19
  /**
19
20
  * Exemption is applicable for PPR sales and properties acquired before Property.preCGTAssetDate
@@ -1,5 +1,8 @@
1
1
  import { TransactionMetaField as TransactionMetaFieldBase } from '../../db/Models/transaction/transaction-meta-field';
2
2
  import { ChartAccountsMetaField } from '../chart-accounts';
3
+ import { Transaction } from '../../db/Models';
3
4
  export declare class TransactionMetaField extends TransactionMetaFieldBase {
4
5
  metaField: ChartAccountsMetaField;
6
+ transaction: Transaction;
7
+ chartAccountsMetaField: ChartAccountsMetaField;
5
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.62",
3
+ "version": "0.30.64",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",