taxtank-core 0.28.65 → 0.28.67

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 (156) hide show
  1. package/bundles/taxtank-core.umd.js +789 -477
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/depreciation.collection.js +17 -1
  4. package/esm2015/lib/collections/transaction/transaction-base.collection.js +13 -1
  5. package/esm2015/lib/collections/transaction/transaction.collection.js +36 -8
  6. package/esm2015/lib/db/Enums/annual-frequency.enum.js +9 -0
  7. package/esm2015/lib/db/Enums/index.js +2 -1
  8. package/esm2015/lib/db/Models/sole/bas-report.js +3 -0
  9. package/esm2015/lib/db/Models/sole/sole-details.js +1 -1
  10. package/esm2015/lib/db/Models/transaction/transaction-base.js +25 -4
  11. package/esm2015/lib/forms/abstract.form.js +5 -2
  12. package/esm2015/lib/forms/address/address.form.js +22 -1
  13. package/esm2015/lib/forms/sole/bas-report.form.js +62 -0
  14. package/esm2015/lib/forms/sole/index.js +2 -1
  15. package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
  16. package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  18. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  19. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  20. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  21. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  22. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  23. package/esm2015/lib/models/address/address.js +27 -1
  24. package/esm2015/lib/models/address/index.js +4 -0
  25. package/esm2015/lib/models/address/states.enum.js +12 -0
  26. package/esm2015/lib/models/depreciation/depreciation.js +25 -3
  27. package/esm2015/lib/models/index.js +2 -1
  28. package/esm2015/lib/models/report/property/property-report-item-transaction.js +2 -2
  29. package/esm2015/lib/models/sole/bas-report.js +21 -0
  30. package/esm2015/lib/models/sole/index.js +2 -1
  31. package/esm2015/lib/models/transaction/transaction.js +21 -42
  32. package/esm2015/lib/services/account-setup/account-setup.service.js +3 -3
  33. package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
  34. package/esm2015/lib/services/asset/assets.service.js +3 -3
  35. package/esm2015/lib/services/auth/auth.service.js +3 -3
  36. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  37. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  38. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  39. package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
  40. package/esm2015/lib/services/event/sse.service.js +3 -3
  41. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  42. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  43. package/esm2015/lib/services/http/address/address.service.js +3 -3
  44. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +3 -3
  45. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +3 -3
  46. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  47. package/esm2015/lib/services/http/bank/bank.service.js +3 -3
  48. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  49. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
  50. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
  51. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
  52. package/esm2015/lib/services/http/chat/chat.service.js +3 -3
  53. package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
  54. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  55. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  56. package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
  57. package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
  58. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
  59. package/esm2015/lib/services/http/document/document.service.js +3 -3
  60. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  61. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  62. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  63. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  64. package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
  65. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
  66. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  67. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  68. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
  69. package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
  70. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
  71. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
  72. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  73. package/esm2015/lib/services/http/loan/loan.service.js +3 -3
  74. package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
  75. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
  76. package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
  77. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
  78. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
  79. package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
  80. package/esm2015/lib/services/http/property/property.service.js +3 -3
  81. package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
  82. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  83. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  84. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +21 -0
  85. package/esm2015/lib/services/http/sole/index.js +2 -1
  86. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
  87. package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
  88. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
  89. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
  90. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
  91. package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
  92. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  93. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +4 -5
  94. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +3 -3
  95. package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
  96. package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
  97. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
  98. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  99. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  100. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
  101. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  102. package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
  103. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  104. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  105. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
  106. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
  107. package/esm2015/lib/services/http/user/user.service.js +3 -3
  108. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
  109. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
  110. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
  111. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
  112. package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
  113. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  114. package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
  115. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  116. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  117. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  118. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  119. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  120. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  121. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  122. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  123. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  124. package/esm2015/lib/services/toast/toast.service.js +3 -3
  125. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  126. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  127. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  128. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  129. package/esm2015/lib/tt-core.module.js +4 -4
  130. package/esm2015/public-api.js +1 -3
  131. package/fesm2015/taxtank-core.js +674 -432
  132. package/fesm2015/taxtank-core.js.map +1 -1
  133. package/lib/collections/depreciation.collection.d.ts +11 -0
  134. package/lib/collections/transaction/transaction-base.collection.d.ts +7 -0
  135. package/lib/collections/transaction/transaction.collection.d.ts +19 -2
  136. package/lib/db/Enums/annual-frequency.enum.d.ts +7 -0
  137. package/lib/db/Enums/index.d.ts +1 -0
  138. package/lib/db/Models/sole/bas-report.d.ts +15 -0
  139. package/lib/db/Models/sole/sole-details.d.ts +2 -0
  140. package/lib/db/Models/transaction/transaction-base.d.ts +6 -2
  141. package/lib/forms/abstract.form.d.ts +1 -0
  142. package/lib/forms/address/address.form.d.ts +11 -0
  143. package/lib/forms/sole/bas-report.form.d.ts +16 -0
  144. package/lib/forms/sole/index.d.ts +1 -0
  145. package/lib/models/address/address.d.ts +16 -0
  146. package/lib/models/address/index.d.ts +3 -0
  147. package/lib/models/address/states.enum.d.ts +10 -0
  148. package/lib/models/depreciation/depreciation.d.ts +5 -0
  149. package/lib/models/index.d.ts +1 -0
  150. package/lib/models/sole/bas-report.d.ts +10 -0
  151. package/lib/models/sole/index.d.ts +1 -0
  152. package/lib/models/transaction/transaction.d.ts +7 -16
  153. package/lib/services/http/sole/bas-report/bas-report.service.d.ts +11 -0
  154. package/lib/services/http/sole/index.d.ts +1 -0
  155. package/package.json +1 -1
  156. package/public-api.d.ts +0 -2
@@ -5,7 +5,18 @@ import { DepreciationCapitalProject } from '../models/depreciation/depreciation-
5
5
  import { TransactionCollection } from './transaction/transaction.collection';
6
6
  import { ChartAccountsCategoryEnum } from '../db/Enums/chart-accounts-category.enum';
7
7
  import { VehicleClaim } from '../models';
8
+ /**
9
+ * @TODO extend from TransactionBaseCollection
10
+ */
8
11
  export declare class DepreciationCollection extends Collection<Depreciation> {
12
+ /**
13
+ * Get business related transactions
14
+ */
15
+ getWithBusiness(): this;
16
+ /**
17
+ * assets purchased in the current financial year
18
+ */
19
+ getNew(): this;
9
20
  /**
10
21
  * Get total amount of all depreciations in the collection
11
22
  */
@@ -1,9 +1,16 @@
1
1
  import { TransactionBase } from '../../db/Models/transaction/transaction-base';
2
2
  import { Collection } from '../collection';
3
+ import { SoleBusiness } from '../../models';
4
+ /**
5
+ * used to combine transactions/depreciations
6
+ */
3
7
  export declare class TransactionBaseCollection extends Collection<TransactionBase> {
8
+ filterByBusiness(business: SoleBusiness): this;
4
9
  getClaimAmountByBusinessId(businessId: number): number;
5
10
  /**
6
11
  * Get business related transactions
7
12
  */
8
13
  getWithBusiness(): this;
14
+ getIncomeTransactions(): this;
15
+ getExpenseTransactions(): this;
9
16
  }
@@ -8,10 +8,21 @@ import { Collection } from '../collection';
8
8
  import { TransactionMetadata } from '../../models/transaction/transaction-metadata';
9
9
  import { VehicleClaim } from '../../models';
10
10
  import { ChartData } from '../../models/chart/chart-data';
11
+ import { Depreciation } from '../../models/depreciation/depreciation';
11
12
  /**
13
+ * @TODO extend from TransactionBaseCollection
12
14
  * Collection of transactions
13
15
  */
14
16
  export declare class TransactionCollection extends ExportableCollection<Transaction> {
17
+ /**
18
+ * @TODO use TransactionBaseCollection instead
19
+ * we use depreciations as expense transactions a lot
20
+ */
21
+ constructor(transactions?: Transaction[], depreciations?: Depreciation[]);
22
+ /**
23
+ * Get business related transactions
24
+ */
25
+ getWithBusiness(): this;
15
26
  /**
16
27
  * Get total amount of all transactions in the collection
17
28
  */
@@ -34,7 +45,6 @@ export declare class TransactionCollection extends ExportableCollection<Transact
34
45
  * Get summary of claim amounts
35
46
  */
36
47
  get claimAmount(): number;
37
- get grossAmount(): number;
38
48
  getByChartAccountsCategories(categories: ChartAccountsCategoryEnum[]): TransactionCollection;
39
49
  /**
40
50
  * Get transactions by month
@@ -46,8 +56,8 @@ export declare class TransactionCollection extends ExportableCollection<Transact
46
56
  */
47
57
  getTransactionsMetadata(): Collection<TransactionMetadata>;
48
58
  getIncomeTransactions(): TransactionCollection;
49
- get claimIncome(): number;
50
59
  getExpenseTransactions(): TransactionCollection;
60
+ get claimIncome(): number;
51
61
  get claimExpense(): number;
52
62
  getInterestTransactions(): TransactionCollection;
53
63
  get claimInterest(): number;
@@ -98,4 +108,11 @@ export declare class TransactionCollection extends ExportableCollection<Transact
98
108
  * Chart data for each month from fin year start till current month
99
109
  */
100
110
  getCashPositionChartData(): ChartData[];
111
+ /**
112
+ * user pays GST only from allocated part of income (the rest user didn't get, so don't have to pay)
113
+ *
114
+ * @param allocations
115
+ */
116
+ calculateAllocatedGST(allocations: TransactionAllocationCollection): number;
117
+ getAllocatedAmount(allocations: TransactionAllocationCollection): number;
101
118
  }
@@ -0,0 +1,7 @@
1
+ export declare enum AnnualFrequencyEnum {
2
+ ANNUAL = 1,
3
+ QUARTERLY = 3,
4
+ MONTHLY = 12,
5
+ FORTNIGHTLY = 26,
6
+ WEEKLY = 52
7
+ }
@@ -1 +1,2 @@
1
1
  export * from './document-type.enum';
2
+ export * from './annual-frequency.enum';
@@ -0,0 +1,15 @@
1
+ import { User } from '../user/user';
2
+ export declare class BasReport {
3
+ dateFrom?: Date;
4
+ dateTo?: Date;
5
+ income?: number;
6
+ incomeGST?: number;
7
+ expenseGST?: number;
8
+ salary?: number;
9
+ taxWithheldSalary?: number;
10
+ taxWithheldNoABN?: number;
11
+ paygTaxInstalment?: number;
12
+ fuelTaxCredit?: number;
13
+ id?: number;
14
+ user?: User;
15
+ }
@@ -1,5 +1,6 @@
1
1
  import { User } from '../user/user';
2
2
  import { AbstractModel } from '../abstract-model';
3
+ import { AnnualFrequencyEnum } from '../../Enums/annual-frequency.enum';
3
4
  export declare class SoleDetails extends AbstractModel {
4
5
  abn?: string;
5
6
  id?: number;
@@ -8,4 +9,5 @@ export declare class SoleDetails extends AbstractModel {
8
9
  updatedAt?: Date;
9
10
  deletedAt?: Date;
10
11
  user?: User;
12
+ reportingFrequency?: AnnualFrequencyEnum;
11
13
  }
@@ -21,6 +21,7 @@ export declare class TransactionBase extends AbstractModel {
21
21
  */
22
22
  file: File;
23
23
  claimPercent?: number;
24
+ get claimRatio(): number;
24
25
  get tankType(): TankTypeEnum;
25
26
  /**
26
27
  * Check if current tank is Property
@@ -34,6 +35,9 @@ export declare class TransactionBase extends AbstractModel {
34
35
  * Check if current tank is Sole
35
36
  */
36
37
  isSoleTank(): boolean;
37
- getAmountWithGst(): number;
38
- getGstAmount(): number;
38
+ get amountWithGst(): number;
39
+ get gstAmount(): number;
40
+ get gstClaimAmount(): number;
41
+ get grossAmount(): number;
42
+ get grossClaimAmount(): number;
39
43
  }
@@ -10,6 +10,7 @@ export declare abstract class AbstractForm<Model> extends FormGroup {
10
10
  * Initial form value for comparison with changes to check saved/unsaved state
11
11
  */
12
12
  initialValue: Model;
13
+ submitDisabledFields: boolean;
13
14
  protected modelClass: Type<Model>;
14
15
  model: Model;
15
16
  submitted: boolean;
@@ -16,6 +16,10 @@ export declare class AddressForm extends AbstractForm<Address> implements IEvent
16
16
  * Delay before corelogic request
17
17
  */
18
18
  static searchDelay: number;
19
+ /**
20
+ * Regarding corelogic formatting, street number should not contain spaces
21
+ */
22
+ static streetNumberPattern: RegExp;
19
23
  /**
20
24
  * Manual mode flag
21
25
  */
@@ -55,4 +59,11 @@ export declare class AddressForm extends AbstractForm<Address> implements IEvent
55
59
  * When corelogic is required we have to search address even for manual address
56
60
  */
57
61
  private listenManualFieldsChanges;
62
+ /**
63
+ * Address model has common field 'address' for street name and number because Corelogic returns this data as one string,
64
+ * but we need separated fields in the form.
65
+ *
66
+ * Listen street and number changes and fill address with concatinated values
67
+ */
68
+ private listenStreetFieldsChanges;
58
69
  }
@@ -0,0 +1,16 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { BasReport } from '../../models';
3
+ import { TransactionAllocationCollection, TransactionCollection } from '../../collections';
4
+ import { DepreciationCollection } from '../../collections/depreciation.collection';
5
+ /**
6
+ * business activity statement report
7
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/268533936/BAS+Report
8
+ */
9
+ export declare class BasReportForm extends AbstractForm<BasReport> {
10
+ private report;
11
+ submitDisabledFields: boolean;
12
+ /**
13
+ * @TODO vik TransactionBaseCollection here and everywhere
14
+ */
15
+ constructor(report: BasReport, transactions: TransactionCollection, allocations: TransactionAllocationCollection, depreciations: DepreciationCollection);
16
+ }
@@ -7,3 +7,4 @@ export * from './sole-details.form';
7
7
  export * from './sole-invoice.form';
8
8
  export * from './sole-invoice-item.form';
9
9
  export * from './sole-invoice-template.form';
10
+ export * from './bas-report.form';
@@ -6,6 +6,22 @@ export declare class Address extends AddressBase {
6
6
  suggestion: string;
7
7
  type: AddressTypeEnum;
8
8
  toString(): string;
9
+ /**
10
+ * Short address string
11
+ * 12/23 Jackson avenue
12
+ */
9
13
  get name(): string;
14
+ /**
15
+ * Full address string in corelogic format
16
+ * 12/23 Jackson avenue Sydney QLD 1212
17
+ */
10
18
  get nameLong(): string;
19
+ /**
20
+ * Street number may contain digits, letters, symbols '/' and '-', but not spaces
21
+ */
22
+ get streetNumber(): string;
23
+ /**
24
+ * Street name without number
25
+ */
26
+ get street(): string;
11
27
  }
@@ -0,0 +1,3 @@
1
+ export * from './address';
2
+ export * from './country';
3
+ export * from './states.enum';
@@ -0,0 +1,10 @@
1
+ export declare enum StatesEnum {
2
+ ACT = "ACT (The Australian Capital Territory)",
3
+ NSW = "NSW (New South Wales)",
4
+ NT = "NT (Northern Territory)",
5
+ SA = "SA (South Australia)",
6
+ TAS = "TAS (Tasmania)",
7
+ VIC = "VIC (Victoria)",
8
+ QLD = "QLD (Queensland)",
9
+ WA = "WA (Western Australia)"
10
+ }
@@ -64,4 +64,9 @@ export declare class Depreciation extends DepreciationBase implements Expense, I
64
64
  * @TODO Michael: remove and check everywhere in reports
65
65
  */
66
66
  get claimAmount(): number;
67
+ get amountWithGst(): number;
68
+ /**
69
+ * @TODO temporary hack, in future backend should return negative numbers
70
+ */
71
+ get grossAmount(): number;
67
72
  }
@@ -1,3 +1,4 @@
1
+ export * from './address';
1
2
  export * from './bank';
2
3
  export * from './sole';
3
4
  export * from './vehicle';
@@ -0,0 +1,10 @@
1
+ import { BasReport as BasReportBase } from "../../db/Models/sole/bas-report";
2
+ export declare class BasReport extends BasReportBase {
3
+ dateFrom: Date;
4
+ dateTo: Date;
5
+ get taxWithheldTotal(): number;
6
+ /**
7
+ * GST payable to the ATO, or refundable from the ATO in case it's negative
8
+ */
9
+ get gst(): number;
10
+ }
@@ -10,3 +10,4 @@ export * from './sole-invoice';
10
10
  export * from './sole-invoice-item';
11
11
  export * from './sole-invoice-send-data.interface';
12
12
  export * from './sole-invoice-template';
13
+ export * from './bas-report';
@@ -33,9 +33,16 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
33
33
  amount: number;
34
34
  isDebit(): boolean;
35
35
  isCredit(): boolean;
36
+ /**
37
+ * @TODO move to base collection
38
+ */
36
39
  isIncome(): boolean;
40
+ /**
41
+ * @TODO move to base collection
42
+ */
37
43
  isExpense(): boolean;
38
44
  isPersonal(): boolean;
45
+ isInterest(): boolean;
39
46
  get chartAccountsCategories(): ChartAccountsCategoryEnum[];
40
47
  /**
41
48
  * Check if transaction has 'Kms travelled for work' chart accounts category
@@ -49,15 +56,6 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
49
56
  * Check if transaction type is vehicle
50
57
  */
51
58
  isVehicleTransaction(): boolean;
52
- /**
53
- * Get net amount (clean amount after all deductions)
54
- * @TODO Alex: remove, this.amount should be netAmount actually
55
- */
56
- getNetAmount(): number;
57
- /**
58
- * Get gross income amount
59
- */
60
- getGrossIncome(): number;
61
59
  get taxFreeComponent(): number;
62
60
  get frankingCredit(): number;
63
61
  get eligibleForReduction(): number;
@@ -77,12 +75,6 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
77
75
  * @Todo modify 'metadata' property from array to Collection
78
76
  */
79
77
  getMetadataFieldValue(field: ChartAccountsMetadataListEnum): number;
80
- /**
81
- * Returns Net or Gross income amount based on provided income type
82
- * @param incomeType by which amount should be returned
83
- */
84
- private getIncomeAmountByType;
85
- isInterest(): boolean;
86
78
  isCash(): boolean;
87
79
  /**
88
80
  * Create Depreciation instance based on Transaction
@@ -102,7 +94,6 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
102
94
  getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
103
95
  /**
104
96
  * Total transaction amount including taxes and other additional amounts
105
- * @TODO Alex: refactor everything related to amounts
106
97
  */
107
98
  get grossAmount(): number;
108
99
  }
@@ -0,0 +1,11 @@
1
+ import { RestService } from '../../rest/rest.service';
2
+ import { BasReport as BasReportBase } from '../../../../db/Models/sole/bas-report';
3
+ import { BasReport } from '../../../../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BasReportService extends RestService<BasReportBase, BasReport> {
6
+ modelClass: typeof BasReport;
7
+ url: string;
8
+ isHydra: boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BasReportService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<BasReportService>;
11
+ }
@@ -7,3 +7,4 @@ export * from './sole-depreciation-method/sole-depreciation-method.service';
7
7
  export * from './sole-details/sole-details.service';
8
8
  export * from './sole-invoice/sole-invoice.service';
9
9
  export * from './sole-invoice-template/sole-invoice-template.service';
10
+ export * from './bas-report/bas-report.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.65",
3
+ "version": "0.28.67",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -143,8 +143,6 @@ export * from './lib/db/Enums/property/property-sale/tax-exemption-metadata.enum
143
143
  */
144
144
  export * from './lib/models';
145
145
  export * from './lib/models/account-setup/account-setup-item';
146
- export * from './lib/models/address/address';
147
- export * from './lib/models/address/country';
148
146
  export * from './lib/models/badge/badge';
149
147
  export * from './lib/models/badge/badge-color.enum';
150
148
  export * from './lib/models/borrowing-expense/borrowing-expense';