taxtank-core 0.28.104 → 0.28.107

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 (159) hide show
  1. package/bundles/taxtank-core.umd.js +1324 -929
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.js +17 -0
  4. package/esm2015/lib/db/Enums/index.js +2 -1
  5. package/esm2015/lib/forms/depreciation/depreciation.form.js +35 -0
  6. package/esm2015/lib/forms/depreciation/index.js +2 -0
  7. package/esm2015/lib/forms/form-validations.enum.js +12 -0
  8. package/esm2015/lib/forms/index.js +4 -1
  9. package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +16 -14
  10. package/esm2015/lib/forms/transaction/index.js +4 -0
  11. package/esm2015/lib/forms/transaction/messages.enum.js +5 -0
  12. package/esm2015/lib/forms/transaction/transaction-base.form.js +105 -0
  13. package/esm2015/lib/forms/transaction/transaction.form.js +12 -0
  14. package/esm2015/lib/forms/transaction/work-income.form.js +119 -0
  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 +15 -5
  23. package/esm2015/lib/models/chart-accounts/chart-accounts.js +37 -1
  24. package/esm2015/lib/models/chart-accounts/index.js +9 -0
  25. package/esm2015/lib/models/document/index.js +3 -1
  26. package/esm2015/lib/models/income-source/salary-forecast.js +4 -1
  27. package/esm2015/lib/models/index.js +3 -1
  28. package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +14 -31
  29. package/esm2015/lib/models/transaction/index.js +7 -0
  30. package/esm2015/lib/models/transaction/transaction.js +2 -3
  31. package/esm2015/lib/models/vehicle/vehicle-logbook.js +2 -1
  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 +13 -9
  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 +6 -7
  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-old.service.js +3 -3
  83. package/esm2015/lib/services/http/rest/rest.service.js +3 -3
  84. package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
  85. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
  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 +3 -3
  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 +4 -34
  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/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  115. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  116. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  117. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  118. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  119. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  120. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  121. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  122. package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
  123. package/esm2015/lib/services/toast/toast.service.js +3 -3
  124. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  125. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  126. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  127. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  128. package/esm2015/lib/tt-core.module.js +4 -4
  129. package/esm2015/lib/validators/current-fin-year.validator.js +14 -0
  130. package/esm2015/lib/validators/file.validator.js +27 -0
  131. package/esm2015/lib/validators/index.js +3 -1
  132. package/fesm2015/taxtank-core.js +1259 -925
  133. package/fesm2015/taxtank-core.js.map +1 -1
  134. package/lib/db/Enums/chart-accounts-salary-adjustments-list.enum.d.ts +15 -0
  135. package/lib/db/Enums/index.d.ts +1 -0
  136. package/lib/forms/depreciation/depreciation.form.d.ts +5 -0
  137. package/lib/forms/depreciation/index.d.ts +1 -0
  138. package/lib/forms/form-validations.enum.d.ts +9 -0
  139. package/lib/forms/index.d.ts +3 -0
  140. package/lib/forms/transaction/index.d.ts +3 -0
  141. package/lib/forms/transaction/messages.enum.d.ts +3 -0
  142. package/lib/forms/transaction/transaction-base.form.d.ts +28 -0
  143. package/lib/forms/transaction/transaction.form.d.ts +8 -0
  144. package/lib/forms/transaction/work-income.form.d.ts +21 -0
  145. package/lib/models/chart-accounts/chart-accounts.d.ts +8 -0
  146. package/lib/models/chart-accounts/index.d.ts +8 -0
  147. package/lib/models/document/index.d.ts +2 -0
  148. package/lib/models/income-source/salary-forecast.d.ts +1 -0
  149. package/lib/models/index.d.ts +2 -0
  150. package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +9 -14
  151. package/lib/models/transaction/index.d.ts +6 -0
  152. package/lib/models/transaction/transaction.d.ts +2 -2
  153. package/lib/services/http/bank/bank.service.d.ts +9 -5
  154. package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +1 -2
  155. package/lib/services/http/transaction/transaction.service.d.ts +0 -7
  156. package/lib/validators/current-fin-year.validator.d.ts +5 -0
  157. package/lib/validators/file.validator.d.ts +6 -0
  158. package/lib/validators/index.d.ts +2 -0
  159. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ export declare enum ChartAccountsSalaryAdjustmentsListEnum {
2
+ ALLOWANCE = 4,
3
+ TIPS = 5,
4
+ REIMBURSEMENTS = 555,
5
+ ADVANCE = 556,
6
+ POST_TAX_DEDUCTIONS_OTHER = 644,
7
+ PRE_TAX_DEDUCTIONS_OTHER = 645,
8
+ PHONE_ALLOWANCE = 646,
9
+ UNIFORM_ALLOWANCE = 647,
10
+ META_ALLOWANCE = 648,
11
+ TRAVEL_ALLOWANCE = 649,
12
+ OTHER_ALLOWANCE = 650,
13
+ LAFH = 651,
14
+ WORK_PLACE_GIVING = 653
15
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './document-type.enum';
2
2
  export * from './annual-frequency.enum';
3
+ export * from './chart-accounts-salary-adjustments-list.enum';
@@ -0,0 +1,5 @@
1
+ import { TransactionBaseForm } from '../transaction';
2
+ import { Depreciation } from '../../models/depreciation/depreciation';
3
+ export declare class DepreciationForm extends TransactionBaseForm<Depreciation> {
4
+ constructor(depreciation: Depreciation, registeredForGst: boolean);
5
+ }
@@ -0,0 +1 @@
1
+ export * from './depreciation.form';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * general validation rules
3
+ */
4
+ export declare enum FormValidationsEnum {
5
+ INPUT_MAX_LENGTH = 60,
6
+ TEXT_MAX_LENGTH = 300,
7
+ FILE_MAX_SIZE = 4194304,
8
+ FILE_ACCEPTED_TYPES = "Accepted file type: .doc .jpg .png .pdf .tiff .bmp .excel .csv"
9
+ }
@@ -17,3 +17,6 @@ export * from './property';
17
17
  export * from './report/my-tax';
18
18
  export * from './sole';
19
19
  export * from './vehicle';
20
+ export * from './form-validations.enum';
21
+ export * from './transaction';
22
+ export * from './depreciation';
@@ -0,0 +1,3 @@
1
+ export * from './transaction-base.form';
2
+ export * from './transaction.form';
3
+ export * from './work-income.form';
@@ -0,0 +1,3 @@
1
+ export declare enum MessagesEnum {
2
+ DATE_VALIDATION_ERROR = "The transaction date is before the ownership date, please update the date to confirm"
3
+ }
@@ -0,0 +1,28 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { AbstractForm } from '../abstract.form';
3
+ import { TransactionBase } from '../../db/Models/transaction/transaction-base';
4
+ /**
5
+ * @TODO refactor, move specific fields like property in separated forms
6
+ * @TODO remove useless getters
7
+ */
8
+ export declare class TransactionBaseForm<Model extends TransactionBase> extends AbstractForm<Model> {
9
+ registeredForGst: boolean;
10
+ constructor(transaction: Model, registeredForGst: boolean, controls?: {
11
+ [key: string]: AbstractControl;
12
+ });
13
+ private watchIsGst;
14
+ private watchAmountWithGST;
15
+ watchChartAccounts(): void;
16
+ private updateGstAmount;
17
+ private updateAmount;
18
+ private isGstApplicable;
19
+ private get amount();
20
+ private get amountWithGST();
21
+ private get isGST();
22
+ /**
23
+ * propertyClaimPercent for propertyExpense (except platform fees, which already include claimPercent),
24
+ * taxablePercent for others
25
+ * can be adjusted only for property/sole expenses
26
+ */
27
+ private updateClaimPercent;
28
+ }
@@ -0,0 +1,8 @@
1
+ import { Transaction } from '../../models';
2
+ import { TransactionBaseForm } from './transaction-base.form';
3
+ import { AbstractControl } from '@angular/forms';
4
+ export declare class TransactionForm extends TransactionBaseForm<Transaction> {
5
+ constructor(transaction: Transaction, registeredForGst: boolean, controls?: {
6
+ [key: string]: AbstractControl;
7
+ });
8
+ }
@@ -0,0 +1,21 @@
1
+ import { TransactionForm } from './transaction.form';
2
+ import { Transaction, TransactionAllocation } from '../../models';
3
+ import { IEventListener } from '../../interfaces/event-listener.interface';
4
+ export declare class WorkIncomeForm extends TransactionForm implements IEventListener {
5
+ constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[]);
6
+ listenEvents(): void;
7
+ private watchIncomeSource;
8
+ watchChartAccounts(): void;
9
+ /**
10
+ * depends on chartAccounts the form could include different extra fields
11
+ */
12
+ private buildMetadataForm;
13
+ addTransactionControl(transaction?: Transaction): void;
14
+ removeTransactionControl(index: number): void;
15
+ /**
16
+ * salary transactions might include adjustments (child transactions), like tips or donation.
17
+ * Adjustments inherit most of the fields from parent transaction
18
+ */
19
+ buildTransactions(): Transaction[];
20
+ submit(data?: object): Transaction;
21
+ }
@@ -3,6 +3,7 @@ import { ChartAccountsHeading } from './chart-accounts-heading';
3
3
  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
+ import { ChartAccountsTaxLabelsEnum } from './chart-accounts-tax-labels.enum';
6
7
  export declare class ChartAccounts extends ChartAccountsBase {
7
8
  /**
8
9
  * Australian GST percent value (VAT)
@@ -97,4 +98,11 @@ export declare class ChartAccounts extends ChartAccountsBase {
97
98
  * except vehicle expense, which is equal to vehicleClaim.workUsage and personal, which is equal to 0
98
99
  */
99
100
  isClaimPercentEditable(): boolean;
101
+ /**
102
+ * get label for transaction tax field depended on selected chart account.
103
+ * tax type depends on chart account heading or category.
104
+ */
105
+ getTaxLabel(): ChartAccountsTaxLabelsEnum;
106
+ isETP(): boolean;
107
+ isSalary(): boolean;
100
108
  }
@@ -0,0 +1,8 @@
1
+ export * from './chart-accounts';
2
+ export * from './chart-accounts-categories.const';
3
+ export * from './chart-accounts-category.e-collection';
4
+ export * from './chart-accounts-depreciation';
5
+ export * from './chart-accounts-heading';
6
+ export * from './chart-accounts-metadata';
7
+ export * from './chart-accounts-tax-labels.enum';
8
+ export * from './chart-accounts-value';
@@ -1,2 +1,4 @@
1
1
  export * from './document';
2
+ export * from './document-api-url-prefix.enum';
3
+ export * from './document-file-types.const';
2
4
  export * from './document-folder';
@@ -4,4 +4,5 @@ import { IIncomeSourceForecast } from '../../interfaces/income-source-forecast.i
4
4
  export declare class SalaryForecast extends SalaryForecastBase implements IIncomeSourceForecast {
5
5
  grossAmount: number;
6
6
  incomeSource: IncomeSource;
7
+ get taxWithheld(): number;
7
8
  }
@@ -3,3 +3,5 @@ export * from './bank';
3
3
  export * from './sole';
4
4
  export * from './vehicle';
5
5
  export * from './document';
6
+ export * from './chart-accounts';
7
+ export * from './transaction';
@@ -1,25 +1,20 @@
1
1
  import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
2
- import { IncomeSourceForecastTrustTypeEnum } from '../../../../db/Enums/income-source-forecast-trust-type.enum';
3
2
  import { IncomeSourceCollection } from '../../../../collections/income-source.collection';
4
3
  export declare class MyTaxPartnershipsAndTrusts {
5
4
  transactions: TransactionCollection;
6
5
  incomeSources: IncomeSourceCollection;
7
- partnershipIncomes: TransactionCollection;
8
- partnershipExpenses: TransactionCollection;
6
+ partnershipsIncomes: TransactionCollection;
7
+ partnershipsExpenses: TransactionCollection;
9
8
  trustsIncomes: TransactionCollection;
10
9
  trustsExpenses: TransactionCollection;
11
- trustType: IncomeSourceForecastTrustTypeEnum;
12
- netNonPrimaryProductionAmount: number;
13
- partnershipsNetIncome: number;
14
- trustsNetIncome: number;
15
- partnershipsSmallBusinessNetIncome: number;
16
- trustsSmallBusinessNetIncome: number;
17
- taxPaidTotal: number;
10
+ partnershipsIncomeTotalAmount: number;
11
+ partnershipsExpenseTotalAmount: number;
12
+ trustsIncomeTotalTax: number;
13
+ trustsIncomeTotalAmount: number;
14
+ trustsExpenseTotalAmount: number;
15
+ partnershipsNetNonPrimaryProductionAmount: number;
16
+ trustsNetNonPrimaryProductionAmount: number;
18
17
  frankingCreditsTotal: number;
19
18
  taxOffsetNRASTotalAmount: number;
20
19
  constructor(transactions: TransactionCollection, incomeSources: IncomeSourceCollection);
21
- /**
22
- * Get Income source forecast trust type, related to trust income with max amount
23
- */
24
- private getTrustType;
25
20
  }
@@ -0,0 +1,6 @@
1
+ export * from './income-amount-type.enum';
2
+ export * from './transaction';
3
+ export * from './transaction-allocation';
4
+ export * from './transaction-category.enum';
5
+ export * from './transaction-metadata';
6
+ export * from './transaction-receipt';
@@ -4,13 +4,13 @@ import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.e
4
4
  import { ChartAccountsMetadataListEnum } from '../../db/Enums/chart-accounts-metadata-list.enum';
5
5
  import { Property } from '../property/property';
6
6
  import { TransactionReceipt } from './transaction-receipt';
7
- import { ChartAccounts } from '../chart-accounts/chart-accounts';
7
+ import { ChartAccounts } from '../chart-accounts';
8
8
  import { IncomeSource } from '../income-source/income-source';
9
9
  import { TransactionMetadata } from './transaction-metadata';
10
10
  import { Loan } from '../loan/loan';
11
11
  import { TransactionAllocation } from './transaction-allocation';
12
12
  import { IReceipt } from '../../interfaces/receipt.interface';
13
- import { TransactionAllocationCollection } from '../../collections/transaction/transaction-allocation.collection';
13
+ import { TransactionAllocationCollection } from '../../collections';
14
14
  import { Depreciation } from '../depreciation/depreciation';
15
15
  import { Expense } from '../../interfaces/expense.interface';
16
16
  export declare class Transaction extends TransactionBase implements Expense, IReceipt {
@@ -1,16 +1,20 @@
1
1
  import { Bank as BankBase } from '../../../db/Models/bank/bank';
2
2
  import { Bank } from '../../../models/bank/bank';
3
- import { RestService } from '../rest/rest-old.service';
3
+ import { RestService } from '../rest';
4
4
  import { Observable } from 'rxjs';
5
+ import { Collection } from '../../../collections';
6
+ import { RestMethod } from '../rest';
5
7
  import * as i0 from "@angular/core";
6
8
  /**
7
9
  * Service that handling banks logic
8
10
  */
9
- export declare class BankService extends RestService<BankBase, Bank> {
11
+ export declare class BankService extends RestService<BankBase, Bank, Collection<Bank>> {
10
12
  modelClass: typeof Bank;
11
- url: string;
12
- isHydra: boolean;
13
- get(): Observable<Bank[]>;
13
+ collectionClass: typeof Collection;
14
+ entityUrl: string;
15
+ isApiPlatform: boolean;
16
+ disabledMethods: RestMethod[];
17
+ get(): Observable<Collection<Bank>>;
14
18
  static ɵfac: i0.ɵɵFactoryDeclaration<BankService, never>;
15
19
  static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
16
20
  }
@@ -19,9 +19,8 @@ export declare class ChartAccountsService {
19
19
  getChartAccounts(): Observable<ChartAccounts[]>;
20
20
  /**
21
21
  * Get list of chart accounts heading
22
- * @param categories
23
22
  */
24
- getChartAccountsHeadings(categories?: ChartAccountsCategoryEnum[]): Observable<ChartAccountsHeading[]>;
23
+ getChartAccountsHeadings(categories?: ChartAccountsCategoryEnum[], chartAccountsIds?: number[]): Observable<ChartAccountsHeading[]>;
25
24
  /**
26
25
  * Get heading of chart accounts by it Id
27
26
  * @param id
@@ -3,8 +3,6 @@ import { Observable } from 'rxjs';
3
3
  import { Transaction as TransactionBase } from '../../../db/Models/transaction/transaction';
4
4
  import { RestService } from '../rest/rest-old.service';
5
5
  import { Transaction } from '../../../models/transaction/transaction';
6
- import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
7
- import { ChartAccountsTaxLabelsEnum } from '../../../models/chart-accounts/chart-accounts-tax-labels.enum';
8
6
  import { TransactionReceiptService } from './transaction-receipt/transaction-receipt.service';
9
7
  import { HttpClient } from '@angular/common/http';
10
8
  import { EventDispatcherService } from '../../event/event-dispatcher.service';
@@ -78,11 +76,6 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
78
76
  * @param transaction Transaction instance for calculation
79
77
  */
80
78
  calculateGrossAmount(transaction: Transaction): number;
81
- /**
82
- * get label for transaction tax field depended of selected chart account.
83
- * tax type depends of chart account heading or category.
84
- */
85
- getTaxLabel(chartAccounts: ChartAccounts): ChartAccountsTaxLabelsEnum;
86
79
  /**
87
80
  * Listen to EventDispatcherService event related to Depreciation changing
88
81
  */
@@ -0,0 +1,5 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ /**
3
+ * Validation function, that checks If provided date is within a current financial year
4
+ */
5
+ export declare function currentFinYearValidator(): ValidatorFn;
@@ -0,0 +1,6 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare class FileValidator {
3
+ static fileMaxSize(maxSize?: number): ValidatorFn;
4
+ static fileExtensions(allowedExtensions?: string[]): ValidatorFn;
5
+ private static fileValidation;
6
+ }
@@ -5,3 +5,5 @@ export * from './password.validator';
5
5
  export * from './password-match.validator';
6
6
  export * from './min-date/min-date.validator';
7
7
  export * from './fields-sum.validator';
8
+ export * from './current-fin-year.validator';
9
+ export * from './file.validator';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.104",
3
+ "version": "0.28.107",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",