taxtank-core 0.16.13 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taxtank-core.umd.js +124 -140
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/bank-transaction.collection.js +1 -1
- package/esm2015/lib/collections/depreciation.collection.js +2 -2
- package/esm2015/lib/collections/exportable.collection.js +17 -0
- package/esm2015/lib/collections/loan/loan-payment.collection.js +31 -0
- package/esm2015/lib/collections/loan/loan.collection.js +18 -0
- package/esm2015/lib/collections/report/property/property-report-item-transaction.collection.js +1 -1
- package/esm2015/lib/collections/report/vehicle-expense/vehicle-expense.collection.js +1 -1
- package/esm2015/lib/collections/transaction/transaction-allocation.collection.js +40 -0
- package/esm2015/lib/collections/transaction/transaction.collection.js +167 -0
- package/esm2015/lib/models/bank/bank-transaction.js +1 -1
- package/esm2015/lib/models/export/export-cell-type.enum.js +10 -0
- package/esm2015/lib/models/export/export-cell.js +6 -0
- package/esm2015/lib/models/export/export-data-table.js +1 -7
- package/esm2015/lib/models/income-source/income-source-chart-data.js +1 -1
- package/esm2015/lib/models/loan/loan-payment.js +2 -24
- package/esm2015/lib/models/logbook/vehicle-claim.js +1 -1
- package/esm2015/lib/models/property/property-equity-chart-data.js +1 -1
- package/esm2015/lib/models/report/property/property-report-item-transaction.js +1 -1
- package/esm2015/lib/models/transaction/transaction.js +1 -1
- package/esm2015/lib/services/account-setup/account-setup.service.js +2 -2
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +1 -1
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +1 -1
- package/esm2015/lib/services/export/export-formatter.service.js +31 -0
- package/esm2015/lib/services/pdf/pdf.service.js +9 -4
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +1 -1
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +2 -2
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +2 -2
- package/esm2015/public-api.js +7 -10
- package/fesm2015/taxtank-core.js +105 -129
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank-transaction.collection.d.ts +1 -1
- package/lib/collections/depreciation.collection.d.ts +1 -1
- package/lib/collections/exportable.collection.d.ts +9 -0
- package/lib/collections/loan/loan-payment.collection.d.ts +7 -0
- package/lib/collections/{loan.collection.d.ts → loan/loan.collection.d.ts} +2 -2
- package/lib/collections/report/property/property-report-item-transaction.collection.d.ts +1 -1
- package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts +1 -1
- package/lib/collections/{transaction-allocation.collection.d.ts → transaction/transaction-allocation.collection.d.ts} +6 -6
- package/lib/collections/{transaction.collection.d.ts → transaction/transaction.collection.d.ts} +9 -5
- package/lib/models/bank/bank-transaction.d.ts +1 -1
- package/lib/models/export/export-cell-type.enum.d.ts +8 -0
- package/lib/models/export/export-cell.d.ts +8 -0
- package/lib/models/export/export-data-table.d.ts +3 -2
- package/lib/models/income-source/income-source-chart-data.d.ts +1 -1
- package/lib/models/loan/loan-payment.d.ts +1 -5
- package/lib/models/logbook/vehicle-claim.d.ts +1 -1
- package/lib/models/property/property-equity-chart-data.d.ts +1 -1
- package/lib/models/report/property/property-report-item-transaction.d.ts +1 -1
- package/lib/models/transaction/transaction.d.ts +1 -1
- package/lib/services/bank/bank-account-calculation.service.d.ts +1 -1
- package/lib/services/bank/bank-transaction-calculation.service.d.ts +1 -1
- package/lib/services/export/export-formatter.service.d.ts +11 -0
- package/lib/services/pdf/pdf.service.d.ts +3 -0
- package/lib/services/property/property-calculation/property-calculation.service.d.ts +2 -2
- package/lib/services/report/property/property-transaction-report.service.d.ts +1 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +6 -9
- package/esm2015/lib/collections/loan.collection.js +0 -18
- package/esm2015/lib/collections/transaction-allocation.collection.js +0 -40
- package/esm2015/lib/collections/transaction.collection.js +0 -143
- package/esm2015/lib/interfaces/exportable.interface.js +0 -2
- package/esm2015/lib/services/data-table/data-table.service.js +0 -47
- package/esm2015/lib/services/property/property-holding-costs/property-holding-costs.service.js +0 -53
- package/lib/interfaces/exportable.interface.d.ts +0 -9
- package/lib/services/data-table/data-table.service.d.ts +0 -19
- package/lib/services/property/property-holding-costs/property-holding-costs.service.d.ts +0 -24
package/fesm2015/taxtank-core.js
CHANGED
|
@@ -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
|
|
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)
|
|
@@ -5900,15 +5945,6 @@ var AppEventTypeEnum;
|
|
|
5900
5945
|
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 42] = "VEHICLE_LOGBOOK_DELETED";
|
|
5901
5946
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
|
5902
5947
|
|
|
5903
|
-
/**
|
|
5904
|
-
* Data table structure suitable for export
|
|
5905
|
-
*/
|
|
5906
|
-
class ExportDataTable {
|
|
5907
|
-
constructor() {
|
|
5908
|
-
this.footer = [];
|
|
5909
|
-
}
|
|
5910
|
-
}
|
|
5911
|
-
|
|
5912
5948
|
var ExportFormatEnum;
|
|
5913
5949
|
(function (ExportFormatEnum) {
|
|
5914
5950
|
ExportFormatEnum["PDF"] = "PDF";
|
|
@@ -9524,41 +9560,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
9524
9560
|
args: ['environment']
|
|
9525
9561
|
}] }]; } });
|
|
9526
9562
|
|
|
9527
|
-
|
|
9528
|
-
* Service to handle array-like data table logic
|
|
9529
|
-
*/
|
|
9530
|
-
class DataTableService {
|
|
9563
|
+
class ExportFormatterService {
|
|
9531
9564
|
constructor(currencyPipe, datePipe) {
|
|
9532
9565
|
this.currencyPipe = currencyPipe;
|
|
9533
9566
|
this.datePipe = datePipe;
|
|
9534
9567
|
}
|
|
9535
|
-
|
|
9536
|
-
return
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
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
|
-
});
|
|
9568
|
+
format(rows) {
|
|
9569
|
+
return rows.map((row) => row.map((column) => {
|
|
9570
|
+
switch (column.type) {
|
|
9571
|
+
case ExportCellTypeEnum.DATE:
|
|
9572
|
+
return this.datePipe.transform(column.value, 'dd/MM/YYYY').toString();
|
|
9573
|
+
case ExportCellTypeEnum.CURRENCY:
|
|
9574
|
+
return this.currencyPipe.transform(column.value).toString();
|
|
9575
|
+
default:
|
|
9576
|
+
return column.value.toString();
|
|
9577
|
+
}
|
|
9578
|
+
}));
|
|
9557
9579
|
}
|
|
9558
9580
|
}
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type:
|
|
9581
|
+
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 });
|
|
9582
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
9583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
9562
9584
|
type: Injectable,
|
|
9563
9585
|
args: [{
|
|
9564
9586
|
providedIn: 'root'
|
|
@@ -10085,9 +10107,13 @@ const PDF_CONFIG = {
|
|
|
10085
10107
|
};
|
|
10086
10108
|
|
|
10087
10109
|
/**
|
|
10110
|
+
* @TODO vik refactor
|
|
10088
10111
|
* Service to work with PDF (generate, download, e.t.c.)
|
|
10089
10112
|
*/
|
|
10090
10113
|
class PdfService {
|
|
10114
|
+
constructor(formatter) {
|
|
10115
|
+
this.formatter = formatter;
|
|
10116
|
+
}
|
|
10091
10117
|
/**
|
|
10092
10118
|
* Export file from provided HTML tables
|
|
10093
10119
|
*/
|
|
@@ -10110,7 +10136,7 @@ class PdfService {
|
|
|
10110
10136
|
this.setDocumentTitle(pdf, title);
|
|
10111
10137
|
this.setDocumentLogo(pdf);
|
|
10112
10138
|
dataTables.forEach((dataTable) => {
|
|
10113
|
-
autoTable(pdf, Object.assign({ head: [dataTable.header], body: dataTable.
|
|
10139
|
+
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
10140
|
});
|
|
10115
10141
|
return pdf;
|
|
10116
10142
|
}
|
|
@@ -10164,14 +10190,14 @@ class PdfService {
|
|
|
10164
10190
|
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
10191
|
}
|
|
10166
10192
|
}
|
|
10167
|
-
PdfService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10193
|
+
PdfService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10168
10194
|
PdfService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, providedIn: 'root' });
|
|
10169
10195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PdfService, decorators: [{
|
|
10170
10196
|
type: Injectable,
|
|
10171
10197
|
args: [{
|
|
10172
10198
|
providedIn: 'root'
|
|
10173
10199
|
}]
|
|
10174
|
-
}] });
|
|
10200
|
+
}], ctorParameters: function () { return [{ type: ExportFormatterService }]; } });
|
|
10175
10201
|
|
|
10176
10202
|
/**
|
|
10177
10203
|
* Service to handle Property transactions report items data (get income / expense report items, e.t.c.)
|
|
@@ -10349,52 +10375,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
10349
10375
|
}]
|
|
10350
10376
|
}] });
|
|
10351
10377
|
|
|
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
10378
|
/**
|
|
10399
10379
|
* Service for work with Property Categories
|
|
10400
10380
|
*/
|
|
@@ -11746,13 +11726,9 @@ class VehicleClaimForm extends AbstractForm {
|
|
|
11746
11726
|
}
|
|
11747
11727
|
}
|
|
11748
11728
|
|
|
11749
|
-
/**
|
|
11750
|
-
* Public API Surface of tt-core
|
|
11751
|
-
*/
|
|
11752
|
-
|
|
11753
11729
|
/**
|
|
11754
11730
|
* Generated bundle index. Do not edit.
|
|
11755
11731
|
*/
|
|
11756
11732
|
|
|
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,
|
|
11733
|
+
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, 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
11734
|
//# sourceMappingURL=taxtank-core.js.map
|