taxtank-core 0.28.7 → 0.28.8-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.
- package/bundles/taxtank-core.umd.js +69 -27
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/transaction/transaction.collection.js +26 -1
- package/esm2015/lib/models/depreciation/depreciation.js +2 -2
- package/esm2015/lib/models/report/property/property-report-item-transaction.js +2 -2
- package/esm2015/lib/models/service-subscription/service-subscription.js +20 -1
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +1 -1
- package/fesm2015/taxtank-core.js +62 -21
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/transaction/transaction.collection.d.ts +7 -0
- package/lib/models/service-subscription/service-subscription.d.ts +9 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { ExportCell } from '../../models/export/export-cell';
|
|
|
7
7
|
import { Collection } from '../collection';
|
|
8
8
|
import { TransactionMetadata } from '../../models/transaction/transaction-metadata';
|
|
9
9
|
import { VehicleClaim } from '../../models';
|
|
10
|
+
import { ChartData } from '../../models/chart/chart-data';
|
|
10
11
|
/**
|
|
11
12
|
* Collection of transactions
|
|
12
13
|
*/
|
|
@@ -91,4 +92,10 @@ export declare class TransactionCollection extends ExportableCollection<Transact
|
|
|
91
92
|
* Get list of vehicle transactions except KMS transactions
|
|
92
93
|
*/
|
|
93
94
|
getLogbookTransactions(): this;
|
|
95
|
+
/**
|
|
96
|
+
* Build chart data with transactions cash position.
|
|
97
|
+
* Cash position = Income - Expenses (include depreciations)
|
|
98
|
+
* Chart data for each month from fin year start till current month
|
|
99
|
+
*/
|
|
100
|
+
getCashPositionChartData(): ChartData[];
|
|
94
101
|
}
|
|
@@ -65,4 +65,13 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
|
|
|
65
65
|
* Case when payment was failed, but user has a time to update payment method
|
|
66
66
|
*/
|
|
67
67
|
isPastDue(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Check if current subscription has provided subscription item
|
|
70
|
+
*/
|
|
71
|
+
hasItem(itemToCheck: ServiceSubscriptionItem): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Recommended number of properties to buy,
|
|
74
|
+
* based on the property service product and the number of properties the user has
|
|
75
|
+
*/
|
|
76
|
+
getRecommendedPropertiesQty(propertyItem: ServiceSubscriptionItem, propertiesQty: number): number;
|
|
68
77
|
}
|