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.
- package/esm2020/lib/collections/asset-sale.collection.mjs +11 -1
- package/esm2020/lib/collections/collection.mjs +1 -6
- package/esm2020/lib/collections/holding/holding-sale.collection.mjs +6 -2
- package/esm2020/lib/collections/holding/holding-type.collection.mjs +1 -4
- package/esm2020/lib/collections/holding/holding.collection.mjs +1 -4
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.mjs +7 -0
- package/esm2020/lib/db/Enums/chart-accounts/index.mjs +2 -1
- package/esm2020/lib/forms/report/my-tax/my-tax-cgt.form.mjs +5 -13
- package/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +3 -2
- package/esm2020/lib/forms/sole/sole-invoice.form.mjs +5 -4
- package/esm2020/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.mjs +2 -1
- package/esm2020/lib/models/transaction/transaction-meta-field.mjs +8 -1
- package/fesm2015/taxtank-core.mjs +40 -29
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +40 -29
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/asset-sale.collection.d.ts +1 -0
- package/lib/collections/collection.d.ts +0 -4
- package/lib/collections/holding/holding-type.collection.d.ts +0 -1
- package/lib/collections/holding/holding.collection.d.ts +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.d.ts +5 -0
- package/lib/db/Enums/chart-accounts/index.d.ts +1 -0
- package/lib/forms/sole/sole-invoice-item.form.d.ts +1 -1
- package/lib/forms/sole/sole-invoice.form.d.ts +2 -2
- package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts +1 -0
- package/lib/models/transaction/transaction-meta-field.d.ts +3 -0
- 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
|
}
|
|
@@ -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
|
|
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
|
}
|