taxtank-core 0.28.38 → 0.28.41
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 +33 -17
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/tax-summary/report-item.collection.js +2 -2
- package/esm2015/lib/collections/tax-summary/tax-return-categories.const.js +5 -4
- package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +4 -1
- package/esm2015/lib/db/Models/depreciation/depreciation.js +1 -1
- package/esm2015/lib/db/Models/transaction/transaction-base.js +8 -1
- package/esm2015/lib/db/Models/transaction/transaction.js +1 -1
- package/esm2015/lib/interfaces/asset-type.enum.js +8 -4
- package/esm2015/lib/models/chart-accounts/chart-accounts.js +7 -1
- package/esm2015/lib/models/depreciation/depreciation-receipt.js +2 -2
- package/esm2015/lib/models/document/document.js +2 -2
- package/esm2015/lib/models/property/property-document.js +2 -2
- package/esm2015/lib/models/sole/sole-invoice-item.js +1 -5
- package/esm2015/lib/models/sole/sole-invoice.js +4 -3
- package/esm2015/lib/models/transaction/transaction-receipt.js +2 -2
- package/fesm2015/taxtank-core.js +33 -17
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Enums/tax-return-category-list.enum.d.ts +3 -0
- package/lib/db/Models/depreciation/depreciation.d.ts +1 -0
- package/lib/db/Models/transaction/transaction-base.d.ts +8 -2
- package/lib/db/Models/transaction/transaction.d.ts +1 -0
- package/lib/interfaces/asset-type.enum.d.ts +8 -3
- package/lib/models/chart-accounts/chart-accounts.d.ts +6 -0
- package/lib/models/sole/sole-invoice-item.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Property } from '../property/property';
|
|
2
|
-
import { ChartAccounts } from '../chart-accounts/chart-accounts';
|
|
2
|
+
import { ChartAccounts as ChartAccountsBase } from '../chart-accounts/chart-accounts';
|
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
|
4
4
|
import { SoleBusiness } from '../sole/sole-business';
|
|
5
5
|
import { TankTypeEnum } from '../../Enums/tank-type.enum';
|
|
@@ -9,8 +9,12 @@ export declare class TransactionBase extends AbstractModel {
|
|
|
9
9
|
property?: Property;
|
|
10
10
|
business?: SoleBusiness;
|
|
11
11
|
date?: Date;
|
|
12
|
-
chartAccounts?:
|
|
12
|
+
chartAccounts?: ChartAccountsBase;
|
|
13
13
|
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* gst applies to sole trader expense/income, if he is registered and chartAccounts is eligible
|
|
16
|
+
*/
|
|
17
|
+
isGST?: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* could be File when just added new image
|
|
16
20
|
* @TODO Alex plainToClass doesn't work with File without this hack https://github.com/typestack/class-transformer/issues/1178
|
|
@@ -30,4 +34,6 @@ export declare class TransactionBase extends AbstractModel {
|
|
|
30
34
|
* Check if current tank is Sole
|
|
31
35
|
*/
|
|
32
36
|
isSoleTank(): boolean;
|
|
37
|
+
getAmountWithGst(): number;
|
|
38
|
+
getGstAmount(): number;
|
|
33
39
|
}
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
* Enum with asset types
|
|
3
3
|
*/
|
|
4
4
|
export declare enum AssetTypeEnum {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
TRANSACTION_RECEIPT = "transactionReceipt",
|
|
6
|
+
PROPERTY = "property",
|
|
7
|
+
DOCUMENT = "document",
|
|
8
|
+
MESSAGE = "message",
|
|
9
|
+
USER_PHOTO = "userPhoto",
|
|
10
|
+
PROPERTY_PHOTO = "propertyPhoto",
|
|
11
|
+
DEPRECIATION_RECEIPT = "depreciationReceipt",
|
|
12
|
+
FIRM_PHOTO = "firmPhoto"
|
|
8
13
|
}
|
|
@@ -4,6 +4,12 @@ import { ChartAccountsMetadata } from './chart-accounts-metadata';
|
|
|
4
4
|
import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
|
|
5
5
|
import { ChartAccountsValue } from './chart-accounts-value';
|
|
6
6
|
export declare class ChartAccounts extends ChartAccountsBase {
|
|
7
|
+
/**
|
|
8
|
+
* Australian GST percent value (VAT)
|
|
9
|
+
*/
|
|
10
|
+
static GSTRatio: number;
|
|
11
|
+
static GSTCoefficient: number;
|
|
12
|
+
static GSTPercent: number;
|
|
7
13
|
heading: ChartAccountsHeading;
|
|
8
14
|
metadata: ChartAccountsMetadata[];
|
|
9
15
|
/**
|
|
@@ -3,10 +3,6 @@ import { SoleInvoice } from './sole-invoice';
|
|
|
3
3
|
import { ChartAccounts } from '../chart-accounts/chart-accounts';
|
|
4
4
|
import { Transaction } from '../transaction/transaction';
|
|
5
5
|
export declare class SoleInvoiceItem extends SoleInvoiceItemBase {
|
|
6
|
-
/**
|
|
7
|
-
* GST percent value
|
|
8
|
-
*/
|
|
9
|
-
static GSTRatio: number;
|
|
10
6
|
invoice: SoleInvoice;
|
|
11
7
|
chartAccounts: ChartAccounts;
|
|
12
8
|
transaction: Transaction;
|