taxtank-core 0.12.1 → 0.12.4
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 +53 -7
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/collection.js +3 -3
- package/esm2015/lib/collections/report/vehicle-expense/vehicle-expense.collection.js +20 -0
- package/esm2015/lib/db/Enums/user-roles.enum.js +2 -1
- package/esm2015/lib/db/Models/client-income-types.js +1 -1
- package/esm2015/lib/forms/client/client-income-types.form.js +3 -3
- package/esm2015/lib/models/report/vehicle-expense/vehicle-expense.js +14 -0
- package/esm2015/lib/models/user/user-roles.const.js +2 -1
- package/esm2015/lib/services/account-setup/account-setup.service.js +2 -2
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +8 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/taxtank-core.js +46 -7
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/collection.d.ts +1 -1
- package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts +9 -0
- package/lib/db/Enums/user-roles.enum.d.ts +1 -0
- package/lib/db/Models/client-income-types.d.ts +2 -2
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -39,7 +39,7 @@ export declare class Collection<Model extends object> implements Iterable<Model>
|
|
|
39
39
|
/**
|
|
40
40
|
* Sort collection items by provided field
|
|
41
41
|
*/
|
|
42
|
-
sortBy(
|
|
42
|
+
sortBy(field?: string, isDesc?: boolean): void;
|
|
43
43
|
get first(): Model;
|
|
44
44
|
get last(): Model;
|
|
45
45
|
getByDateRange(from: Date, to: Date, dateField?: string): this;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Collection } from '../../collection';
|
|
2
|
+
import { VehicleExpense } from '../../../models/report/vehicle-expense/vehicle-expense';
|
|
3
|
+
import { TransactionCollection } from '../../transaction.collection';
|
|
4
|
+
import { DepreciationCollection } from '../../depreciation.collection';
|
|
5
|
+
import { VehicleClaim } from '../../../models/logbook/vehicle-claim';
|
|
6
|
+
export declare class VehicleExpenseCollection extends Collection<VehicleExpense> {
|
|
7
|
+
constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim);
|
|
8
|
+
private setItems;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './lib/collections/report/depreciation/depreciation-report-item.co
|
|
|
26
26
|
export * from './lib/collections/report/property/property-report-item.collection';
|
|
27
27
|
export * from './lib/collections/report/property/property-report-item-transaction.collection';
|
|
28
28
|
export * from './lib/collections/report/property/property-report-item-depreciation.collection';
|
|
29
|
+
export * from './lib/collections/report/vehicle-expense/vehicle-expense.collection';
|
|
29
30
|
export * from './lib/collections/service-price.collection';
|
|
30
31
|
export * from './lib/collections/service-subscription.collection';
|
|
31
32
|
export * from './lib/collections/tax-summary/report-item.collection';
|
|
@@ -237,6 +238,7 @@ export * from './lib/models/report/depreciation/depreciation-report-item';
|
|
|
237
238
|
export * from './lib/models/report/depreciation/depreciation-lvp-asset-type.enum';
|
|
238
239
|
export * from './lib/models/report/property/property-report-item';
|
|
239
240
|
export * from './lib/models/report/property/property-report-item-transaction';
|
|
241
|
+
export * from './lib/models/report/vehicle-expense/vehicle-expense';
|
|
240
242
|
export * from './lib/models/service-subscription/module-url-list.const';
|
|
241
243
|
export * from './lib/models/service-subscription/service-payment';
|
|
242
244
|
export * from './lib/models/service-subscription/service-price';
|