taxtank-core 0.30.134 → 0.30.136
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/esm2020/lib/collections/collection-dictionary.mjs +2 -1
- package/esm2020/lib/db/Enums/sole-invoice-statuses.enum.mjs +2 -1
- package/esm2020/lib/models/sole/sole-invoice.mjs +4 -1
- package/esm2020/lib/models/tax-summary/tax-summary.mjs +18 -3
- package/esm2020/lib/models/transaction/transaction.mjs +4 -1
- package/fesm2015/taxtank-core.mjs +25 -2
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +25 -2
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/collection-dictionary.d.ts +1 -0
- package/lib/db/Enums/sole-invoice-statuses.enum.d.ts +2 -1
- package/lib/models/sole/sole-invoice.d.ts +1 -0
- package/lib/models/tax-summary/tax-summary.d.ts +3 -0
- package/lib/models/transaction/transaction.d.ts +3 -0
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ export declare class CollectionDictionary<Collection extends BaseCollection<Abst
|
|
|
32
32
|
*/
|
|
33
33
|
get(key: string | number): Collection;
|
|
34
34
|
/**
|
|
35
|
+
* @TODO bad name, it just gets items by keys, same as get method by multiple keys
|
|
35
36
|
* Join several collections by ids, return collection of uniq models (skip duplicates)
|
|
36
37
|
*/
|
|
37
38
|
merge(keys: number[] | string[]): Collection;
|
|
@@ -21,6 +21,9 @@ export declare class TaxSummary {
|
|
|
21
21
|
*/
|
|
22
22
|
get workNetCash(): number;
|
|
23
23
|
get income(): number;
|
|
24
|
+
get expense(): number;
|
|
25
|
+
get netCash(): number;
|
|
26
|
+
get netTotal(): number;
|
|
24
27
|
/**
|
|
25
28
|
* Work Net Total = Income - expenses - interest
|
|
26
29
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677990/Dashboard+Main
|
|
@@ -83,6 +83,9 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
83
83
|
*/
|
|
84
84
|
isAllocated(allocations: TransactionAllocationCollection): boolean;
|
|
85
85
|
getAllocatedAmount(allocations: TransactionAllocationCollection): number;
|
|
86
|
+
/**
|
|
87
|
+
* @TODO vik TT-3363
|
|
88
|
+
*/
|
|
86
89
|
getAllocatedClaimAmount(allocations: TransactionAllocationCollection): number;
|
|
87
90
|
getUnallocatedAmount(allocations: TransactionAllocationCollection): number;
|
|
88
91
|
/**
|