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.
Files changed (26) hide show
  1. package/bundles/taxtank-core.umd.js +33 -17
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/tax-summary/report-item.collection.js +2 -2
  4. package/esm2015/lib/collections/tax-summary/tax-return-categories.const.js +5 -4
  5. package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +4 -1
  6. package/esm2015/lib/db/Models/depreciation/depreciation.js +1 -1
  7. package/esm2015/lib/db/Models/transaction/transaction-base.js +8 -1
  8. package/esm2015/lib/db/Models/transaction/transaction.js +1 -1
  9. package/esm2015/lib/interfaces/asset-type.enum.js +8 -4
  10. package/esm2015/lib/models/chart-accounts/chart-accounts.js +7 -1
  11. package/esm2015/lib/models/depreciation/depreciation-receipt.js +2 -2
  12. package/esm2015/lib/models/document/document.js +2 -2
  13. package/esm2015/lib/models/property/property-document.js +2 -2
  14. package/esm2015/lib/models/sole/sole-invoice-item.js +1 -5
  15. package/esm2015/lib/models/sole/sole-invoice.js +4 -3
  16. package/esm2015/lib/models/transaction/transaction-receipt.js +2 -2
  17. package/fesm2015/taxtank-core.js +33 -17
  18. package/fesm2015/taxtank-core.js.map +1 -1
  19. package/lib/db/Enums/tax-return-category-list.enum.d.ts +3 -0
  20. package/lib/db/Models/depreciation/depreciation.d.ts +1 -0
  21. package/lib/db/Models/transaction/transaction-base.d.ts +8 -2
  22. package/lib/db/Models/transaction/transaction.d.ts +1 -0
  23. package/lib/interfaces/asset-type.enum.d.ts +8 -3
  24. package/lib/models/chart-accounts/chart-accounts.d.ts +6 -0
  25. package/lib/models/sole/sole-invoice-item.d.ts +0 -4
  26. package/package.json +1 -1
@@ -54,5 +54,8 @@ export declare enum TaxReturnCategoryListEnum {
54
54
  TAX_INSTALMENTS = 25,
55
55
  FRANKING_CREDITS = 26,
56
56
  TAX_OFFSETS = 27,
57
+ TAX_OFFSETS_LOW = 61,
58
+ TAX_OFFSETS_MIDDLE = 62,
59
+ TAX_OFFSETS_SOLE = 63,
57
60
  TAX_PAYABLE = 28
58
61
  }
@@ -41,4 +41,5 @@ export declare class Depreciation extends TransactionBase {
41
41
  createdBy?: User;
42
42
  updatedBy?: User;
43
43
  business?: SoleBusiness;
44
+ isGST?: boolean;
44
45
  }
@@ -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?: 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
  }
@@ -42,4 +42,5 @@ export declare class Transaction extends TransactionBase {
42
42
  createdBy?: User;
43
43
  updatedBy?: User;
44
44
  business?: SoleBusiness;
45
+ isGST?: boolean;
45
46
  }
@@ -2,7 +2,12 @@
2
2
  * Enum with asset types
3
3
  */
4
4
  export declare enum AssetTypeEnum {
5
- RECEIPTS = "receipts",
6
- DOCUMENTS = "documents",
7
- MESSAGE = "message"
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.38",
3
+ "version": "0.28.41",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",