taxtank-core 0.16.13 → 0.17.2

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 (80) hide show
  1. package/bundles/taxtank-core.umd.js +363 -383
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/bank-transaction.collection.js +1 -1
  4. package/esm2015/lib/collections/depreciation.collection.js +2 -2
  5. package/esm2015/lib/collections/exportable.collection.js +17 -0
  6. package/esm2015/lib/collections/loan/loan-payment.collection.js +31 -0
  7. package/esm2015/lib/collections/loan/loan.collection.js +18 -0
  8. package/esm2015/lib/collections/report/property/property-report-item-transaction.collection.js +1 -1
  9. package/esm2015/lib/collections/report/vehicle-expense/vehicle-expense.collection.js +1 -1
  10. package/esm2015/lib/collections/tax-summary/report-item.collection.js +50 -120
  11. package/esm2015/lib/collections/tax-summary/tax-return-categories.const.js +65 -0
  12. package/esm2015/lib/collections/transaction/transaction-allocation.collection.js +40 -0
  13. package/esm2015/lib/collections/transaction/transaction.collection.js +167 -0
  14. package/esm2015/lib/db/Enums/tax-return-category-list.enum.js +21 -7
  15. package/esm2015/lib/models/bank/bank-transaction.js +1 -1
  16. package/esm2015/lib/models/export/export-cell-type.enum.js +10 -0
  17. package/esm2015/lib/models/export/export-cell.js +6 -0
  18. package/esm2015/lib/models/export/export-data-table.js +1 -7
  19. package/esm2015/lib/models/income-source/income-source-chart-data.js +1 -1
  20. package/esm2015/lib/models/loan/loan-payment.js +2 -24
  21. package/esm2015/lib/models/logbook/vehicle-claim.js +1 -1
  22. package/esm2015/lib/models/property/property-equity-chart-data.js +1 -1
  23. package/esm2015/lib/models/property/property-sale/property-sale.js +10 -1
  24. package/esm2015/lib/models/report/property/property-report-item-transaction.js +1 -1
  25. package/esm2015/lib/models/tax-summary/report-item.js +8 -1
  26. package/esm2015/lib/models/tax-summary/tax-summary.js +28 -9
  27. package/esm2015/lib/models/transaction/transaction.js +1 -1
  28. package/esm2015/lib/services/account-setup/account-setup.service.js +2 -2
  29. package/esm2015/lib/services/bank/bank-account-calculation.service.js +1 -1
  30. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +1 -1
  31. package/esm2015/lib/services/export/export-formatter.service.js +31 -0
  32. package/esm2015/lib/services/pdf/pdf.service.js +9 -4
  33. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +1 -1
  34. package/esm2015/lib/services/report/property/property-transaction-report.service.js +2 -2
  35. package/esm2015/lib/services/transaction/transaction-calculation.service.js +2 -2
  36. package/esm2015/public-api.js +8 -10
  37. package/fesm2015/taxtank-core.js +301 -286
  38. package/fesm2015/taxtank-core.js.map +1 -1
  39. package/lib/collections/bank-transaction.collection.d.ts +1 -1
  40. package/lib/collections/depreciation.collection.d.ts +1 -1
  41. package/lib/collections/exportable.collection.d.ts +9 -0
  42. package/lib/collections/loan/loan-payment.collection.d.ts +7 -0
  43. package/lib/collections/{loan.collection.d.ts → loan/loan.collection.d.ts} +2 -2
  44. package/lib/collections/report/property/property-report-item-transaction.collection.d.ts +1 -1
  45. package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts +1 -1
  46. package/lib/collections/tax-summary/report-item.collection.d.ts +17 -51
  47. package/lib/collections/tax-summary/tax-return-categories.const.d.ts +6 -0
  48. package/lib/collections/{transaction-allocation.collection.d.ts → transaction/transaction-allocation.collection.d.ts} +6 -6
  49. package/lib/collections/{transaction.collection.d.ts → transaction/transaction.collection.d.ts} +9 -5
  50. package/lib/db/Enums/tax-return-category-list.enum.d.ts +20 -6
  51. package/lib/models/bank/bank-transaction.d.ts +1 -1
  52. package/lib/models/export/export-cell-type.enum.d.ts +8 -0
  53. package/lib/models/export/export-cell.d.ts +8 -0
  54. package/lib/models/export/export-data-table.d.ts +3 -2
  55. package/lib/models/income-source/income-source-chart-data.d.ts +1 -1
  56. package/lib/models/loan/loan-payment.d.ts +1 -5
  57. package/lib/models/logbook/vehicle-claim.d.ts +1 -1
  58. package/lib/models/property/property-equity-chart-data.d.ts +1 -1
  59. package/lib/models/property/property-sale/property-sale.d.ts +3 -0
  60. package/lib/models/report/property/property-report-item-transaction.d.ts +1 -1
  61. package/lib/models/tax-summary/report-item.d.ts +3 -2
  62. package/lib/models/transaction/transaction.d.ts +1 -1
  63. package/lib/services/bank/bank-account-calculation.service.d.ts +1 -1
  64. package/lib/services/bank/bank-transaction-calculation.service.d.ts +1 -1
  65. package/lib/services/export/export-formatter.service.d.ts +11 -0
  66. package/lib/services/pdf/pdf.service.d.ts +3 -0
  67. package/lib/services/property/property-calculation/property-calculation.service.d.ts +2 -2
  68. package/lib/services/report/property/property-transaction-report.service.d.ts +1 -1
  69. package/lib/services/transaction/transaction-calculation.service.d.ts +2 -2
  70. package/package.json +1 -1
  71. package/public-api.d.ts +7 -9
  72. package/esm2015/lib/collections/loan.collection.js +0 -18
  73. package/esm2015/lib/collections/transaction-allocation.collection.js +0 -40
  74. package/esm2015/lib/collections/transaction.collection.js +0 -143
  75. package/esm2015/lib/interfaces/exportable.interface.js +0 -2
  76. package/esm2015/lib/services/data-table/data-table.service.js +0 -47
  77. package/esm2015/lib/services/property/property-holding-costs/property-holding-costs.service.js +0 -53
  78. package/lib/interfaces/exportable.interface.d.ts +0 -9
  79. package/lib/services/data-table/data-table.service.d.ts +0 -19
  80. package/lib/services/property/property-holding-costs/property-holding-costs.service.d.ts +0 -24
@@ -1360,10 +1360,43 @@ var TankTypeEnum;
1360
1360
  TankTypeEnum[TankTypeEnum["SOLE"] = 4] = "SOLE";
1361
1361
  })(TankTypeEnum || (TankTypeEnum = {}));
1362
1362
 
1363
+ /**
1364
+ * export table column
1365
+ */
1366
+ class ExportCell {
1367
+ }
1368
+
1369
+ /**
1370
+ * type of export table column value
1371
+ */
1372
+ var ExportCellTypeEnum;
1373
+ (function (ExportCellTypeEnum) {
1374
+ ExportCellTypeEnum[ExportCellTypeEnum["STRING"] = 0] = "STRING";
1375
+ ExportCellTypeEnum[ExportCellTypeEnum["CURRENCY"] = 1] = "CURRENCY";
1376
+ ExportCellTypeEnum[ExportCellTypeEnum["DATE"] = 2] = "DATE";
1377
+ })(ExportCellTypeEnum || (ExportCellTypeEnum = {}));
1378
+
1379
+ class ExportDataTable {
1380
+ }
1381
+
1382
+ class ExportableCollection extends Collection {
1383
+ getExportFooter(type) {
1384
+ return [];
1385
+ }
1386
+ ;
1387
+ export(type) {
1388
+ return plainToClass(ExportDataTable, {
1389
+ header: this.getExportHeader(type),
1390
+ body: this.getExportBody(type),
1391
+ footer: [this.getExportFooter(type)]
1392
+ });
1393
+ }
1394
+ }
1395
+
1363
1396
  /**
1364
1397
  * Collection of transactions
1365
1398
  */
1366
- class TransactionCollection extends Collection {
1399
+ class TransactionCollection extends ExportableCollection {
1367
1400
  /**
1368
1401
  * Get total amount of all transactions in the collection
1369
1402
  */
@@ -1499,6 +1532,27 @@ class TransactionCollection extends Collection {
1499
1532
  }
1500
1533
  }));
1501
1534
  }
1535
+ getExportHeader() {
1536
+ return ['Date', 'Description', 'Debit', 'Credit'];
1537
+ }
1538
+ getExportFooter() {
1539
+ return [
1540
+ plainToClass(ExportCell, { value: 'Total', type: ExportCellTypeEnum.STRING }),
1541
+ plainToClass(ExportCell, { value: '', type: ExportCellTypeEnum.STRING }),
1542
+ plainToClass(ExportCell, { value: this.sumBy('debit'), type: ExportCellTypeEnum.CURRENCY }),
1543
+ plainToClass(ExportCell, { value: this.sumBy('credit'), type: ExportCellTypeEnum.CURRENCY })
1544
+ ];
1545
+ }
1546
+ getExportBody() {
1547
+ return this.items.map((transaction) => {
1548
+ return [
1549
+ plainToClass(ExportCell, { value: transaction.date, type: ExportCellTypeEnum.DATE }),
1550
+ plainToClass(ExportCell, { value: transaction.description, type: ExportCellTypeEnum.STRING }),
1551
+ plainToClass(ExportCell, { value: transaction.debit, type: ExportCellTypeEnum.CURRENCY }),
1552
+ plainToClass(ExportCell, { value: transaction.credit, type: ExportCellTypeEnum.CURRENCY })
1553
+ ];
1554
+ });
1555
+ }
1502
1556
  }
1503
1557
 
1504
1558
  class DepreciationCollection extends Collection {
@@ -1664,6 +1718,33 @@ class LoanCollection extends Collection {
1664
1718
  }
1665
1719
  }
1666
1720
 
1721
+ class LoanPaymentCollection extends ExportableCollection {
1722
+ getExportHeader() {
1723
+ return [
1724
+ 'Pmt No.',
1725
+ 'Date',
1726
+ 'Payment Due',
1727
+ 'Interest Accrued',
1728
+ 'Principal Paid',
1729
+ 'Principal Balance',
1730
+ 'Payout'
1731
+ ];
1732
+ }
1733
+ getExportBody() {
1734
+ return this.items.map((payment) => {
1735
+ return [
1736
+ plainToClass(ExportCell, { value: payment.number, type: ExportCellTypeEnum.STRING }),
1737
+ plainToClass(ExportCell, { value: payment.date, type: ExportCellTypeEnum.DATE }),
1738
+ plainToClass(ExportCell, { value: payment.paymentDue, type: ExportCellTypeEnum.CURRENCY }),
1739
+ plainToClass(ExportCell, { value: payment.interestAccrued, type: ExportCellTypeEnum.CURRENCY }),
1740
+ plainToClass(ExportCell, { value: payment.principalPaid, type: ExportCellTypeEnum.CURRENCY }),
1741
+ plainToClass(ExportCell, { value: payment.principalBalance, type: ExportCellTypeEnum.CURRENCY }),
1742
+ plainToClass(ExportCell, { value: payment.payout, type: ExportCellTypeEnum.CURRENCY }),
1743
+ ];
1744
+ });
1745
+ }
1746
+ }
1747
+
1667
1748
  class MessageCollection extends Collection {
1668
1749
  getFirstUnreadMessage(user) {
1669
1750
  return this.items.find((message) => {
@@ -3386,47 +3467,11 @@ var LoanVehicleTypeEnum;
3386
3467
  LoanVehicleTypeEnum[LoanVehicleTypeEnum["COMMERCIAL_HIRE_PURCHASE"] = 10] = "COMMERCIAL_HIRE_PURCHASE";
3387
3468
  })(LoanVehicleTypeEnum || (LoanVehicleTypeEnum = {}));
3388
3469
 
3389
- /**
3390
- * Class with structure of the data-table rows
3391
- */
3392
- class ExportRow {
3393
- }
3394
-
3395
- /**
3396
- * Enum which shows what type (in terms of business logic) of the data-table row item
3397
- */
3398
- var ExportRowDataTypeEnum;
3399
- (function (ExportRowDataTypeEnum) {
3400
- ExportRowDataTypeEnum[ExportRowDataTypeEnum["STRING"] = 0] = "STRING";
3401
- ExportRowDataTypeEnum[ExportRowDataTypeEnum["CURRENCY"] = 1] = "CURRENCY";
3402
- ExportRowDataTypeEnum[ExportRowDataTypeEnum["DATE"] = 2] = "DATE";
3403
- })(ExportRowDataTypeEnum || (ExportRowDataTypeEnum = {}));
3404
-
3405
- const EXPORT_DATA_TABLE_COLUMNS = [
3406
- 'Pmt No.',
3407
- 'Date',
3408
- 'Payment Due',
3409
- 'Interest Accrued',
3410
- 'Principal Paid',
3411
- 'Principal Balance',
3412
- 'Payout'
3413
- ];
3414
3470
  // @Todo no base model from backend list
3415
3471
  /**
3416
3472
  * Loan payment class
3417
3473
  */
3418
3474
  class LoanPayment {
3419
- toDataTableRows() {
3420
- return [
3421
- plainToClass(ExportRow, { data: this.number, type: ExportRowDataTypeEnum.STRING }),
3422
- plainToClass(ExportRow, { data: this.date, type: ExportRowDataTypeEnum.DATE }),
3423
- plainToClass(ExportRow, { data: this.paymentDue, type: ExportRowDataTypeEnum.CURRENCY }),
3424
- plainToClass(ExportRow, { data: this.interestAccrued, type: ExportRowDataTypeEnum.CURRENCY }),
3425
- plainToClass(ExportRow, { data: this.principalPaid, type: ExportRowDataTypeEnum.CURRENCY }),
3426
- plainToClass(ExportRow, { data: this.principalBalance, type: ExportRowDataTypeEnum.CURRENCY }),
3427
- plainToClass(ExportRow, { data: this.payout, type: ExportRowDataTypeEnum.CURRENCY }),
3428
- ];
3429
- }
3430
3475
  }
3431
3476
  __decorate([
3432
3477
  Type(() => Date)
@@ -4129,179 +4174,180 @@ class ServiceSubscriptionCollection extends Collection {
4129
4174
  }
4130
4175
  }
4131
4176
 
4177
+ /**
4178
+ * collection for tax return category items
4179
+ */
4180
+ class ReportItemCollection extends Collection {
4181
+ /**
4182
+ * Recursively get collection of report items by Tax Summary Section.
4183
+ * Search items which has details
4184
+ */
4185
+ getBySection(section) {
4186
+ let result = [];
4187
+ for (let reportItem of this.items) {
4188
+ if (reportItem.details.length && reportItem.taxReturnCategory.section === section) {
4189
+ result.push(reportItem);
4190
+ }
4191
+ else {
4192
+ result.push(...reportItem.items.getBySection(section).toArray());
4193
+ }
4194
+ }
4195
+ return this.create(result);
4196
+ }
4197
+ /**
4198
+ * Recursively find report item by Tax Return Category ID
4199
+ */
4200
+ findByCategory(categoryId) {
4201
+ let result;
4202
+ for (let reportItem of this.items) {
4203
+ if (result) {
4204
+ break;
4205
+ }
4206
+ if (reportItem.taxReturnCategory.id === categoryId) {
4207
+ result = reportItem;
4208
+ }
4209
+ else {
4210
+ result = reportItem.items.findByCategory(categoryId);
4211
+ }
4212
+ }
4213
+ return result;
4214
+ }
4215
+ /**
4216
+ * Get Collection of report items by Tax Return Categories IDs
4217
+ */
4218
+ getByCategories(categories) {
4219
+ return this.create(compact(categories.map((category) => this.findByCategory(category))));
4220
+ }
4221
+ /**
4222
+ * A short call to a chain of methods that we often use.
4223
+ * Get total amount of report items by Tax Return categories and Tax Summary Section.
4224
+ */
4225
+ sumByCategoriesAndSection(categories, section) {
4226
+ return this.getByCategories(categories).getBySection(section).sumBy('amount');
4227
+ }
4228
+ /**
4229
+ * Get collection of all report item details related to passed income source
4230
+ * @TODO Alex: consider to create and move to ReportItemDetailsCollection
4231
+ */
4232
+ getDetailsByIncomeSource(incomeSource) {
4233
+ let result = [];
4234
+ for (let reportItem of this.items) {
4235
+ if (reportItem.details.length) {
4236
+ result.push(...reportItem.details.filter((details) => details.name === incomeSource.name));
4237
+ }
4238
+ else {
4239
+ result.push(...reportItem.items.getDetailsByIncomeSource(incomeSource).toArray());
4240
+ }
4241
+ }
4242
+ return new Collection(result);
4243
+ }
4244
+ }
4245
+
4132
4246
  var TaxReturnCategoryListEnum;
4133
4247
  (function (TaxReturnCategoryListEnum) {
4134
4248
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["SALARY"] = 1] = "SALARY";
4249
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES"] = 30] = "ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES";
4250
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["EMPLOYER_LUMP_SUM_PAYMENTS"] = 31] = "EMPLOYER_LUMP_SUM_PAYMENTS";
4251
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["ETP"] = 32] = "ETP";
4252
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["GOVERNMENT_ALLOWANCES"] = 2] = "GOVERNMENT_ALLOWANCES";
4253
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["GOVERNMENT_PENSIONS"] = 33] = "GOVERNMENT_PENSIONS";
4254
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["ANNUITIES_SUPER_INCOME_STREAMS"] = 3] = "ANNUITIES_SUPER_INCOME_STREAMS";
4255
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["SUPERANNUATION_LUMP_SUM_PAYMENTS"] = 34] = "SUPERANNUATION_LUMP_SUM_PAYMENTS";
4256
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["ATTRIBUTED_PSI_INCOME"] = 4] = "ATTRIBUTED_PSI_INCOME";
4135
4257
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["WORK_EXPENSES"] = 7] = "WORK_EXPENSES";
4136
4258
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["GROSS_RENT"] = 8] = "GROSS_RENT";
4259
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["OTHER_RENTAL_DEDUCTIONS"] = 12] = "OTHER_RENTAL_DEDUCTIONS";
4137
4260
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["INTEREST_DEDUCTIONS"] = 9] = "INTEREST_DEDUCTIONS";
4138
4261
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["CAPITAL_WORKS"] = 10] = "CAPITAL_WORKS";
4139
4262
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["DEPRECIATION"] = 11] = "DEPRECIATION";
4140
- TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["OTHER_RENTAL_DEDUCTIONS"] = 12] = "OTHER_RENTAL_DEDUCTIONS";
4141
- TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["BORROWING_EXPENSES"] = 29] = "BORROWING_EXPENSES";
4263
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["GROSS_INTEREST"] = 5] = "GROSS_INTEREST";
4264
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["DIVIDENDS"] = 6] = "DIVIDENDS";
4265
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["SHARE_SCHEMES"] = 35] = "SHARE_SCHEMES";
4142
4266
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["PARTNERSHIPS_TRUSTS"] = 13] = "PARTNERSHIPS_TRUSTS";
4143
- TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["PCI_SBE_INCOME"] = 14] = "PCI_SBE_INCOME";
4267
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["PSI_SBE_INCOME"] = 14] = "PSI_SBE_INCOME";
4268
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["SOLE_TRADER_BUSINESS_INCOME"] = 38] = "SOLE_TRADER_BUSINESS_INCOME";
4144
4269
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["CAPITAL_GAINS"] = 15] = "CAPITAL_GAINS";
4145
4270
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["FOREIGN_SOURCE_INCOME"] = 16] = "FOREIGN_SOURCE_INCOME";
4146
- TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["OTHER_INCOME"] = 17] = "OTHER_INCOME";
4271
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["BONUSES_FROM_LIFE_INSURANCE"] = 17] = "BONUSES_FROM_LIFE_INSURANCE";
4272
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["FORESTRY_MANAGED_INVESTMENT_SCHEMES"] = 39] = "FORESTRY_MANAGED_INVESTMENT_SCHEMES";
4273
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["OTHER_INCOME"] = 40] = "OTHER_INCOME";
4274
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_CREDITS"] = 23] = "TAX_CREDITS";
4147
4275
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["OTHER_DEDUCTIONS"] = 18] = "OTHER_DEDUCTIONS";
4276
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_OFFSETS"] = 27] = "TAX_OFFSETS";
4277
+ TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["BORROWING_EXPENSES"] = 29] = "BORROWING_EXPENSES";
4148
4278
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["GROSS_TAX_PAYABLE"] = 19] = "GROSS_TAX_PAYABLE";
4149
4279
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_ON_TAXABLE_INCOME"] = 20] = "TAX_ON_TAXABLE_INCOME";
4150
4280
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["MEDICARE"] = 21] = "MEDICARE";
4151
4281
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["STUDENT_LOAN_REPAYMENT"] = 22] = "STUDENT_LOAN_REPAYMENT";
4152
- TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_CREDITS"] = 23] = "TAX_CREDITS";
4153
4282
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_WITHHELD"] = 24] = "TAX_WITHHELD";
4154
4283
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_INSTALMENTS"] = 25] = "TAX_INSTALMENTS";
4155
4284
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["FRANKING_CREDITS"] = 26] = "FRANKING_CREDITS";
4156
- TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_OFFSETS"] = 27] = "TAX_OFFSETS";
4157
4285
  TaxReturnCategoryListEnum[TaxReturnCategoryListEnum["TAX_PAYABLE"] = 28] = "TAX_PAYABLE";
4158
4286
  })(TaxReturnCategoryListEnum || (TaxReturnCategoryListEnum = {}));
4159
4287
 
4160
- var TaxReturnCategorySectionEnum;
4161
- (function (TaxReturnCategorySectionEnum) {
4162
- TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["WORK_TANK"] = 1] = "WORK_TANK";
4163
- TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["PROPERTY_TANK"] = 2] = "PROPERTY_TANK";
4164
- TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["OTHER_INCOME"] = 3] = "OTHER_INCOME";
4165
- TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["SUMMARY"] = 4] = "SUMMARY";
4166
- })(TaxReturnCategorySectionEnum || (TaxReturnCategorySectionEnum = {}));
4167
-
4168
- /**
4169
- * collection for tax return category items
4170
- */
4171
- class ReportItemCollection extends Collection {
4172
- /**
4173
- * Work income
4174
- */
4175
- get salary() {
4176
- var _a;
4177
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.SALARY)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4178
- }
4179
- /**
4180
- * Work expenses
4181
- */
4182
- get workExpenses() {
4183
- var _a;
4184
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.WORK_EXPENSES)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4185
- }
4186
- /**
4187
- * Property income
4188
- */
4189
- get rentalIncome() {
4190
- var _a;
4191
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.GROSS_RENT)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4192
- }
4193
- /**
4194
- * Property rental deductions
4195
- */
4196
- get rentalDeductions() {
4197
- var _a;
4198
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4199
- }
4200
- /**
4201
- * Property expenses
4202
- */
4203
- get propertyExpenses() {
4204
- return this.rentalDeductions + this.borrowingExpenses;
4205
- }
4206
- /**
4207
- * Property interest
4208
- */
4209
- get interestDeductions() {
4210
- var _a;
4211
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.INTEREST_DEDUCTIONS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4212
- }
4213
- /**
4214
- * Property capital works depreciations
4215
- */
4216
- get capitalWorks() {
4217
- var _a;
4218
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.CAPITAL_WORKS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4219
- }
4220
- /**
4221
- * Property plant & equipment depreciations
4222
- */
4223
- get plantEquipment() {
4224
- var _a;
4225
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.DEPRECIATION)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4226
- }
4227
- /**
4228
- * Total property depreciaions
4229
- */
4230
- get propertyDepreciations() {
4231
- return this.capitalWorks + this.plantEquipment;
4232
- }
4233
- get partnershipsAndTrusts() {
4234
- var _a;
4235
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.PARTNERSHIPS_TRUSTS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4236
- }
4237
- get pciAndSbeIncome() {
4238
- var _a;
4239
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.PCI_SBE_INCOME)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4240
- }
4241
- get capitalGains() {
4242
- var _a;
4243
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.CAPITAL_GAINS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4244
- }
4245
- get foreignSourceIncome() {
4246
- var _a;
4247
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.FOREIGN_SOURCE_INCOME)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4248
- }
4249
- /**
4250
- * Other income
4251
- */
4252
- get otherIncome() {
4253
- var _a;
4254
- return (((_a = this.getByCategory(TaxReturnCategoryListEnum.OTHER_INCOME)) === null || _a === void 0 ? void 0 : _a.amount) || 0) +
4255
- this.partnershipsAndTrusts +
4256
- this.pciAndSbeIncome +
4257
- this.capitalGains +
4258
- this.foreignSourceIncome;
4259
- }
4260
- /**
4261
- * Other expenses
4262
- */
4263
- get otherDeductions() {
4264
- var _a;
4265
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.OTHER_DEDUCTIONS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4266
- }
4267
- get taxInstalments() {
4268
- var _a;
4269
- return ((_a = this.getTaxCreditsCollection().getByCategory(TaxReturnCategoryListEnum.TAX_INSTALMENTS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4270
- }
4271
- get frankingCredits() {
4272
- var _a;
4273
- return ((_a = this.getTaxCreditsCollection().getByCategory(TaxReturnCategoryListEnum.FRANKING_CREDITS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4274
- }
4275
- get taxOffsets() {
4276
- var _a;
4277
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.TAX_OFFSETS)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4278
- }
4279
- get borrowingExpenses() {
4280
- var _a;
4281
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.BORROWING_EXPENSES)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4282
- }
4283
- get grossTaxPayable() {
4284
- var _a;
4285
- return ((_a = this.getByCategory(TaxReturnCategoryListEnum.GROSS_TAX_PAYABLE)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
4286
- }
4287
- /**
4288
- * taxWithheld by section (work or other)
4289
- */
4290
- getTaxWithheld(section = TaxReturnCategorySectionEnum.WORK_TANK) {
4291
- var _a;
4292
- return ((_a = this.getTaxCreditsCollection().getByCategory(TaxReturnCategoryListEnum.TAX_WITHHELD)) === null || _a === void 0 ? void 0 : _a.details.filter((details) => details.section === section).reduce((sum, details) => sum + details.amount, 0)) || 0;
4293
- }
4294
- getTaxCreditsCollection() {
4295
- var _a;
4296
- return new ReportItemCollection(((_a = this.getByCategory(TaxReturnCategoryListEnum.TAX_CREDITS)) === null || _a === void 0 ? void 0 : _a.items) || []);
4297
- }
4298
- getTotalAmountByIncomeSourceName(name) {
4299
- return this.items.reduce(((sum, item) => sum + item.getAmountByIncomeSourceName(name)), 0);
4300
- }
4301
- getByCategory(category) {
4302
- return this.items.find((item) => item.taxReturnCategory.id === category);
4288
+ const TAX_RETURN_CATEGORIES = {
4289
+ work: {
4290
+ income: [
4291
+ TaxReturnCategoryListEnum.SALARY,
4292
+ TaxReturnCategoryListEnum.ALLOWANCES_EARNINGS_TIPS_DIRECTOR_FEES,
4293
+ TaxReturnCategoryListEnum.EMPLOYER_LUMP_SUM_PAYMENTS,
4294
+ TaxReturnCategoryListEnum.ETP,
4295
+ TaxReturnCategoryListEnum.GOVERNMENT_ALLOWANCES,
4296
+ TaxReturnCategoryListEnum.GOVERNMENT_PENSIONS,
4297
+ TaxReturnCategoryListEnum.ANNUITIES_SUPER_INCOME_STREAMS,
4298
+ TaxReturnCategoryListEnum.SUPERANNUATION_LUMP_SUM_PAYMENTS,
4299
+ TaxReturnCategoryListEnum.ATTRIBUTED_PSI_INCOME
4300
+ ],
4301
+ expenses: [
4302
+ TaxReturnCategoryListEnum.WORK_EXPENSES
4303
+ ],
4304
+ interest: [
4305
+ TaxReturnCategoryListEnum.GROSS_INTEREST
4306
+ ],
4307
+ taxWithheld: [
4308
+ TaxReturnCategoryListEnum.TAX_WITHHELD
4309
+ ]
4310
+ },
4311
+ property: {
4312
+ income: [
4313
+ TaxReturnCategoryListEnum.GROSS_RENT
4314
+ ],
4315
+ expenses: [
4316
+ TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS
4317
+ ],
4318
+ interest: [
4319
+ TaxReturnCategoryListEnum.INTEREST_DEDUCTIONS
4320
+ ],
4321
+ depreciation: [
4322
+ TaxReturnCategoryListEnum.CAPITAL_WORKS,
4323
+ TaxReturnCategoryListEnum.DEPRECIATION
4324
+ ]
4325
+ },
4326
+ other: {
4327
+ income: [
4328
+ TaxReturnCategoryListEnum.GROSS_INTEREST,
4329
+ TaxReturnCategoryListEnum.DIVIDENDS,
4330
+ TaxReturnCategoryListEnum.SHARE_SCHEMES,
4331
+ TaxReturnCategoryListEnum.PARTNERSHIPS_TRUSTS,
4332
+ TaxReturnCategoryListEnum.PSI_SBE_INCOME,
4333
+ TaxReturnCategoryListEnum.SOLE_TRADER_BUSINESS_INCOME,
4334
+ TaxReturnCategoryListEnum.CAPITAL_GAINS,
4335
+ TaxReturnCategoryListEnum.FOREIGN_SOURCE_INCOME,
4336
+ TaxReturnCategoryListEnum.BONUSES_FROM_LIFE_INSURANCE,
4337
+ TaxReturnCategoryListEnum.FORESTRY_MANAGED_INVESTMENT_SCHEMES,
4338
+ TaxReturnCategoryListEnum.OTHER_INCOME
4339
+ ],
4340
+ expenses: [
4341
+ TaxReturnCategoryListEnum.OTHER_DEDUCTIONS
4342
+ ],
4343
+ taxCredits: [
4344
+ TaxReturnCategoryListEnum.TAX_CREDITS
4345
+ ],
4346
+ taxOffsets: [
4347
+ TaxReturnCategoryListEnum.TAX_OFFSETS
4348
+ ]
4303
4349
  }
4304
- }
4350
+ };
4305
4351
 
4306
4352
  /**
4307
4353
  * Collection of tax review
@@ -4769,6 +4815,14 @@ var TaxCalculationTypeEnum;
4769
4815
  TaxCalculationTypeEnum[TaxCalculationTypeEnum["ETP_TAX_FREE"] = 9] = "ETP_TAX_FREE";
4770
4816
  })(TaxCalculationTypeEnum || (TaxCalculationTypeEnum = {}));
4771
4817
 
4818
+ var TaxReturnCategorySectionEnum;
4819
+ (function (TaxReturnCategorySectionEnum) {
4820
+ TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["WORK_TANK"] = 1] = "WORK_TANK";
4821
+ TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["PROPERTY_TANK"] = 2] = "PROPERTY_TANK";
4822
+ TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["OTHER_INCOME"] = 3] = "OTHER_INCOME";
4823
+ TaxReturnCategorySectionEnum[TaxReturnCategorySectionEnum["SUMMARY"] = 4] = "SUMMARY";
4824
+ })(TaxReturnCategorySectionEnum || (TaxReturnCategorySectionEnum = {}));
4825
+
4772
4826
  var TaxReviewStatusEnum;
4773
4827
  (function (TaxReviewStatusEnum) {
4774
4828
  TaxReviewStatusEnum[TaxReviewStatusEnum["NEW"] = 0] = "NEW";
@@ -5900,15 +5954,6 @@ var AppEventTypeEnum;
5900
5954
  AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 42] = "VEHICLE_LOGBOOK_DELETED";
5901
5955
  })(AppEventTypeEnum || (AppEventTypeEnum = {}));
5902
5956
 
5903
- /**
5904
- * Data table structure suitable for export
5905
- */
5906
- class ExportDataTable {
5907
- constructor() {
5908
- this.footer = [];
5909
- }
5910
- }
5911
-
5912
5957
  var ExportFormatEnum;
5913
5958
  (function (ExportFormatEnum) {
5914
5959
  ExportFormatEnum["PDF"] = "PDF";
@@ -6500,6 +6545,15 @@ class PropertySale extends PropertySale$1 {
6500
6545
  return this.commission + this.legalFees + this.otherCost;
6501
6546
  }
6502
6547
  }
6548
+ __decorate([
6549
+ Type(() => Number)
6550
+ ], PropertySale.prototype, "commission", void 0);
6551
+ __decorate([
6552
+ Type(() => Number)
6553
+ ], PropertySale.prototype, "legalFees", void 0);
6554
+ __decorate([
6555
+ Type(() => Number)
6556
+ ], PropertySale.prototype, "otherCost", void 0);
6503
6557
  __decorate([
6504
6558
  Type(() => Date)
6505
6559
  ], PropertySale.prototype, "settlementDate", void 0);
@@ -6644,6 +6698,10 @@ class ReportItem {
6644
6698
  return ((_a = this.details.find((detail) => detail.name === name)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
6645
6699
  }
6646
6700
  }
6701
+ __decorate([
6702
+ Type(() => ReportItem),
6703
+ Transform(({ value }) => new ReportItemCollection(value))
6704
+ ], ReportItem.prototype, "items", void 0);
6647
6705
 
6648
6706
  /**
6649
6707
  * Used in tax summary reports to show specific details relating to an amount in the report.
@@ -6688,49 +6746,66 @@ class TaxSummary {
6688
6746
  return [this.work, this.property, this.otherIncome, this.summary];
6689
6747
  }
6690
6748
  get taxPercent() {
6691
- return this.summary.items.grossTaxPayable / this.summary.netAmount;
6749
+ return this.summary.items.findByCategory(TaxReturnCategoryListEnum.GROSS_TAX_PAYABLE).amount / this.summary.netAmount;
6692
6750
  }
6693
6751
  /**
6694
6752
  * Work Net Cash = Income - tax withheld - expenses - interest
6695
6753
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
6696
6754
  */
6697
6755
  get workNetCash() {
6698
- return this.workNetTotal - Math.abs(this.summary.items.getTaxWithheld(TaxReturnCategorySectionEnum.WORK_TANK));
6756
+ const taxWithheld = this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.work.taxWithheld, TaxSummarySectionEnum.WORK_TANK);
6757
+ return this.workNetTotal - Math.abs(taxWithheld);
6699
6758
  }
6700
6759
  /**
6701
6760
  * Work Net Total = Income - expenses - interest
6702
6761
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
6703
6762
  */
6704
6763
  get workNetTotal() {
6705
- return this.work.items.salary - Math.abs(this.work.items.workExpenses);
6764
+ const income = this.work.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.work.income, TaxSummarySectionEnum.WORK_TANK);
6765
+ const expenses = this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.work.expenses, TaxSummarySectionEnum.WORK_TANK);
6766
+ const interest = this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.work.interest, TaxSummarySectionEnum.WORK_TANK);
6767
+ return income - Math.abs(expenses) - Math.abs(interest);
6706
6768
  }
6707
6769
  /**
6708
6770
  * Property Net Cash (Cash Position) = Rental Income - expenses - interest
6709
6771
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
6710
6772
  */
6711
6773
  get propertyNetCash() {
6712
- return this.property.items.rentalIncome - Math.abs(this.property.items.rentalDeductions) - Math.abs(this.property.items.interestDeductions);
6774
+ const income = this.property.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.property.income, TaxSummarySectionEnum.PROPERTY_TANK);
6775
+ const expenses = this.property.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.property.expenses, TaxSummarySectionEnum.PROPERTY_TANK);
6776
+ const interest = this.property.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.property.interest, TaxSummarySectionEnum.PROPERTY_TANK);
6777
+ return income - Math.abs(expenses) - Math.abs(interest);
6713
6778
  }
6714
6779
  /**
6715
6780
  * Property Net Total (Tax Position) = Rental Income - expenses - interest - depreciation
6716
6781
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
6717
6782
  */
6718
6783
  get propertyNetTotal() {
6719
- return this.propertyNetCash - Math.abs(this.property.items.propertyDepreciations);
6784
+ const depreciation = this.property.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.property.depreciation, TaxSummarySectionEnum.PROPERTY_TANK);
6785
+ return this.propertyNetCash - Math.abs(depreciation);
6720
6786
  }
6721
6787
  /**
6722
6788
  * Other Net Cash = gross income – expenses – tax withheld - tax instalments
6723
6789
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
6724
6790
  */
6725
6791
  get otherNetCash() {
6726
- return this.otherIncome.items.otherIncome - Math.abs(this.otherIncome.items.otherDeductions) - Math.abs(this.summary.items.getTaxWithheld(TaxReturnCategorySectionEnum.OTHER_INCOME)) - Math.abs(this.summary.items.taxInstalments);
6792
+ const income = this.otherIncome.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.other.income, TaxSummarySectionEnum.OTHER_INCOME);
6793
+ const expenses = this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.other.expenses, TaxSummarySectionEnum.OTHER_INCOME);
6794
+ const taxWithheld = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.TAX_WITHHELD], TaxSummarySectionEnum.OTHER_INCOME);
6795
+ const taxInstalments = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.TAX_INSTALMENTS], TaxSummarySectionEnum.OTHER_INCOME);
6796
+ return income - Math.abs(expenses) - Math.abs(taxWithheld) - Math.abs(taxInstalments);
6727
6797
  }
6728
6798
  /**
6729
6799
  * Other Net Total = Gross income - expenses + tax offsets + tax instalments + franking credits
6730
6800
  * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
6731
6801
  */
6732
6802
  get otherNetTotal() {
6733
- return this.otherIncome.items.otherIncome - Math.abs(this.otherIncome.items.otherDeductions) + Math.abs(this.summary.items.taxOffsets) + Math.abs(this.summary.items.taxInstalments) + Math.abs(this.summary.items.frankingCredits);
6803
+ const income = this.otherIncome.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.other.income, TaxSummarySectionEnum.OTHER_INCOME);
6804
+ const expenses = this.summary.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.other.expenses, TaxSummarySectionEnum.OTHER_INCOME);
6805
+ const taxOffsets = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.TAX_OFFSETS], TaxSummarySectionEnum.SUMMARY);
6806
+ const taxInstallments = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.TAX_INSTALMENTS], TaxSummarySectionEnum.OTHER_INCOME);
6807
+ const frankingCredits = this.summary.items.sumByCategoriesAndSection([TaxReturnCategoryListEnum.FRANKING_CREDITS], TaxSummarySectionEnum.OTHER_INCOME);
6808
+ return income - Math.abs(expenses) + Math.abs(taxOffsets) + Math.abs(taxInstallments) + Math.abs(frankingCredits);
6734
6809
  }
6735
6810
  }
6736
6811
  __decorate([
@@ -9524,41 +9599,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
9524
9599
  args: ['environment']
9525
9600
  }] }]; } });
9526
9601
 
9527
- /**
9528
- * Service to handle array-like data table logic
9529
- */
9530
- class DataTableService {
9602
+ class ExportFormatterService {
9531
9603
  constructor(currencyPipe, datePipe) {
9532
9604
  this.currencyPipe = currencyPipe;
9533
9605
  this.datePipe = datePipe;
9534
9606
  }
9535
- initDataTable(exportableModels, headerColumns) {
9536
- return plainToClass(ExportDataTable, {
9537
- header: headerColumns,
9538
- rows: this.getDataTableRows(exportableModels),
9539
- });
9540
- }
9541
- /**
9542
- * Get data for the exporting table rows
9543
- */
9544
- getDataTableRows(exportableModels) {
9545
- return exportableModels.map((model) => {
9546
- return model.toDataTableRows().map((row) => {
9547
- switch (row.type) {
9548
- case ExportRowDataTypeEnum.DATE:
9549
- return this.datePipe.transform(row.data, 'dd/MM/YYYY').toString();
9550
- case ExportRowDataTypeEnum.CURRENCY:
9551
- return this.currencyPipe.transform(row.data).toString();
9552
- default:
9553
- return row.data.toString();
9554
- }
9555
- });
9556
- });
9607
+ format(rows) {
9608
+ return rows.map((row) => row.map((column) => {
9609
+ switch (column.type) {
9610
+ case ExportCellTypeEnum.DATE:
9611
+ return this.datePipe.transform(column.value, 'dd/MM/YYYY').toString();
9612
+ case ExportCellTypeEnum.CURRENCY:
9613
+ return this.currencyPipe.transform(column.value).toString();
9614
+ default:
9615
+ return column.value.toString();
9616
+ }
9617
+ }));
9557
9618
  }
9558
9619
  }
9559
- DataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DataTableService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
9560
- DataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DataTableService, providedIn: 'root' });
9561
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DataTableService, decorators: [{
9620
+ ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
9621
+ ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
9622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, decorators: [{
9562
9623
  type: Injectable,
9563
9624
  args: [{
9564
9625
  providedIn: 'root'
@@ -10085,9 +10146,13 @@ const PDF_CONFIG = {
10085
10146
  };
10086
10147
 
10087
10148
  /**
10149
+ * @TODO vik refactor
10088
10150
  * Service to work with PDF (generate, download, e.t.c.)
10089
10151
  */
10090
10152
  class PdfService {
10153
+ constructor(formatter) {
10154
+ this.formatter = formatter;
10155
+ }
10091
10156
  /**
10092
10157
  * Export file from provided HTML tables
10093
10158
  */
@@ -10110,7 +10175,7 @@ class PdfService {
10110
10175
  this.setDocumentTitle(pdf, title);
10111
10176
  this.setDocumentLogo(pdf);
10112
10177
  dataTables.forEach((dataTable) => {
10113
- autoTable(pdf, Object.assign({ head: [dataTable.header], body: dataTable.rows, foot: [dataTable.footer || []] }, this.setTableOptions(pdf, dataTable.caption)));
10178
+ autoTable(pdf, Object.assign({ head: [dataTable.header], body: this.formatter.format(dataTable.body), foot: this.formatter.format(dataTable.footer) }, this.setTableOptions(pdf, dataTable.caption)));
10114
10179
  });
10115
10180
  return pdf;
10116
10181
  }
@@ -10164,14 +10229,14 @@ class PdfService {
10164
10229
  doc.addImage(logo, 'PNG', doc.internal.pageSize.width - PDF_CONFIG.logo.positionX, PDF_CONFIG.logo.positionY, PDF_CONFIG.logo.width, PDF_CONFIG.logo.height);
10165
10230
  }
10166
10231
  }
10167
- PdfService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
10232
+ PdfService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
10168
10233
  PdfService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, providedIn: 'root' });
10169
10234
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, decorators: [{
10170
10235
  type: Injectable,
10171
10236
  args: [{
10172
10237
  providedIn: 'root'
10173
10238
  }]
10174
- }] });
10239
+ }], ctorParameters: function () { return [{ type: ExportFormatterService }]; } });
10175
10240
 
10176
10241
  /**
10177
10242
  * Service to handle Property transactions report items data (get income / expense report items, e.t.c.)
@@ -10349,52 +10414,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
10349
10414
  }]
10350
10415
  }] });
10351
10416
 
10352
- /**
10353
- * Service to work with holding costs (transactions related to vacant land property)
10354
- */
10355
- class PropertyHoldingCostsService {
10356
- constructor(pdfService, currencyPipe, datePipe) {
10357
- this.pdfService = pdfService;
10358
- this.currencyPipe = currencyPipe;
10359
- this.datePipe = datePipe;
10360
- this.url = 'transactions';
10361
- this.modelClass = Transaction;
10362
- }
10363
- initDataTable(holdingCosts) {
10364
- return plainToClass(ExportDataTable, {
10365
- header: ['Date', 'Description', 'Debit', 'Credit'],
10366
- rows: this.getDataTableRows(holdingCosts),
10367
- footer: [
10368
- 'Total',
10369
- '',
10370
- this.currencyPipe.transform(holdingCosts.sumBy('debit')).toString(),
10371
- this.currencyPipe.transform(holdingCosts.sumBy('credit')).toString(),
10372
- ]
10373
- });
10374
- }
10375
- /**
10376
- * Get data for the exporting table rows
10377
- */
10378
- getDataTableRows(holdingCosts) {
10379
- return holdingCosts.items.map((transaction) => {
10380
- return [
10381
- this.datePipe.transform(transaction.date, 'dd/MM/YYYY').toString(),
10382
- transaction.description,
10383
- this.currencyPipe.transform(transaction.debit).toString(),
10384
- this.currencyPipe.transform(transaction.credit).toString()
10385
- ];
10386
- });
10387
- }
10388
- }
10389
- PropertyHoldingCostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyHoldingCostsService, deps: [{ token: PdfService }, { token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
10390
- PropertyHoldingCostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyHoldingCostsService, providedIn: 'root' });
10391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyHoldingCostsService, decorators: [{
10392
- type: Injectable,
10393
- args: [{
10394
- providedIn: 'root'
10395
- }]
10396
- }], ctorParameters: function () { return [{ type: PdfService }, { type: i1$1.CurrencyPipe }, { type: i1$1.DatePipe }]; } });
10397
-
10398
10417
  /**
10399
10418
  * Service for work with Property Categories
10400
10419
  */
@@ -11746,13 +11765,9 @@ class VehicleClaimForm extends AbstractForm {
11746
11765
  }
11747
11766
  }
11748
11767
 
11749
- /**
11750
- * Public API Surface of tt-core
11751
- */
11752
-
11753
11768
  /**
11754
11769
  * Generated bundle index. Do not edit.
11755
11770
  */
11756
11771
 
11757
- export { AbstractForm, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DataTableService, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EXPORT_DATA_TABLE_COLUMNS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, Notification, Occupation, OccupationService, PasswordForm, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyHoldingCostsService, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
11772
+ export { AbstractForm, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, Notification, Occupation, OccupationService, PasswordForm, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimForm, VehicleClaimMethodEnum, VehicleClaimService, VehicleCollection, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, XlsxService, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
11758
11773
  //# sourceMappingURL=taxtank-core.js.map